torc-master
|
Represents EDIF status construct. More...
#include <Status.hpp>
Data Structures | |
class | Factory |
Public Types | |
typedef VisitorType< Status > | Visitor |
typedef Status | Type |
typedef boost::shared_ptr< Type > | Pointer |
typedef boost::weak_ptr< Type > | WeakPointer |
Public Member Functions | |
virtual | ~Status () throw () |
void | getWrittens (std::vector< WrittenSharedPtr > &outValues) const |
void | setWrittens (const std::vector< WrittenSharedPtr > &inSource) |
void | addWritten (WrittenSharedPtr &inWritten) throw (Error) |
virtual void | accept (BaseVisitor &visitor) throw (Error) |
void | addComment (const std::string &comment) |
const std::vector< std::string > & | getComments () const |
void | setComments (const std::vector< std::string > &inSource) |
void | getUserData (std::list< std::string > &outUserData) const |
void | setUserData (const std::list< std::string > &inSource) |
void | addUserData (const std::string &inSource) |
void | setWeakThis (const WeakPointer &inWeakThis) |
Pointer | getSharedThis () const |
Protected Member Functions | |
Status () | |
Private Attributes | |
std::vector< WrittenSharedPtr > | mWrittens |
Friends | |
class | FactoryType< Status > |
Represents EDIF status construct.
Status is used to convey accounting and problem analysis information for the design.
Definition at line 42 of file Status.hpp.
|
inherited |
Definition at line 36 of file SelfReferencing.hpp.
|
inherited |
Definition at line 35 of file SelfReferencing.hpp.
Convenience class to visit a status.
Definition at line 52 of file Status.hpp.
|
inherited |
Definition at line 37 of file SelfReferencing.hpp.
|
virtual |
Definition at line 44 of file Status.cpp.
|
protected |
Definition at line 41 of file Status.cpp.
|
virtual |
Receive a visitor to this class. The visit method of the visitor is called and a reference to this object is passed as a parameter. It has to be noted however, that a dynamic_cast is performed inside this method. If the cast fails, an appropriate exception is thrown by this method. This situation can arise when the passed Visitor object does not inherit from the appropriate visitor specialization. See Visitor documentation for more details.
[in,out] | visitor | A reference to the visitor object |
Error | Visitor type inappropriate for visiting this object or any other error thrown by the Visitor::throw() method. |
Implements torc::generic::Visitable.
Definition at line 70 of file Status.cpp.
|
inherited |
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.
|
inherited |
Add an user data to the list of user data
[in] | inSource | An user data as string |
Definition at line 34 of file UserDataContainer.cpp.
void torc::generic::Status::addWritten | ( | WrittenSharedPtr & | inWritten | ) | |
throw | ( | Error | |||
) |
Add a written statement to the vector of written statements. If an empty pointer is supplied, it returns without doing anything.
[in] | inWritten | A pointer to a written object. |
Definition at line 66 of file Status.cpp.
|
inlineinherited |
Get the list of all comments
Definition at line 85 of file Commentable.hpp.
|
inlineinherited |
Get a shared pointer to this object. A valid pointer is returned if weakThis was set. Otherwise this returns a NULL pointer. For Vector types, the second scenario is an exception condition and should be treated as such.
Get a shared pointer to this object. A valid pointer is returned if weakThis was set. Otherwise this returns a NULL pointer. For Vector types, the second scenario is an exception condition and should be treated as such.
[out] | ptr | Set to a shared pointer to this object |
|
inlineinherited |
Get the list of all userData
[out] | outUserData | The list of all userData |
Definition at line 78 of file UserDataContainer.hpp.
|
inline |
Get the vector of written statements.
Definition at line 120 of file Status.hpp.
|
inherited |
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.
|
inherited |
Set the list of userData
[in] | inSource | The list of UserData |
Definition at line 26 of file UserDataContainer.cpp.
|
inlineinherited |
Set a weak pointer to this object. This will be used later to get a shared pointer to this object from within other member methods if required. This should be called by the Factory creating the object.
[in] | weakThis | A weak pointer to this object |
void torc::generic::Status::setWrittens | ( | const std::vector< WrittenSharedPtr > & | inSource | ) |
Set the vector of written statements.
[in] | inSource | Vector containing written statements |
Definition at line 51 of file Status.cpp.
|
friend |
Definition at line 45 of file Status.hpp.
|
private |
Definition at line 116 of file Status.hpp.