torc-master
|
Represents all classes that can hold user comments. More...
#include <Commentable.hpp>
Public Member Functions | |
void | addComment (const std::string &comment) |
const std::vector< std::string > & | getComments () const |
void | setComments (const std::vector< std::string > &inSource) |
virtual | ~Commentable () throw () |
Protected Member Functions | |
Commentable () | |
Private Member Functions | |
Commentable (const Commentable &source) | |
Commentable & | operator= (const Commentable &source) |
Private Attributes | |
std::vector< std::string > | mComments |
Represents all classes that can hold user comments.
The Commentable class holds a list of user comments that the users can modify. This class is inherited by all classes that can hold comments by user. Comments can be programatically inserted by clients or can be specified in edif files by (comment "string1" ..) syntax.
Definition at line 36 of file Commentable.hpp.
|
protected |
Definition at line 49 of file Commentable.cpp.
|
virtual |
Definition at line 51 of file Commentable.cpp.
|
private |
void torc::generic::Commentable::addComment | ( | const std::string & | comment | ) |
Add a comment to the object
[in] | comment | The comment to add to an existing list of comments |
Definition at line 36 of file Commentable.cpp.
|
inline |
Get the list of all comments
Definition at line 85 of file Commentable.hpp.
|
private |
void torc::generic::Commentable::setComments | ( | const std::vector< std::string > & | inSource | ) |
Get the list of all comments
[in] | inSource | A list of all comments to be set on this object |
Definition at line 45 of file Commentable.cpp.
|
private |
Definition at line 77 of file Commentable.hpp.