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.

References mNature, and mType.

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.

References mNature, and mType.

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


Member Function Documentation

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

Definition at line 63 of file bbtkData.h.

References GetType(), and mType.

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

00063 { return mType; }

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 64 of file bbtkData.h.

References GetNature(), and mNature.

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

00064 { return mNature; }

Here is the call graph for this function:

Here is the caller graph for this function:

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       }

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       }


Member Data Documentation

TypeInfo bbtk::DataInfo::mType [private]

Definition at line 83 of file bbtkData.h.

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

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

Definition at line 84 of file bbtkData.h.

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


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

Generated on Wed Nov 12 11:38:43 2008 for BBTK by  doxygen 1.5.6