torc-master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
torc::generic::UserDataContainer Class Reference

Represents class that can hold userData. More...

#include <UserDataContainer.hpp>

+ Inheritance diagram for torc::generic::UserDataContainer:

Public Member Functions

void getUserData (std::list< std::string > &outUserData) const
 
void setUserData (const std::list< std::string > &inSource)
 
void addUserData (const std::string &inSource)
 
 ~UserDataContainer () throw ()
 

Protected Member Functions

 UserDataContainer ()
 

Private Member Functions

 UserDataContainer (const UserDataContainer &source)
 
UserDataContaineroperator= (const UserDataContainer &source)
 

Private Attributes

std::list< std::string > mUserData
 

Detailed Description

Represents class that can hold userData.

The UserDataContainer interface is generalized by classes that need to hold one or more userData.

Definition at line 35 of file UserDataContainer.hpp.

Constructor & Destructor Documentation

torc::generic::UserDataContainer::UserDataContainer ( )
protected

Definition at line 38 of file UserDataContainer.cpp.

38  :
39  mUserData() {}
std::list< std::string > mUserData
torc::generic::UserDataContainer::~UserDataContainer ( )
throw (
)

Definition at line 41 of file UserDataContainer.cpp.

41 {}
torc::generic::UserDataContainer::UserDataContainer ( const UserDataContainer source)
private

Member Function Documentation

void torc::generic::UserDataContainer::addUserData ( const std::string &  inSource)

Add an user data to the list of user data

Parameters
[in]inSourceAn user data as string

Definition at line 34 of file UserDataContainer.cpp.

34  {
35  mUserData.push_back(inSource);
36 }
std::list< std::string > mUserData
void torc::generic::UserDataContainer::getUserData ( std::list< std::string > &  outUserData) const
inline

Get the list of all userData

Parameters
[out]outUserDataThe list of all userData

Definition at line 78 of file UserDataContainer.hpp.

78  {
79  outUserData.insert(outUserData.end(), mUserData.begin(), mUserData.end());
80  return;
81 }
std::list< std::string > mUserData
UserDataContainer& torc::generic::UserDataContainer::operator= ( const UserDataContainer source)
private
void torc::generic::UserDataContainer::setUserData ( const std::list< std::string > &  inSource)

Set the list of userData

Parameters
[in]inSourceThe list of UserData

Definition at line 26 of file UserDataContainer.cpp.

26  {
27  mUserData.insert(mUserData.end(), inSource.begin(), inSource.end());
28 }
std::list< std::string > mUserData

Field Documentation

std::list<std::string> torc::generic::UserDataContainer::mUserData
private

Definition at line 70 of file UserDataContainer.hpp.


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