|  | VPTissue Reference Manual
    | 
Abstraction of workspace on file system. More...
#include <Workspace.h>


| Public Member Functions | |
| Workspace (const std::string &path, const std::string &prefs_file) | |
| Constructor.  More... | |
| Workspace (Workspace< ProjectType, index_file > &&) | |
| Move constructor. | |
| virtual | ~Workspace () | 
| Virtual destructor. | |
| virtual ProjectIterator | Add (const std::string &type, const std::string &name) | 
| virtual std::shared_ptr< IProject > | Back () | 
| virtual std::shared_ptr< const IProject > | Back () const | 
| virtual ProjectIterator | begin () | 
| virtual ConstProjectIterator | begin () const | 
| virtual ProjectIterator | end () | 
| virtual ConstProjectIterator | end () const | 
| virtual ProjectIterator | Find (const std::string &name) | 
| virtual ConstProjectIterator | Find (const std::string &name) const | 
| virtual std::shared_ptr< IProject > | Front () | 
| virtual std::shared_ptr< const IProject > | Front () const | 
| virtual std::shared_ptr< IProject > | Get (const std::string &name) | 
| virtual std::shared_ptr< const IProject > | Get (const std::string &name) const | 
| virtual const std::string & | GetIndexFile () const | 
| virtual const std::string & | GetPath () const | 
| virtual const boost::property_tree::ptree & | GetUserData (const std::string &user) const | 
| virtual bool | IsProject (const std::string &name) const | 
| virtual ProjectIterator | New (const std::string &type, const std::string &name) | 
| virtual void | Refresh () | 
| virtual void | Remove (ProjectIterator) | 
| virtual void | Remove (const std::string &name) | 
| virtual ProjectIterator | Rename (ProjectIterator, const std::string &new_name) | 
| virtual ProjectIterator | Rename (const std::string &old_name, const std::string &new_name) | 
| virtual void | SetUserData (const std::string &user, const boost::property_tree::ptree &) | 
|  Public Member Functions inherited from SimShell::Ws::IWorkspace | |
| virtual | ~IWorkspace () | 
| Virtual destructor. | |
|  Public Member Functions inherited from SimPT_Sim::Util::Subject< Event::PreferencesChanged, std::weak_ptr< const void > > | |
| void | Notify (const EventType &) | 
| void | Register (const U *, CallbackType) | 
| void | Unregister (const U *) | 
| void | UnregisterAll () | 
|  Public Member Functions inherited from SimPT_Sim::Util::Subject< Event::WorkspaceChanged, std::weak_ptr< const void > > | |
| void | Notify (const EventType &) | 
| void | Register (const U *, CallbackType) | 
| void | Unregister (const U *) | 
| void | UnregisterAll () | 
|  Public Member Functions inherited from SimShell::Ws::Preferences | |
| Preferences (const std::string &file) | |
| Preferences (Preferences &&) | |
| virtual const boost::property_tree::ptree & | GetPreferences () const | 
| virtual void | SetPreferences (const boost::property_tree::ptree &) | 
| Protected Attributes | |
| Util::FileSystemWatcher | m_filesystem_watcher | 
| Watch workspace index file for changes. | |
| std::string | m_path | 
| Path workspace was initialized with. | |
| std::string | m_prefs_file | 
| Name of preferences file. | |
| ProjectMap | m_projects | 
| Mapping from project name to project. | |
| boost::property_tree::ptree | m_user_data | 
| GetUserData() with non-existing argument creates an empty user data. | |
|  Protected Attributes inherited from SimShell::Ws::Preferences | |
| boost::property_tree::ptree | m_preferences | 
| Additional Inherited Members | |
|  Public Types inherited from SimShell::Ws::IWorkspace | |
| using | ConstProjectIterator = typename ProjectMap::const_iterator | 
| using | ProjectIterator = typename ProjectMap::iterator | 
| using | ProjectMap = std::map< std::string, ProjectMapEntry > | 
|  Public Types inherited from SimPT_Sim::Util::Subject< Event::PreferencesChanged, std::weak_ptr< const void > > | |
| typedef std::function< void(const EventType &)> | CallbackType | 
| typedef Event::PreferencesChanged | EventType | 
| typedef const std::weak_ptr< const void > * | KeyType | 
|  Public Types inherited from SimPT_Sim::Util::Subject< Event::WorkspaceChanged, std::weak_ptr< const void > > | |
| typedef std::function< void(const EventType &)> | CallbackType | 
| typedef Event::WorkspaceChanged | EventType | 
| typedef const std::weak_ptr< const void > * | KeyType | 
Abstraction of workspace on file system.
Definition at line 46 of file cpp_simshell/workspace/Workspace.h.
| SimShell::Ws::Workspace< ProjectType, index_file >::Workspace | ( | const std::string & | path, | 
| const std::string & | prefs_file | ||
| ) | 
Constructor.
| path | Path of work space to initialize model with. | 
| Exception | if given path is not a valid workspace. | 
Definition at line 40 of file Workspace_def.h.
References SimShell::Ws::Workspace< ProjectType, index_file >::m_path, SimShell::Ws::Workspace< ProjectType, index_file >::m_prefs_file, SimShell::Ws::Workspace< ProjectType, index_file >::m_projects, and SimShell::Ws::Workspace< ProjectType, index_file >::m_user_data.
| 
 | virtual | 
