OpenStructure
Namespaces | Macros | Functions
item_type_cast.hh File Reference
#include <boost/regex.hpp>
#include <boost/lexical_cast.hpp>

Go to the source code of this file.

Namespaces

 ost
 
 ost::info
 
 ost::info::detail
 

Macros

#define ITEM_TYPE_CAST_EVAL(INTYPE)
 

Functions

void SetInfoItemNewType (EleImpl &item, int new_type)
 
void SetInfoItemNewType (EleImpl &item, Type new_type)
 

Macro Definition Documentation

◆ ITEM_TYPE_CAST_EVAL

#define ITEM_TYPE_CAST_EVAL (   INTYPE)
Value:
if(new_type==IT_STRING) { \
set_new_type< INTYPE ,IT_STRING>(item); \
} else if(new_type==IT_INT) { \
set_new_type< INTYPE ,IT_INT>(item); \
} else if(new_type==IT_FLOAT) { \
set_new_type< INTYPE ,IT_FLOAT>(item); \
} else if(new_type==IT_BOOL) { \
set_new_type< INTYPE ,IT_BOOL>(item); \
} else if(new_type==IT_VECTOR) { \
set_new_type< INTYPE ,IT_VECTOR>(item); \
}

Definition at line 266 of file item_type_cast.hh.