tnt::Compident Struct Reference

This class is an identifier for a tntnet component. More...

#include <tnt/compident.h>

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

Public Member Functions

bool operator< (const Compident &ci) const
 Compident ()
 Create an empty Compident object.
 Compident (const std::string &lib, const std::string &comp)
 Create a Compident object with the given library and component name.
 Compident (const std::string &ident)
 Create a Compident from an identification string.
const std::string & toString () const
 Get component identifier as a string.
bool empty () const
 Check whether the Compident is empty.
void clear ()
 Erase the content of the library and component strings.

Public Attributes

std::string compident
std::string libname
std::string compname

Detailed Description

This class is an identifier for a tntnet component.

It encapsulates the name of a component plus optionally the library it is in.

Constructor & Destructor Documentation

tnt::Compident::Compident ( )
inline

Create an empty Compident object.

tnt::Compident::Compident ( const std::string &  lib,
const std::string &  comp 
)
inline

Create a Compident object with the given library and component name.

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

Create a Compident from an identification string.

The string has to be either only the component name or the library name + the character '@' + the component name.

Member Function Documentation

void tnt::Compident::clear ( )
inline

Erase the content of the library and component strings.

bool tnt::Compident::empty ( ) const
inline

Check whether the Compident is empty.

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

Get component identifier as a string.

Reimplemented in tnt::Subcompident.

Member Data Documentation

std::string tnt::Compident::compident
mutable
std::string tnt::Compident::compname
std::string tnt::Compident::libname

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