#include <iopcClassObjectContainer.h>
The container is filled using MetadataLoader (initializeUsingMetadataLoader()) and is able to return appropriate IopcClassObjectImpl for given class name or class ID.
There is only one instance of this class in IOPC LIB - iopcClassObjectContainer.
|
Type of map classObjectsMap. Key = name of the class, value = corresponding IopcClassObjectImpl.
|
|
Map used to convert FullClassInfo * to IopcClassObjectImpl *. Used in initializeIopcClassObjectImpl() function.
|
|
Class ID "index" on classObjectsMap. Key = class ID, value = pointer to corresponding IopcClassObjectImpl.
|
|
Simple constructor.
|
|
Creates all needed IopcClassObjectImpl-s according to ClassHierarchy loaded by MetadataLoader (MetadataLoader::loadMetadata()). Then calls initializeIopcClassObjectImpl() on each object. Correctness of the ClassHierarchy is checked and missing values generated (See ClassHierarchy::createInheritanceHierarchy(), ClassHierarchy::checkInheritanceHierarchy(), ClassHierarchy::generateMissingValues() and ClassHierarchy::generateTableInfoMap()).
|
|
Initializes IopcClassObjectImpl according to given class information ( For individual attributes AttrInfo structures are created, initialized by initializeAttrInfo() and added to the IopcClassObjectImpl object.
|
|
Initializes AttrInfo (information about an attribute) using given parameters.
|
|
Loads Class IDs (CIDs) from database. Class ID is unique (inside one user project) identification of persistent class. These IDs together with names of persistent classes are stored in the database in "class ID table" (<project name>_CIDS). The class IDs are used when retrieving objects of specified type and when saving objects into database. Therefore IOPC LIB needs to have the class ID for each class. This function loads them, and fills them into IopcClassObjectImpl::classID-s. The function is called at the end of first Database::Connect() call using Database::afterConnectHandler set in IopcLib::initialize().
|
|
Returns appropriate IopcClassObjectImpl for given class name, NULL if not found.
|
|
The same as getClassObject() but returns IopcClassObjectImpl::protoBaseAdaptor.
|
|
Gets IopcClassObjectImpl for given class ID. Uses classIDMap, if it hasn't been initialized earlier initializes it (traverses classObjectsMap and fills classIDMap). |
|
Returns name of current user's project.
|
|
Map - for given class name returns appropriate IopcClassObjectImpl.
|
|
Map - for given class ID returns appropriate IopcClassObjectImpl.
|
|
Name of current user's project.
|
|
Has the container been initialized? (I.e. has initializeUsingMetadataLoader() successfully finished?).
|