Implements SimShell::Ws::IWorkspace.
Definition at line 236 of file Workspace_def.h.
| 
 | virtual | 
Implements SimShell::Ws::IWorkspace.
Definition at line 165 of file Workspace_def.h.
| 
 | virtual | 
Implements SimShell::Ws::IWorkspace.
Definition at line 171 of file Workspace_def.h.
| 
 | virtual | 
Implements SimShell::Ws::IWorkspace.
Definition at line 126 of file Workspace_def.h.
| 
 | virtual | 
Implements SimShell::Ws::IWorkspace.
Definition at line 133 of file Workspace_def.h.
| 
 | virtual | 
Implements SimShell::Ws::IWorkspace.
Definition at line 140 of file Workspace_def.h.
| 
 | virtual | 
Implements SimShell::Ws::IWorkspace.
Definition at line 147 of file Workspace_def.h.
| 
 | virtual | 
Implements SimShell::Ws::IWorkspace.
Definition at line 178 of file Workspace_def.h.
| 
 | virtual | 
Implements SimShell::Ws::IWorkspace.
Definition at line 185 of file Workspace_def.h.
| 
 | virtual | 
Implements SimShell::Ws::IWorkspace.
Definition at line 153 of file Workspace_def.h.
| 
 | virtual | 
Implements SimShell::Ws::IWorkspace.
Definition at line 159 of file Workspace_def.h.
| 
 | virtual | 
Implements SimShell::Ws::IWorkspace.
Definition at line 208 of file Workspace_def.h.
| 
 | virtual | 
Implements SimShell::Ws::IWorkspace.
Definition at line 199 of file Workspace_def.h.
| 
 | virtual | 
Implements SimShell::Ws::IWorkspace.
Definition at line 94 of file Workspace_def.h.
| 
 | virtual | 
Implements SimShell::Ws::IWorkspace.
Definition at line 100 of file Workspace_def.h.
| 
 | virtual | 
Implements SimShell::Ws::IUserData.
Definition at line 106 of file Workspace_def.h.
| 
 | virtual | 
Implements SimShell::Ws::IWorkspace.
Definition at line 193 of file Workspace_def.h.
| 
 | virtual | 
Implements SimShell::Ws::IWorkspace.
Definition at line 218 of file Workspace_def.h.
| 
 | virtual | 
Implements SimShell::Ws::IWorkspace.
Definition at line 260 of file Workspace_def.h.
| 
 | virtual | 
Implements SimShell::Ws::IWorkspace.
Definition at line 364 of file Workspace_def.h.
| 
 | virtual | 
Implements SimShell::Ws::IWorkspace.
Definition at line 355 of file Workspace_def.h.
| 
 | virtual | 
Implements SimShell::Ws::IWorkspace.
Definition at line 335 of file Workspace_def.h.
| 
 | virtual | 
Implements SimShell::Ws::IWorkspace.
Definition at line 325 of file Workspace_def.h.
| 
 | virtual | 
Implements SimShell::Ws::IUserData.
Definition at line 118 of file Workspace_def.h.