ifw  0.0.1-dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Namespaces | Enumerations | Functions
defines.hpp File Reference
#include <stdarg.h>
#include <string>
#include <map>
#include <list>
#include <fstream>
#include "rad/Logger.hpp"
#include "rad/Exceptions.hpp"

Go to the source code of this file.

Classes

class  ctd::defines::List< TYPE >
 @ brief STL like list that can be indexed with []'s. More...
 

Namespaces

 ifw
 Defines public header file.
 
 ctd
 Conversion source file.
 
 ctd::defines
 

Enumerations

enum  ctd::defines::DataType {
  ctd::defines::DATA_TYPE_BOOLEAN = 1, ctd::defines::DATA_TYPE_INT8 = 2, ctd::defines::DATA_TYPE_UINT8 = 4, ctd::defines::DATA_TYPE_INT16 = 8,
  ctd::defines::DATA_TYPE_UINT16 = 16, ctd::defines::DATA_TYPE_INT32 = 32, ctd::defines::DATA_TYPE_UINT32 = 64, ctd::defines::DATA_TYPE_INT64 = 128,
  ctd::defines::DATA_TYPE_UINT64 = 256, ctd::defines::DATA_TYPE_FLOAT = 512, ctd::defines::DATA_TYPE_DOUBLE = 1024, ctd::defines::DATA_TYPE_STRING = 2048,
  ctd::defines::DATA_TYPE_NON_BASIC = 4096, ctd::defines::DATA_TYPE_TIME_DATE = 8192, ctd::defines::DATA_TYPE_TIMESTAMP = 16384, ctd::defines::DATA_TYPE_BLOB = 32768,
  ctd::defines::DATA_TYPE_ALL, ctd::defines::DATA_TYPE_UNKNOWN = 2147483648, ctd::defines::DATA_TYPE_BOOLEAN = 1, ctd::defines::DATA_TYPE_INT8 = 2,
  ctd::defines::DATA_TYPE_UINT8 = 4, ctd::defines::DATA_TYPE_INT16 = 8, ctd::defines::DATA_TYPE_UINT16 = 16, ctd::defines::DATA_TYPE_INT32 = 32,
  ctd::defines::DATA_TYPE_UINT32 = 64, ctd::defines::DATA_TYPE_INT64 = 128, ctd::defines::DATA_TYPE_UINT64 = 256, ctd::defines::DATA_TYPE_FLOAT = 512,
  ctd::defines::DATA_TYPE_DOUBLE = 1024, ctd::defines::DATA_TYPE_STRING = 2048, ctd::defines::DATA_TYPE_NON_BASIC = 4096, ctd::defines::DATA_TYPE_TIME_DATE = 8192,
  ctd::defines::DATA_TYPE_TIMESTAMP = 16384, ctd::defines::DATA_TYPE_BLOB = 32768, ctd::defines::DATA_TYPE_ALL, ctd::defines::DATA_TYPE_UNKNOWN = 2147483648,
  ctd::defines::DATA_TYPE_BOOLEAN = 1, ctd::defines::DATA_TYPE_INT8 = 2, ctd::defines::DATA_TYPE_UINT8 = 4, ctd::defines::DATA_TYPE_INT16 = 8,
  ctd::defines::DATA_TYPE_UINT16 = 16, ctd::defines::DATA_TYPE_INT32 = 32, ctd::defines::DATA_TYPE_UINT32 = 64, ctd::defines::DATA_TYPE_INT64 = 128,
  ctd::defines::DATA_TYPE_UINT64 = 256, ctd::defines::DATA_TYPE_FLOAT = 512, ctd::defines::DATA_TYPE_DOUBLE = 1024, ctd::defines::DATA_TYPE_STRING = 2048,
  ctd::defines::DATA_TYPE_NON_BASIC = 4096, ctd::defines::DATA_TYPE_TIME_DATE = 8192, ctd::defines::DATA_TYPE_TIMESTAMP = 16384, ctd::defines::DATA_TYPE_BLOB = 32768,
  ctd::defines::DATA_TYPE_ALL, ctd::defines::DATA_TYPE_UNKNOWN = 2147483648
}
 Data types numeric representations. More...
 

Functions

std::string ifw::Print (const char *format,...)
 Create formatted string, return formatted string (C formatting convention). More...
 
const std::map< DataType,
std::string > & 
ctd::defines::DataTypesNbMap ()
 Return reference to data types numeric to string map. More...
 
const std::map< std::string,
DataType > & 
ctd::defines::DataTypesNameMap ()
 Return reference to data types numeric to string map. More...
 
DataType ctd::defines::IfwDataTypeToNumeric (const std::string &data_type)
 Data type IFW string representation to IFW numeric representation. More...
 
std::string ctd::defines::IfwDataTypeToString (const DataType data_type)
 Data type IFW numeric representation to IFW string representation. More...
 
const std::map< DataType,
std::string > & 
ctd::defines::DataType2TypeIdMap ()
 Return reference to data types numeric to string map. More...
 
const std::map< std::string,
DataType > & 
ctd::defines::TypeId2DataTypeMap ()
 Return reference to data types numeric to string map. More...
 
template<class TYPE >
bool ctd::defines::SupportedType (const TYPE &variable)
 Check if the variable has a data type which is supported by the ELT ICS. More...
 
template<class TYPE >
void ctd::defines::CleanList (const List< TYPE > &list, const TYPE &pattern, List< TYPE > &clean_list)
 Remove elements from list, which are equal to "pattern". More...
 
template<class TYPE >
void ctd::defines::CheckRange (const std::string &par, TYPE value, TYPE lower_limit, TYPE upper_limit)
 Check if a value is within a given range. More...
 
template<class TYPE >
void ctd::defines::CheckRange (const std::string &par, const TYPE &value, List< TYPE > &valid_values)
 Check if a value is defined in a set. More...
 
template<class TYPE >
int32_t ctd::defines::ElInList (const List< TYPE > &list, const TYPE &value)
 Check for specific element in the list. More...
 
template<class TYPE >
std::string ctd::defines::DumpList (const List< TYPE > &list, const std::string &separator="\n")
 Dump contents of a list into a string buffer. More...
 
template<class MAP_TYPE >
bool ctd::defines::ElInMap (const std::string &key, const MAP_TYPE &map)
 Check if a given key is contained in an STL map. More...
 
void IFW_DEBUG (const char *format,...)
 Print out a temporary debug log. These kind of logs should be removed from the code. More...
 

Function Documentation

void IFW_DEBUG ( const char *  format,
  ... 
)

Print out a temporary debug log. These kind of logs should be removed from the code.