Mass++ Common Libraries v2.7.5
 All Classes Namespaces Files Functions Variables Enumerations Macros
Classes | Namespaces | Macros
ConversionTool.h File Reference

interfaces of IDTool class More...

#include <string>
Include dependency graph for ConversionTool.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  kome::core::IDInfo
 
struct  kome::core::ConversionElement< S, T >
 key and value data More...
 
class  kome::core::ConversionTool
 the class that has some functions for convert More...
 

Namespaces

 kome
 kome project namespace
 
 kome::core
 CoreToolkit library namespace.
 

Macros

#define GET_ID_NAME(id, idArray)
 
#define CONVERT_FROM_ARRAY(key, defaultValue, conversionArray)
 
#define INVERT_FROM_ARRAY(key, defaultValue, conversionArray)
 

Detailed Description

interfaces of IDTool class

Author
S.Tanaka
Date
2006.09.01

Copyright(C) 2006-2014 Eisai Co., Ltd. All rights reserved.

Definition in file ConversionTool.h.

Macro Definition Documentation

#define CONVERT_FROM_ARRAY (   key,
  defaultValue,
  conversionArray 
)
Value:
key, \
defaultValue, \
conversionArray, \
sizeof( conversionArray ) / sizeof( conversionArray[ 0 ] ) \
);
static T convert(const S key, const T dfVal, ConversionElement< S, T > *elementArray, int arraySize)
gets converted value from key ( S -> T )

Definition at line 27 of file ConversionTool.h.

#define GET_ID_NAME (   id,
  idArray 
)
Value:
id, \
idArray, \
sizeof( idArray ) / sizeof( kome::core::IDInfo ) \
);
static std::string getIdName(const int id, IDInfo *idInfoArray, const unsigned int arraySize)
gets name from id number

Definition at line 20 of file ConversionTool.h.

#define INVERT_FROM_ARRAY (   key,
  defaultValue,
  conversionArray 
)
Value:
key, \
defaultValue, \
conversionArray, \
sizeof( conversionArray ) / sizeof( conversionArray[ 0 ] ) \
);
static S invert(const T key, const S dfVal, ConversionElement< S, T > *elementArray, int arraySize)
gets converted value from key ( T -> S )

Definition at line 35 of file ConversionTool.h.