Advanced Strategic Command
Classes | Typedefs | Functions | Variables
itemrepository.h File Reference
#include <vector>
#include <sigc++/sigc++.h>
#include "ascstring.h"
#include "typen.h"
#include "terraintype.h"
#include "vehicletype.h"
#include "objecttype.h"
#include "buildingtype.h"
#include "research.h"
#include "textfile_evaluation.h"
#include "objects.h"
#include "package.h"
Include dependency graph for itemrepository.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  TextFileDataLoader
 
class  ItemRepository< T >
 
class  ItemRepository< T >::RegisterID
 
class  ItemRepositoryLoader< T >
 
class  MineTypeRepository
 
class  ItemFiltrationSystem
 
class  ItemFiltrationSystem::ItemFilter
 
class  ItemFiltrationSystem::DataLoader
 

Typedefs

typedef deallocating_vector
< TechAdapter * > 
TechAdapterContainer
 

Functions

void registerDataLoader (TextFileDataLoader *dataLoader)
 registers a dataLoader . The object is delete after use, so use: registerDataLoader( new MyDataLoader() ) More...
 
void registerDataLoader (TextFileDataLoader &dataLoader)
 registers a dataLoader . More...
 
void loadAllData (bool useCache=true)
 

Variables

MineTypeRepository mineTypeRepository
 
sigc::signal< void > dataLoaderTicker
 
ItemRepositoryLoader< VehicleTypevehicleTypeRepository
 
ItemRepositoryLoader< TerrainTypeterrainTypeRepository
 
ItemRepositoryLoader< ObjectTypeobjectTypeRepository
 
ItemRepositoryLoader
< BuildingType
buildingTypeRepository
 
ItemRepositoryLoader< TechnologytechnologyRepository
 
TechAdapterContainer techAdapterContainer
 

Typedef Documentation

Definition at line 143 of file itemrepository.h.

Function Documentation

void loadAllData ( bool  useCache = true)
void registerDataLoader ( TextFileDataLoader dataLoader)

registers a dataLoader . The object is delete after use, so use: registerDataLoader( new MyDataLoader() )

Definition at line 305 of file itemrepository.cpp.

References dataLoaders, and dataLoadersToDelete.

Referenced by loadAllData(), loaddata(), and loadEditordata().

void registerDataLoader ( TextFileDataLoader dataLoader)

registers a dataLoader .

Definition at line 311 of file itemrepository.cpp.

References dataLoaders.

Variable Documentation

ItemRepositoryLoader<BuildingType> buildingTypeRepository
sigc::signal<void> dataLoaderTicker
MineTypeRepository mineTypeRepository

Definition at line 139 of file itemrepository.cpp.

Referenced by Maped_MainScreenWidget::selectMine().

ItemRepositoryLoader<ObjectType> objectTypeRepository
TechAdapterContainer techAdapterContainer
ItemRepositoryLoader<Technology> technologyRepository
ItemRepositoryLoader<TerrainType> terrainTypeRepository
ItemRepositoryLoader<VehicleType> vehicleTypeRepository