AGX Dynamics
2.37.3.2
FilePlot.h
Go to the documentation of this file.
1
/*
2
Copyright 2007-2024. Algoryx Simulation AB.
3
4
All AGX source code, intellectual property, documentation, sample code,
5
tutorials, scene files and technical white papers, are copyrighted, proprietary
6
and confidential material of Algoryx Simulation AB. You may not download, read,
7
store, distribute, publish, copy or otherwise disseminate, use or expose this
8
material unless having a written signed agreement with Algoryx Simulation AB, or having been
9
advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
10
valid commercial license from Algoryx Simulation AB.
11
12
Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13
from using this software, unless otherwise stated in written agreements with
14
Algoryx Simulation AB.
15
*/
16
17
#ifndef AGXPLOT_FILEPLOT_H
18
#define AGXPLOT_FILEPLOT_H
19
20
#include <
agxPlot/Output.h
>
21
22
#include <fstream>
23
#include <map>
24
#include <memory>
25
26
namespace
agxPlot
27
{
28
29
class
AGXPHYSICS_EXPORT
FilePlot
:
public
agxPlot::Output
30
{
31
public
:
32
FilePlot
(
const
agx::String
& fileName);
33
34
virtual
void
closeOutput();
35
virtual
void
handlePacket(
DataPacket
*packet);
36
virtual
void
handlePacket(
DescriptionPacket
*packet);
37
virtual
void
handlePacket(
TimePacket
* packet);
38
39
protected
:
40
virtual
~
FilePlot
();
41
private
:
42
bool
m_closed;
43
agx::String
m_outputFile;
44
std::map<CurveID, agx::String> m_subFiles;
45
std::map<CurveID, std::shared_ptr<std::ofstream>> m_fileOutStreams;
46
};
47
}
48
49
#endif
Output.h
agxPlot
Namespace contains functionality related to plotting.
agx::AgXString< std::string >
agxPlot::DataPacket
Definition:
DataPacket.h:50
AGXPHYSICS_EXPORT
#define AGXPHYSICS_EXPORT
agxPlot::DescriptionPacket
Definition:
DescriptionPacket.h:26
agxPlot::Output
Definition:
Output.h:32
agxPlot::FilePlot
Definition:
FilePlot.h:29
agxPlot::TimePacket
Definition:
TimePacket.h:25
include
agxPlot
FilePlot.h
Generated on Fri Apr 12 2024 12:40:22 for AGX Dynamics by
1.8.13