VPTissue Reference Manual
|
Event used to inform some observer that the workspace has changed. More...
#include <WorkspaceChanged.h>
Public Types | |
enum | Type { ProjectAdded, ProjectRenamed, ProjectRemoved } |
Public Member Functions | |
WorkspaceChanged (Type type, const std::string &name) | |
WorkspaceChanged (const std::string &old_name, const std::string &name) | |
const std::string | GetName () const |
In case type is ProjectAdded or ProjectRemoved, get name of project. More... | |
const std::string | GetNewName () const |
In case type is ProjectRenamed, get new name of renamed project. More... | |
const std::string | GetOldName () const |
In case type is ProjectRenamed, get old name of renamed project. More... | |
Type | GetType () const |
Get type. | |
Event used to inform some observer that the workspace has changed.
Really a POD but packaged to force users to initialize all data members.
Definition at line 31 of file WorkspaceChanged.h.
|
inline |
In case type is ProjectAdded or ProjectRemoved, get name of project.
In case type is not ProjectAdded and not ProjectRemoved, behavior is undefined.
Definition at line 53 of file WorkspaceChanged.h.
|
inline |
In case type is ProjectRenamed, get new name of renamed project.
If type is not ProjectRenamed, behavior is undefined.
Definition at line 67 of file WorkspaceChanged.h.
|
inline |
In case type is ProjectRenamed, get old name of renamed project.
If type is not ProjectRenamed, behavior is undefined.
Definition at line 60 of file WorkspaceChanged.h.