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

IopcImportExportStruct Struct Reference

Type of one entry in IopcClassObjectImpl::importExportArray. More...

#include <iopcPersistentObject.h>

List of all members.

Public Member Functions

 IopcImportExportStruct ()
 ~IopcImportExportStruct ()

Public Attributes

bool valid
void * additionalData


Detailed Description

Type of one entry in IopcClassObjectImpl::importExportArray.

Used when transfering data between persistent class instance and IOPC LIB runtime.

The struct contains flag valid, union containing the data to be imported / exported and possibly some additional data.

Which union entry should be used knows IOPC LIB runtime from metadata - entries in IopcClassObjectImpl::importExportArray correspond to lexicographically ordered class attributes.


Constructor & Destructor Documentation

IopcImportExportStruct::IopcImportExportStruct  )  [inline]
 

Simple constructor.

IopcImportExportStruct::~IopcImportExportStruct  )  [inline]
 

Simple destructor, deletes additionalData.


Member Data Documentation

bool IopcImportExportStruct::valid
 

Contains this entry valid data?

bool IopcImportExportStruct::boolVal
 

Used if corresponding attribute type is IOPC_BOOL.

char IopcImportExportStruct::charVal
 

Used if corresponding attribute type is IOPC_CHAR.

unsigned char IopcImportExportStruct::ucharVal
 

Used if corresponding attribute type is IOPC_UCHAR.

signed char IopcImportExportStruct::scharVal
 

Used if corresponding attribute type is IOPC_SCHAR.

short IopcImportExportStruct::shortVal
 

Used if corresponding attribute type is IOPC_SHORT.

unsigned short IopcImportExportStruct::ushortVal
 

Used if corresponding attribute type is IOPC_USHORT.

int IopcImportExportStruct::intVal
 

Used if corresponding attribute type is IOPC_INT.

unsigned IopcImportExportStruct::uintVal
 

Used if corresponding attribute type is IOPC_UINT.

long IopcImportExportStruct::longVal
 

Used if corresponding attribute type is IOPC_LONG.

unsigned long IopcImportExportStruct::ulongVal
 

Used if corresponding attribute type is IOPC_ULONG.

float IopcImportExportStruct::floatVal
 

Used if corresponding attribute type is IOPC_FLOAT.

double IopcImportExportStruct::doubleVal
 

Used if corresponding attribute type is IOPC_DOUBLE.

long double IopcImportExportStruct::longDoubleVal
 

Used if corresponding attribute type is IOPC_LONGDOUBLE.

wchar_t IopcImportExportStruct::wchartVal
 

Used if corresponding attribute type is IOPC_WCHAR_T.

char* IopcImportExportStruct::stringVal
 

Used if corresponding attribute type is IOPC_STRING.

wchar_t* IopcImportExportStruct::wstringVal
 

Used if corresponding attribute type is IOPC_WSTRING.

void* IopcImportExportStruct::additionalData
 

Structure's additional data. If the entry correspond to string-type attribute, a buffer is allocated and this pointer points to it. The buffer is used when loading the string from the database. When importing the data into persistent class instance (IopcPersistentObject::iopcImportAttributes()), the string is copyied.

Note:
stringVal / wstringVal cannot be used instead - its value is changed when exporting attributes (IopcPersistentObject::iopcExportAttributes()).


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