SMTK  @SMTK_VERSION@
Simulation Modeling Tool Kit
SessionIO.h
1 //=========================================================================
2 // Copyright (c) Kitware, Inc.
3 // All rights reserved.
4 // See LICENSE.txt for details.
5 //
6 // This software is distributed WITHOUT ANY WARRANTY; without even
7 // the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
8 // PURPOSE. See the above copyright notice for more information.
9 //=========================================================================
10 #ifndef smtk_model_SessionIO_h
11 #define smtk_model_SessionIO_h
12 
13 #include "smtk/CoreExports.h"
14 #include "smtk/PublicPointerDefs.h"
15 #include "smtk/SharedFromThis.h"
16 
17 #include <string>
18 
19 namespace smtk
20 {
21 namespace model
22 {
23 
46 class SMTKCORE_EXPORT SessionIO
47 {
48 public:
50  virtual ~SessionIO() = default; // virtual method needed so dynamic_cast will work
51 
59  std::string referencePath() const { return m_referencePath; }
60 
62  void setReferencePath(const std::string& p) { m_referencePath = p; }
63 
64 protected:
65  std::string m_referencePath;
66 };
67 
68 } // namespace model
69 } // namespace smtk
70 
71 #endif // smtk_model_SessionIO_h
smtk
The main namespace for the Simulation Modeling Tool Kit (SMTK).
Definition: doc.h:33
PublicPointerDefs.h
smtk::model::SessionIO::setReferencePath
void setReferencePath(const std::string &p)
Set the directory to use during import/export for creating relative paths.
Definition: SessionIO.h:62
smtk::model::SessionIO::referencePath
std::string referencePath() const
Return a reference directory to use during import/export.
Definition: SessionIO.h:59
smtk::model::SessionIO
A base class for delegating session I/O.
Definition: SessionIO.h:46
SharedFromThis.h
Macros for dealing with shared-pointer classes.
smtkTypeMacroBase
#define smtkTypeMacroBase(...)
Add typedefs to a class for identifcation.
Definition: SharedFromThis.h:55