tnt::Compident Struct Reference

This is a class, which names tntnet components. More...

#include <tnt/compident.h>

Inheritance diagram for tnt::Compident:
tnt::Maptarget tnt::Subcompident

Public Member Functions

bool operator< (const Compident &ci) const
 Compident ()
 Compident (const std::string &l, const std::string &n)
 Creates a component identifyer with a library and component name.
 Compident (const std::string &ident)
 looks for '@' and splits the passed string into libname and compname parts.
const std::string & toString () const
 return component identifyer as a string
bool empty () const
void clear ()

Public Attributes

std::string libname
std::string compname

Detailed Description

This is a class, which names tntnet components.

tntnet components are identified by the library, where they reside and a name inside the library. The name is actually a string constant, which was passed to the component factory ctor.

Constructor & Destructor Documentation

tnt::Compident::Compident ( )
inline
tnt::Compident::Compident ( const std::string &  l,
const std::string &  n 
)
inline

Creates a component identifyer with a library and component name.

tnt::Compident::Compident ( const std::string &  ident)
explicit

looks for '@' and splits the passed string into libname and compname parts.

When no '@' is found, the library part is left empty.

Member Function Documentation

void tnt::Compident::clear ( )
inline
bool tnt::Compident::empty ( ) const
inline
bool tnt::Compident::operator< ( const Compident ci) const
inline
const std::string& tnt::Compident::toString ( ) const
inline

return component identifyer as a string

Reimplemented in tnt::Subcompident.

Member Data Documentation

std::string tnt::Compident::compname
std::string tnt::Compident::libname

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