AGX Dynamics  2.37.3.2
JsonDataDumpDebug.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 without having a written signed agreement with Algoryx Simulation AB.
9 
10 Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
11 from using this software, unless otherwise stated in written agreements with
12 Algoryx Simulation AB.
13 */
14 
15 #pragma once
16 
17 #include <agx/Json.h>
18 #include <agxData/EntityData.h>
19 #include <agxData/EntityStorage.h>
20 #include <agx/DirectSolverData.h>
21 
22 namespace agx
23 {
25  {
26  public:
29 
30  agxJson::Value& addStorage(agxData::EntityStorage *storage);
31  agxJson::Value& addData(agxData::EntityData& data);
32  agxJson::Value& addBuffer(agxData::Buffer *buffer);
33  agxJson::Value& addSolverData(agx::DirectSolverData *data);
34 
35  agxJson::Value& addStorage(agxData::EntityStorage *storage, agxJson::Value& eParent);
36  agxJson::Value& addData(agxData::EntityData& data, agxJson::Value& eParent);
37  agxJson::Value& addBuffer(agxData::Buffer *buffer, agxJson::Value& eParent);
38  agxJson::Value& addSolverData(agx::DirectSolverData *data, agxJson::Value& eParent);
39 
40  agxJson::Value& addRealValarray(const agx::RealValarray& array, agxJson::Value& eValues);
41 
42  void write(const agx::String& fileName);
43 
44  private:
45  agxJson::Value m_root;
46  };
47 }
Data storage for a collection of entity instances of a specified EntityModel.
Definition: EntityStorage.h:72
#define AGXPHYSICS_EXPORT
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
Abstract representation of a data buffer.
Definition: Buffer.h:55
std::valarray< agx::Real > RealValarray
For this module, vectors are defined using valarray.
bool AGXPHYSICS_EXPORT write(const std::string &filename, const agxStream::Serializable *data)
Write a Serializable object to a file.