/// TKX_File.h
///
/// (c) 2001-2010 Bastian Spiegel <bs@tkscript.de>
///     - distributed under the terms of the GNU general public license (GPL).
///
#ifndef __TKX_FILE_H__
#define __TKX_FILE_H__


class TKX_File {
public:
    TKX_File   *next;
    sU8        *file_data;
    sUI         file_offset; // if <16 this identifies a non-FILE type (see TKX_PakFile::CFE_TYPE_xxx)
    sUI         file_size;
    YAC_String  logic_name;
    YAC_String  source_name;
    sU8         type;        // this field is not stored in pakfiles
    yacmemptr   tokenized_source; // see TKS_TokenizedScript::readTokens/writeTokens

public:
    TKX_File(void);
    ~TKX_File();

    void freeTokenizedSource(void);
};


#endif // __TKX_FILE_H__
