OpendTect  6.6
Namespaces | Macros | Functions
convert.h File Reference
Include dependency graph for convert.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 Conv
 Template based type conversion.
 

Macros

#define mConvDeclFromStrToSimpleType(type)
 
#define mConvDefFromStrToSimpleType(type, function)
 macro useful for implementation of string -> your type More...
 

Functions

template<class T , class F >
void Conv::set (T &_to, const F &fr)
 template based type conversion More...
 
template<class T , class F >
Conv::to (const F &fr)
 
template<class T , class F >
void Conv::udfset (T &_to, const F &fr, const T &und=Values::Undef< T >::val())
 template based type converstion, with check for undef More...
 
template<class T , class F >
Conv::udfto (const F &fr, const T &und=Values::Undef< T >::val())
 
template<>
void Conv::set (const char *&_to, const short &i)
 
template<>
void Conv::set (const char *&_to, const unsigned short &i)
 
template<>
void Conv::set (const char *&_to, const int &i)
 
template<>
void Conv::set (const char *&_to, const unsigned int &i)
 
template<>
void Conv::set (const char *&_to, const int64_t &i)
 
template<>
void Conv::set (const char *&_to, const uint64_t &i)
 
template<>
void Conv::set (const char *&_to, const bool &b)
 
template<>
void Conv::set (const char *&_to, const float &f)
 
template<>
void Conv::set (const char *&_to, const double &d)
 
template<>
void Conv::set (short &_to, const float &f)
 
template<>
void Conv::set (unsigned short &_to, const float &f)
 
template<>
void Conv::set (int &_to, const float &f)
 
template<>
void Conv::set (unsigned int &_to, const float &f)
 
template<>
void Conv::set (int64_t &_to, const float &f)
 
template<>
void Conv::set (uint64_t &_to, const float &f)
 
template<>
void Conv::set (short &_to, const double &f)
 
template<>
void Conv::set (unsigned short &_to, const double &f)
 
template<>
void Conv::set (int &_to, const double &f)
 
template<>
void Conv::set (unsigned int &_to, const double &f)
 
template<>
void Conv::set (int64_t &_to, const double &f)
 
template<>
void Conv::set (uint64_t &_to, const double &f)
 
template<>
void Conv::set (bool &_to, const char *const &s)
 
template<>
void Conv::set (bool &_to, const FixedString &s)
 
template<>
void Conv::set (bool &_to, const BufferString &s)
 
template<>
void Conv::set (bool &_to, const int &i)
 
template<>
void Conv::set (bool &_to, const float &f)
 
template<>
void Conv::set (bool &_to, const double &d)
 
template<>
void Conv::set (short &, const char *const &)
 
template<>
void Conv::set (short &, const FixedString &)
 
template<>
void Conv::set (short &, const BufferString &)
 
template<>
void Conv::set (unsigned short &, const char *const &)
 
template<>
void Conv::set (unsigned short &, const FixedString &)
 
template<>
void Conv::set (unsigned short &, const BufferString &)
 
template<>
void Conv::set (int &, const char *const &)
 
template<>
void Conv::set (int &, const FixedString &)
 
template<>
void Conv::set (int &, const BufferString &)
 
template<>
void Conv::set (unsigned int &, const char *const &)
 
template<>
void Conv::set (unsigned int &, const FixedString &)
 
template<>
void Conv::set (unsigned int &, const BufferString &)
 
template<>
void Conv::set (int64_t &, const char *const &)
 
template<>
void Conv::set (int64_t &, const FixedString &)
 
template<>
void Conv::set (int64_t &, const BufferString &)
 
template<>
void Conv::set (uint64_t &, const char *const &)
 
template<>
void Conv::set (uint64_t &, const FixedString &)
 
template<>
void Conv::set (uint64_t &, const BufferString &)
 
template<>
void Conv::set (double &, const char *const &)
 
template<>
void Conv::set (double &, const FixedString &)
 
template<>
void Conv::set (double &, const BufferString &)
 
template<>
void Conv::set (float &, const char *const &)
 
template<>
void Conv::set (float &, const FixedString &)
 
template<>
void Conv::set (float &, const BufferString &)
 

Macro Definition Documentation

◆ mConvDeclFromStrToSimpleType

#define mConvDeclFromStrToSimpleType (   type)
Value:
template <> mGlobal(Basic) void set(type&,const char* const&); \
template <> mGlobal(Basic) void set(type&,const FixedString&); \
template <> mGlobal(Basic) void set(type&,const BufferString&)

◆ mConvDefFromStrToSimpleType

#define mConvDefFromStrToSimpleType (   type,
  function 
)

macro useful for implementation of string -> your type

mGlobal
#define mGlobal(module)
Definition: commondefs.h:180
FixedString
OD::String that holds an existing text string.
Definition: fixedstring.h:29
BufferString
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size.
Definition: bufstring.h:40

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2021