Module is a container class for multiple logically related Sessions. More...
#include <module.h>
Public Member Functions | |
ModuleTmpl () | |
Module constructor with "default" as Module name. | |
ModuleTmpl (std::string name) | |
Module constructor. | |
virtual | ~ModuleTmpl () |
Module destructor. | |
std::string | name () const |
void | set_name (std::string name) |
Replace Module name. | |
void | add_session (SessionType *session) |
unsigned int | num_sessions () const |
bool | has_session (std::string name) const |
Test if Session is in Module. | |
SessionType * | session (std::string name) const |
SessionContainer::const_iterator | session_begin () const |
SessionContainer::const_iterator | session_end () const |
void | add_import (ImportType *import) |
unsigned int | num_imports () const |
bool | has_import (std::string name) const |
Test if Import is in Module. | |
ImportType * | import (std::string name) const |
ImportContainer::const_iterator | import_begin () const |
ImportContainer::const_iterator | import_end () const |
Module is a container class for multiple logically related Sessions.
void sesstype::ModuleTmpl< ImportType, SessionType >::add_import | ( | ImportType * | import | ) | [inline] |
[in] | import | to add to Module. |
void sesstype::ModuleTmpl< ImportType, SessionType >::add_session | ( | SessionType * | session | ) | [inline] |
[in] | Session | to add as component of Module. |
bool sesstype::ModuleTmpl< ImportType, SessionType >::has_import | ( | std::string | name | ) | const [inline] |
bool sesstype::ModuleTmpl< ImportType, SessionType >::has_session | ( | std::string | name | ) | const [inline] |
Test if Session is in Module.
name
is a Session in Module. ImportType* sesstype::ModuleTmpl< ImportType, SessionType >::import | ( | std::string | name | ) | const [inline] |
std::string sesstype::ModuleTmpl< ImportType, SessionType >::name | ( | ) | const [inline] |
unsigned int sesstype::ModuleTmpl< ImportType, SessionType >::num_sessions | ( | ) | const [inline] |
SessionType* sesstype::ModuleTmpl< ImportType, SessionType >::session | ( | std::string | name | ) | const [inline] |
name
. std::out_of_range | if not found. |
void sesstype::ModuleTmpl< ImportType, SessionType >::set_name | ( | std::string | name | ) | [inline] |
Replace Module name.
[in] | name | of Module to replace with. |