bbtk::DataInfo Class Reference

Object storing informations on a data type : includes C++ type info (std::type_info) and a string describing the "nature" of the data (what is the content of the structure). More...

#include <bbtkData.h>

List of all members.

Public Member Functions

 DataInfo (TypeInfo type, const std::string &nature="")
 ~DataInfo ()
TypeInfo GetType () const
const std::string & GetNature () const
bool operator== (const DataInfo &k) const
 Equality.
bool operator< (const DataInfo &k) const
 Comparison.

Private Member Functions

 DataInfo ()

Private Attributes

TypeInfo mType
std::string mNature


Detailed Description

Object storing informations on a data type : includes C++ type info (std::type_info) and a string describing the "nature" of the data (what is the content of the structure).

Definition at line 54 of file bbtkData.h.


Constructor & Destructor Documentation

bbtk::DataInfo::DataInfo ( TypeInfo  type,
const std::string &  nature = "" 
) [inline]

Definition at line 57 of file bbtkData.h.

00058       : mType(type), mNature(nature)
00059     {}

bbtk::DataInfo::~DataInfo (  )  [inline]

Definition at line 61 of file bbtkData.h.

00061 {}

bbtk::DataInfo::DataInfo (  )  [inline, private]

Definition at line 82 of file bbtkData.h.

00082 : mType(typeid(void)), mNature("") {}


Member Function Documentation

const std::string& bbtk::DataInfo::GetNature (  )  const [inline]

Definition at line 64 of file bbtkData.h.

References mNature.

Referenced by bbtk::Factory::FindWidgetAdaptor2(), and bbtk::operator<<().

00064 { return mNature; }

Here is the caller graph for this function:

TypeInfo bbtk::DataInfo::GetType (  )  const [inline]

Definition at line 63 of file bbtkData.h.

References mType.

Referenced by bbtk::Factory::FindWidgetAdaptor2(), and bbtk::operator<<().

00063 { return mType; }

Here is the caller graph for this function:

bool bbtk::DataInfo::operator< ( const DataInfo k  )  const [inline]

Comparison.

Definition at line 73 of file bbtkData.h.

References mNature, and mType.

00074       {
00075         return ( ( mType.before(k.mType) ) ||
00076                  ( ( mType == k.mType ) &&
00077                    ( mNature.compare(k.mNature) < 0 ) ) );
00078       }

bool bbtk::DataInfo::operator== ( const DataInfo k  )  const [inline]

Equality.

Definition at line 67 of file bbtkData.h.

References mNature, and mType.

00068       {
00069         return ( (mType == k.mType)  &&
00070                  (mNature == k.mNature) );
00071       }


Member Data Documentation

std::string bbtk::DataInfo::mNature [private]

Definition at line 84 of file bbtkData.h.

Referenced by GetNature(), operator<(), and operator==().

Definition at line 83 of file bbtkData.h.

Referenced by GetType(), operator<(), and operator==().


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

Generated on Thu May 31 14:14:23 2012 for BBTK by  doxygen 1.5.7.1