Scope
scope::ScopeDatatypeBase< T > Class Template Reference

#include <ScopeDatatypes.h>

Public Member Functions

 ScopeDatatypeBase (const typename T::Mode &_t)
 
 ScopeDatatypeBase (const std::wstring &_str)
 
Some operator definitions to make life easier
ScopeDatatypeBaseoperator= (const typename T::Mode &_t)
 
bool operator== (const ScopeDatatypeBase &_sdb) const
 
bool operator== (const typename T::Mode &_t) const
 
bool operator!= (const ScopeDatatypeBase &_sdb) const
 
bool operator!= (const typename T::Mode &_t) const
 
bool operator< (const ScopeDatatypeBase &_sdb) const
 
bool operator> (const ScopeDatatypeBase &_sdb) const
 
 operator typename T::Mode () const
 
 operator uint32_t () const
 
 operator std::wstring () const
 

Static Public Member Functions

static std::wstring NameOf (const typename T::Mode &_t)
 
static std::wstring NameOf (const uint32_t &_n)
 

Public Attributes

T::Mode t
 

Detailed Description

template<class T>
class scope::ScopeDatatypeBase< T >

Base class for all Scope datatypes here, provides a uniform interface (and saves typing...).

This is mostly done to use Boost property trees with ScopeNumber<ScannerVectorType> and to have a similar interface that allows cast to wstring etc.

Definition at line 21 of file ScopeController.h.

Constructor & Destructor Documentation

template<class T>
scope::ScopeDatatypeBase< T >::ScopeDatatypeBase ( const typename T::Mode &  _t)
inline

Construct from enumerators.

Definition at line 48 of file ScopeDatatypes.h.

template<class T>
scope::ScopeDatatypeBase< T >::ScopeDatatypeBase ( const std::wstring &  _str)
inline

Construct from string.

Definition at line 52 of file ScopeDatatypes.h.

Member Function Documentation

template<class T>
static std::wstring scope::ScopeDatatypeBase< T >::NameOf ( const typename T::Mode &  _t)
inlinestatic
Returns
name of enumerators

Definition at line 38 of file ScopeDatatypes.h.

template<class T>
static std::wstring scope::ScopeDatatypeBase< T >::NameOf ( const uint32_t &  _n)
inlinestatic
Returns
name of int corresponding to enumerators

Definition at line 41 of file ScopeDatatypes.h.

Member Data Documentation

template<class T>
T::Mode scope::ScopeDatatypeBase< T >::t

the enum from the template class

Definition at line 34 of file ScopeDatatypes.h.


The documentation for this class was generated from the following files: