SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
smtk
simulation
ExportSpec.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
// .NAME ExportSpec - Application data for passing to python scripts.
11
// .SECTION Description
12
// This class if for storing application data passed from application code
13
// to python scripts.
14
// .SECTION See Also
15
16
#ifndef smtk_simulation_ExportSpec_h
17
#define smtk_simulation_ExportSpec_h
18
19
#include "smtk/CoreExports.h"
20
#include "
smtk/PublicPointerDefs.h
"
21
#include "
smtk/io/Logger.h
"
22
23
#include <string>
24
#include <vector>
25
26
namespace
smtk
27
{
28
namespace
simulation
29
{
30
class
SMTKCORE_EXPORT
ExportSpec
31
{
32
public
:
33
// Data-get methods, intended to be called from python scripts
34
smtk::attribute::ResourcePtr
getSimulationAttributes()
const
{
return
m_simulationResource; }
35
smtk::attribute::ResourcePtr
getExportAttributes()
const
{
return
m_exportResource; }
36
smtk::io::LoggerPtr
getLogger()
const
{
return
m_logger; }
37
38
// Constructor and data-set methods, intended to be called from C/C++ code
39
ExportSpec
();
40
void
clear();
41
42
void
setSimulationAttributes(
smtk::attribute::ResourcePtr
resource)
43
{
44
m_simulationResource = resource;
45
}
46
void
setExportAttributes(
smtk::attribute::ResourcePtr
resource) { m_exportResource = resource; }
47
48
private
:
49
smtk::attribute::ResourcePtr
m_simulationResource;
50
smtk::attribute::ResourcePtr
m_exportResource;
51
smtk::io::LoggerPtr
m_logger;
52
};
53
}
// namespace simulation
54
}
// namespace smtk
55
56
#endif
/* smtk_simulation_ExportSpec_h */
smtk
The main namespace for the Simulation Modeling Tool Kit (SMTK).
Definition:
doc.h:33
Logger.h
PublicPointerDefs.h
smtk::simulation::ExportSpec
Definition:
ExportSpec.h:30
smtk::io::LoggerPtr
smtk::shared_ptr< smtk::io::Logger > LoggerPtr
Definition:
PublicPointerDefs.h:261
smtk::attribute::ResourcePtr
smtk::shared_ptr< smtk::attribute::Resource > ResourcePtr
Definition:
PublicPointerDefs.h:604
Generated by
1.8.17