SBSPSS/Utils/Libs/GinLib/animheader.h

89 lines
1.6 KiB
C
Raw Normal View History

2000-12-02 19:55:49 +01:00
/*=========================================================================
ANIMHEADER.H
Author: Gary Liddon @
Created:
Project:
Purpose:
Copyright (c) 1998 G R Liddon
===========================================================================*/
#ifndef __ANIMHEADER_H__
#define __ANIMHEADER_H__
2000-12-04 17:46:07 +01:00
#pragma warning( disable : 4786 )
2000-12-02 19:55:49 +01:00
/*----------------------------------------------------------------------
Includes
-------- */
/* Std Lib
------- */
#include <vector>
#include <map>
/* Glib
---- */
#include <gtypes.h>
#include <gstring.hpp>
/* Local
----- */
/*----------------------------------------------------------------------
Tyepdefs && Defines
------------------- */
/*----------------------------------------------------------------------
Structure defintions
-------------------- */
struct AnimHeaderItem
{
GString m_AnimName;
int m_Frame;
};
class AnimHeaderFile
{
private:
GString m_lastLoadedFile;
std::map<GString,AnimHeaderItem> m_strToInfo;
void makeTexNameCompliant(GString & str);
public:
void load(char const * name);
bool find(GString const & str,AnimHeaderItem & result);
char const * getLastFileLoaded(void)
{return(m_lastLoadedFile);}
};
/*----------------------------------------------------------------------
Globals
------- */
/* Vars
---- */
/* Data
---- */
/* Functions
--------- */
void readAnimHeaderFile(char const * Name,std::vector<AnimHeaderItem> & Items);
/*---------------------------------------------------------------------- */
#endif /* __ANIMHEADER_H__ */
/*===========================================================================
end */