Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

IopcLib Class Reference

Class that represents whole IOPC library. Its (static) method initialize() must be called before using anything from the library. More...

#include <iopcLib.h>

List of all members.

Static Public Member Functions

int initialize (const char *metadataLocation=NULL)

Static Protected Attributes

bool initialized


Detailed Description

Class that represents whole IOPC library. Its (static) method initialize() must be called before using anything from the library.


Member Function Documentation

int IopcLib::initialize const char *  metadataLocation = NULL  )  [static]
 

Initializes the library. This method must be called before using anything from the library. In typical case the best place to call this function is beginning of application's main() function.

Loads metadata and initializes iopcClassObjectContainer (IopcClassObjectContainer::initializeUsingMetadataLoader()) and installs after connect handler (Database::afterConnectHandler).

Parameters:
metadataLocation Location of metadata that describe class model of application. In current implementation you could pass there filename (possibly including path) of application's XML mapping file. If NULL, the file is assumed to be in the same directory as executable file and to have name that could be created using DEFAULT_METADATA_FILENAME and the executable name.
Returns:
0 it OK, non-zero in case of error.
See also:
getProcessPath(),


Member Data Documentation

bool IopcLib::initialized [static, protected]
 

Have the initialize() function been called?


The documentation for this class was generated from the following files:
Generated on Wed Aug 11 22:35:37 2004 for IOPC by Doxygen 1.3.6