Advanced Strategic Command
Public Member Functions | List of all members
ItemRepositoryLoader< T > Class Template Reference

#include <itemrepository.h>

Inheritance diagram for ItemRepositoryLoader< T >:
Inheritance graph
[legend]

Public Member Functions

 ItemRepositoryLoader (const ASCString &typeName_)
 
void readTextFiles (PropertyReadingContainer &prc, const ASCString &fileName, const ASCString &location)
 
void read (tnstream &stream)
 
void write (tnstream &stream)
 
ASCString getTypeName ()
 
- Public Member Functions inherited from ItemRepository< T >
 ItemRepository (const ASCString &typeName_)
 
T * getObject_byPos (int pos) const
 
T * getObject_byID (int id)
 
size_t getNum () const
 
vector< T * > & getVector ()
 
virtual ~ItemRepository ()
 
void addIdTranslation (int from, int to)
 
ASCString getTypeName ()
 
- Public Member Functions inherited from TextFileDataLoader
virtual void postChecks ()
 
virtual ~TextFileDataLoader ()
 

Additional Inherited Members

- Protected Types inherited from ItemRepository< T >
typedef vector< T * > ItemContainerType
 
typedef map< int, T * > ObjectMap
 
- Protected Member Functions inherited from ItemRepository< T >
void add (T *obj)
 
- Protected Attributes inherited from ItemRepository< T >
ASCString typeName
 
ItemContainerType container
 
ObjectMap hash
 
map< int, int > idTranslation
 

Detailed Description

template<class T>
class ItemRepositoryLoader< T >

Definition at line 112 of file itemrepository.h.

Constructor & Destructor Documentation

template<class T>
ItemRepositoryLoader< T >::ItemRepositoryLoader ( const ASCString typeName_)
inline

Definition at line 115 of file itemrepository.h.

Member Function Documentation

template<class T>
ASCString ItemRepositoryLoader< T >::getTypeName ( )
inlinevirtual

Implements TextFileDataLoader.

Definition at line 119 of file itemrepository.h.

References ItemRepository< T >::getTypeName().

template<class T >
void ItemRepositoryLoader< T >::read ( tnstream stream)
virtual
template<class T >
void ItemRepositoryLoader< T >::readTextFiles ( PropertyReadingContainer prc,
const ASCString fileName,
const ASCString location 
)
virtual
template<class T >
void ItemRepositoryLoader< T >::write ( tnstream stream)
virtual

Implements TextFileDataLoader.

Definition at line 120 of file itemrepository.cpp.

References tnstream::writeInt(), and tnstream::writeString().


The documentation for this class was generated from the following files: