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

iopcDataType.h File Reference

Definition of enum IopcDataType and functions converting it to / from string. More...

#include "commonMisc.h"
#include "stdio.h"
#include "string.h"

Include dependency graph for iopc_common/iopcDataType.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Enumerations

enum  IopcDataType {
  IOPC_INVALID = 0,
  IOPC_BOOL,
  IOPC_CHAR,
  IOPC_UCHAR,
  IOPC_SCHAR,
  IOPC_SHORT,
  IOPC_USHORT,
  IOPC_INT,
  IOPC_UINT,
  IOPC_LONG,
  IOPC_ULONG,
  IOPC_FLOAT,
  IOPC_DOUBLE,
  IOPC_LONGDOUBLE,
  IOPC_WCHAR_T,
  IOPC_STRING,
  IOPC_WSTRING,
  IOPC_REF,
  IOPC_COMPLEX_DATA_TYPE
}

Functions

const char * iopcDataTypeToString (IopcDataType dataType, const char *additionalInfo)
IopcDataType stringToIopcDataType (const char *dataTypeStr)

Detailed Description

Definition of enum IopcDataType and functions converting it to / from string.

Author:
Josef Troch (josef.troch@email.cz)
Date:
2003 - 2004

Enumeration Type Documentation

enum IopcDataType
 

IOPC representation of attribute data type.

Enumeration values:
IOPC_INVALID  not a valid type
IOPC_BOOL  bool
IOPC_CHAR  char (signed or unsigned - depends on platform and compiler settings)
IOPC_UCHAR  unsigned char
IOPC_SCHAR  signed char
IOPC_SHORT  short (signed)
IOPC_USHORT  unsigned short
IOPC_INT  int (signed)
IOPC_UINT  unsigned
IOPC_LONG  long (signed)
IOPC_ULONG  unsigned long
IOPC_FLOAT  float
IOPC_DOUBLE  double
IOPC_LONGDOUBLE  long double
IOPC_WCHAR_T  wchar_t
IOPC_STRING  char * (0-terminated)
IOPC_WSTRING  wchar_t * (00-terminated)
IOPC_REF  reference to some other persistent object
IOPC_COMPLEX_DATA_TYPE  some complex data type (array, class ...)


Function Documentation

const char* iopcDataTypeToString IopcDataType  dataType,
const char *  additionalInfo
[inline]
 

Converts given IopcDataType to string.

If dataType is IOPC_COMPLEX_DATA_TYPE, additionalInfo should contain string representation of the data type (the additionalInfo string is returned). If dataType is IOPC_REF, additionalInfo should contain name of the class to which the reference points.

Note:
Don't store the pointer returned by this function. It may point to some kind of temporary buffer.
Parameters:
dataType Input data type.
additionalInfo Additional info about the data type - if necessary. See above.
Returns:
String represenatation of the data type.
See also:
stringToIopcDataType()

IopcDataType stringToIopcDataType const char *  dataTypeStr  )  [inline]
 

Converts given string to IopcDataType.

See also:
iopcDataTypeToString()


Generated on Wed Aug 11 22:33:58 2004 for IOPC by Doxygen 1.3.6