VPTissue Reference Manual
SimShell::Ws::Event::WorkspaceChanged Class Reference

Event used to inform some observer that the workspace has changed. More...

#include <WorkspaceChanged.h>

Collaboration diagram for SimShell::Ws::Event::WorkspaceChanged:
Collaboration graph

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.
 

Detailed Description

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.

Member Function Documentation

const std::string SimShell::Ws::Event::WorkspaceChanged::GetName ( ) const
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.

const std::string SimShell::Ws::Event::WorkspaceChanged::GetNewName ( ) const
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.

const std::string SimShell::Ws::Event::WorkspaceChanged::GetOldName ( ) const
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.


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