29 #ifndef __DECLMANAGER_H__
30 #define __DECLMANAGER_H__
104 virtual const char *
GetName(
void )
const = 0;
108 virtual bool IsValid(
void )
const = 0;
110 virtual void Reload(
void ) = 0;
112 virtual int Index(
void )
const = 0;
114 virtual const char *
GetFileName(
void )
const = 0;
115 virtual void GetText(
char *text )
const = 0;
117 virtual void SetText(
const char *text ) = 0;
124 virtual bool Parse(
const char *text,
const int textLength ) = 0;
126 virtual size_t Size(
void )
const = 0;
127 virtual void List(
void )
const = 0;
128 virtual void Print(
void )
const = 0;
214 virtual bool Parse(
const char *text,
const int textLength ) {
return base->
Parse( text, textLength ); }
240 template<
class type >
254 virtual void Init(
void ) = 0;
256 virtual void Reload(
bool force ) = 0;
286 virtual void ReloadFile(
const char* filename,
bool force ) = 0;
328 declManager->ListType( args, type );
331 template< declType_t type >
int GetLineNum(void) const
ID_INLINE idDecl * idDeclAllocator(void)
virtual void PrintType(const idCmdArgs &args, declType_t type)=0
bool ReplaceSourceFileText(void)
virtual const idSoundShader * FindSound(const char *name, bool makeDefault=true)=0
virtual declType_t GetType(void) const =0
const char * GetFileName(void) const
const int DECL_LEXER_FLAGS
virtual const idDeclSkin * SkinByIndex(int index, bool forceParse=true)=0
GLenum GLsizei GLenum format
virtual void ReloadFile(const char *filename, bool force)=0
virtual ~idDeclManager(void)
virtual bool ReplaceSourceFileText(void)=0
bool EverReferenced(void) const
bool SourceFileChanged(void) const
const char * GetName(void) const
virtual idDecl * CreateNewDecl(declType_t type, const char *name, const char *fileName)=0
virtual void Invalidate(void)=0
virtual void GetText(char *text) const =0
GLuint GLuint GLsizei GLenum type
virtual const idMaterial * FindMaterial(const char *name, bool makeDefault=true)=0
virtual int GetNumDeclTypes(void) const =0
virtual bool IsImplicit(void) const =0
virtual bool IsValid(void) const =0
virtual void Init(void)=0
virtual int GetChecksum(void) const =0
virtual void SetText(const char *text)=0
declType_t GetType(void) const
virtual bool Parse(const char *text, const int textLength)
virtual void FreeData(void)
virtual int GetTextLength(void) const =0
virtual void MakeDefault(void)=0
virtual const idDecl * FindType(declType_t type, const char *name, bool makeDefault=true)=0
virtual void ListType(const idCmdArgs &args, declType_t type)=0
virtual void Print(void) const
virtual void Shutdown(void)=0
virtual void Reload(bool force)=0
virtual void RegisterDeclType(const char *typeName, declType_t type, idDecl *(*allocator)(void))=0
virtual size_t Size(void) const =0
virtual const char * GetName(void) const =0
virtual const idSoundShader * SoundByIndex(int index, bool forceParse=true)=0
ID_INLINE void idPrintDecls_f(const idCmdArgs &args)
virtual const char * GetFileName(void) const =0
void SetText(const char *text)
virtual const char * GetDeclNameFromType(declType_t type) const =0
virtual void MediaPrint(const char *fmt,...) id_attribute((format(printf
idDeclManager * declManager
virtual void RegisterDeclFolder(const char *folder, const char *extension, declType_t defaultType)=0
virtual void EndLevelLoad()=0
void EnsureNotPurged(void)
virtual int GetNumDecls(declType_t type)=0
virtual void virtual void WritePrecacheCommands(idFile *f)=0
virtual int GetLineNum(void) const =0
virtual bool Parse(const char *text, const int textLength)=0
virtual const char * DefaultDefinition(void) const =0
virtual const idDecl * FindDeclWithoutParsing(declType_t type, const char *name, bool makeDefault=true)=0
virtual void Reload(void)=0
ID_INLINE void idListDecls_f(const idCmdArgs &args)
virtual const idDecl * DeclByIndex(declType_t type, int index, bool forceParse=true)=0
virtual declType_t GetDeclTypeFromName(const char *typeName) const =0
virtual int Index(void) const =0
declState_t GetState(void) const
virtual const idMaterial * MaterialByIndex(int index, bool forceParse=true)=0
virtual bool SetDefaultText(void)=0
virtual bool EverReferenced(void) const =0
virtual void FreeData(void)=0
bool IsImplicit(void) const
virtual void Print(void) const =0
virtual bool SetDefaultText(void)
virtual const idDeclSkin * FindSkin(const char *name, bool makeDefault=true)=0
virtual size_t Size(void) const
virtual void EnsureNotPurged(void)=0
void GetText(char *text) const
virtual const char * DefaultDefinition(void) const
virtual void List(void) const
int GetTextLength(void) const
virtual void BeginLevelLoad()=0
virtual void List(void) const =0
virtual declState_t GetState(void) const =0
virtual bool RenameDecl(declType_t type, const char *oldName, const char *newName)=0
virtual bool SourceFileChanged(void) const =0