Logo Search packages:      
Sourcecode: undertaker version File versions  Download package

Static Public Member Functions | Private Member Functions | Private Attributes

ModelContainer Class Reference

Container that maps ConfigurationModel classes to its architectures. More...

#include <ModelContainer.h>

Collaboration diagram for ModelContainer:
Collaboration graph

List of all members.

Static Public Member Functions

static ModelContainergetInstance ()
static const char * getMainModel ()
 returns the main model as string or NULL, if not set
static ConfigurationModelloadModels (std::string modeldir)
 load models from the given directory
static const char * lookupArch (const ConfigurationModel *model)
static ConfigurationModellookupMainModel ()
static ConfigurationModellookupModel (const char *arch)
static void setMainModel (std::string)

Private Member Functions

ConfigurationModelregisterModelFile (std::string filename, std::string arch)

Private Attributes

std::string main_model

Detailed Description

Container that maps ConfigurationModel classes to its architectures.

This class is basically a singleton that derives from std::map<std::string, ConfigurationModel*>. It provides a few convenience methods for model loading and lookups.

Definition at line 39 of file ModelContainer.h.

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

Generated by  Doxygen 1.6.0   Back to index