RigsofRods
Soft-body Physics Simulation
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions
RigDef::Serializer Class Reference

Serializes the RigDef::File data structure to string. More...

#include <RigDef_Serializer.h>

+ Collaboration diagram for RigDef::Serializer:

Public Member Functions

 Serializer (RigDef::DocumentPtr rig_def)
 
void Serialize ()
 
std::string GetOutput () const
 

Protected Member Functions

std::string RigidityNodeToStr (Node::Ref node)
 
std::string NodeOptionsToStr (BitMask_t options)
 
void ExportBaseMeshWheel (BaseMeshWheel &def)
 
void ExportDocComment (Document::Module *module, RigDef::Keyword keyword, ptrdiff_t vectorpos)
 
void ResetPresets ()
 
void UpdatePresets (BeamDefaults *beam, NodeDefaults *node, DefaultMinimass *minimass)
 

Protected Attributes

std::stringstream m_stream
 
RigDef::DocumentPtr m_rig_def
 
int m_float_width
 
int m_bool_width
 
int m_node_id_width
 
int m_command_key_width
 
int m_inertia_function_width
 
std::string m_dataline_indentstr = ""
 a node or a beam line for example More...
 
std::string m_setdefaults_indentstr = ""
 'set_beam_defaults' for example More...
 
BeamDefaultsm_current_beam_defaults = nullptr
 
NodeDefaultsm_current_node_defaults = nullptr
 
DefaultMinimassm_current_default_minimass = nullptr
 

Private Member Functions

void SerializeModule (std::shared_ptr< RigDef::Document::Module > m)
 
void ProcessAuthors (Document::Module *module)
 
void ProcessGlobals (Document::Module *module)
 
void ProcessDescription (Document::Module *module)
 
void ProcessGuid (Document::Module *module)
 
void ProcessFileinfo (Document::Module *module)
 
void WriteFlags ()
 
void ProcessHelp (Document::Module *module)
 
void ProcessCinecam (Document::Module *)
 
void ProcessNodes (Document::Module *)
 
void ProcessNode (Node &node)
 
void ProcessNodeDefaults (NodeDefaults *node_defaults)
 
void ProcessDefaultMinimass (DefaultMinimass *default_minimass)
 
void ProcessBeams (Document::Module *)
 
void ProcessBeamDefaults (BeamDefaults *beam_defaults)
 
void ProcessBeam (Beam &beam)
 
void ProcessShocks (Document::Module *)
 
void ProcessShocks2 (Document::Module *)
 
void ProcessShocks3 (Document::Module *)
 
void ProcessShock (Shock &def)
 
void ProcessShock2 (Shock2 &def)
 
void ProcessShock3 (Shock3 &def)
 
void ProcessHydros (Document::Module *)
 
void ProcessHydro (Hydro &def)
 
void ProcessRotators (Document::Module *module)
 
void ProcessRotators2 (Document::Module *module)
 
void ProcessCommands2 (Document::Module *)
 
void ProcessCommand2 (Command2 &def)
 
void ProcessSlideNodes (Document::Module *module)
 
void ProcessRopes (Document::Module *module)
 
void ProcessFixes (Document::Module *module)
 
void ProcessTies (Document::Module *module)
 
void ProcessCameras (Document::Module *module)
 
void ProcessEngine (Document::Module *module)
 
void ProcessEngoption (Document::Module *module)
 
void ProcessBrakes (Document::Module *module)
 
void ProcessAntiLockBrakes (Document::Module *module)
 
void ProcessTractionControl (Document::Module *module)
 
void ProcessTorqueCurve (Document::Module *module)
 
void ProcessCruiseControl (Document::Module *module)
 
void ProcessSpeedLimiter (Document::Module *module)
 
void ProcessAxles (Document::Module *module)
 
void ProcessTransferCase (Document::Module *module)
 
void ProcessInterAxles (Document::Module *module)
 
void ProcessMeshWheels (Document::Module *module)
 
void ProcessMeshWheels2 (Document::Module *module)
 
void ProcessWheels (Document::Module *module)
 
void ProcessWheels2 (Document::Module *module)
 
void ProcessFlexBodyWheels (Document::Module *module)
 
void ProcessAnimators (Document::Module *module)
 
void ProcessContacters (Document::Module *module)
 
void ProcessTriggers (Document::Module *module)
 
void ProcessLockgroups (Document::Module *module)
 
void ProcessHooks (Document::Module *module)
 
void ProcessRailGroups (Document::Module *module)
 
void ProcessRopables (Document::Module *module)
 
void ProcessParticles (Document::Module *module)
 
void ProcessCollisionBoxes (Document::Module *module)
 
void ProcessManagedMaterialsAndOptions (Document::Module *module)
 
void ProcessFlares2 (Document::Module *module)
 
void ProcessMaterialFlareBindings (Document::Module *module)
 
void ProcessPropsAndAnimations (Document::Module *module)
 
void ProcessFlexbodies (Document::Module *module)
 
void ProcessDirectiveAddAnimation (RigDef::Animation &anim)
 
void ProcessSubmesh (Document::Module *module)
 
void ProcessSubmeshGroundmodel (Document::Module *module)
 
void ProcessExhausts (Document::Module *module)
 
void ProcessGuiSettings (Document::Module *module)
 
void ProcessSetSkeletonSettings (Document::Module *module)
 
void ProcessVideocamera (Document::Module *module)
 
void ProcessExtCamera (Document::Module *module)
 
void ProcessSoundsources (Document::Module *module)
 
void ProcessSoundsources2 (Document::Module *module)
 
void ProcessWings (Document::Module *module)
 
void ProcessAirbrakes (Document::Module *module)
 
void ProcessTurboprops (Document::Module *module)
 
void ProcessFusedrag (Document::Module *module)
 
void ProcessTurbojets (Document::Module *module)
 
void ProcessPistonprops (Document::Module *module)
 
void ProcessScrewprops (Document::Module *module)
 

Detailed Description

Serializes the RigDef::File data structure to string.

Author
Petr Ohlidal

Definition at line 37 of file RigDef_Serializer.h.

Constructor & Destructor Documentation

◆ Serializer()

Serializer::Serializer ( RigDef::DocumentPtr  rig_def)

Definition at line 41 of file RigDef_Serializer.cpp.

Member Function Documentation

◆ ExportBaseMeshWheel()

void Serializer::ExportBaseMeshWheel ( BaseMeshWheel def)
protected

Definition at line 1834 of file RigDef_Serializer.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ExportDocComment()

void Serializer::ExportDocComment ( Document::Module module,
RigDef::Keyword  keyword,
ptrdiff_t  vectorpos 
)
protected

Definition at line 2658 of file RigDef_Serializer.cpp.

+ Here is the caller graph for this function:

◆ GetOutput()

std::string RigDef::Serializer::GetOutput ( ) const
inline

Definition at line 42 of file RigDef_Serializer.h.

+ Here is the caller graph for this function:

◆ NodeOptionsToStr()

std::string Serializer::NodeOptionsToStr ( BitMask_t  options)
protected

Definition at line 2476 of file RigDef_Serializer.cpp.

+ Here is the caller graph for this function:

◆ ProcessAirbrakes()

void Serializer::ProcessAirbrakes ( Document::Module module)
private

Definition at line 303 of file RigDef_Serializer.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ProcessAnimators()

void Serializer::ProcessAnimators ( Document::Module module)
private

Definition at line 1376 of file RigDef_Serializer.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ProcessAntiLockBrakes()

void Serializer::ProcessAntiLockBrakes ( Document::Module module)
private

Definition at line 1642 of file RigDef_Serializer.cpp.

+ Here is the caller graph for this function:

◆ ProcessAuthors()

void Serializer::ProcessAuthors ( Document::Module module)
private

Definition at line 2594 of file RigDef_Serializer.cpp.

+ Here is the caller graph for this function:

◆ ProcessAxles()

void Serializer::ProcessAxles ( Document::Module module)
private

Definition at line 914 of file RigDef_Serializer.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ProcessBeam()

void Serializer::ProcessBeam ( Beam beam)
private

Definition at line 2348 of file RigDef_Serializer.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ProcessBeamDefaults()

void Serializer::ProcessBeamDefaults ( BeamDefaults beam_defaults)
private

Definition at line 2327 of file RigDef_Serializer.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ProcessBeams()

void Serializer::ProcessBeams ( Document::Module module)
private

Definition at line 1943 of file RigDef_Serializer.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ProcessBrakes()

void Serializer::ProcessBrakes ( Document::Module module)
private

Definition at line 1629 of file RigDef_Serializer.cpp.

+ Here is the caller graph for this function:

◆ ProcessCameras()

void Serializer::ProcessCameras ( Document::Module module)
private

Definition at line 1891 of file RigDef_Serializer.cpp.

+ Here is the caller graph for this function:

◆ ProcessCinecam()

void Serializer::ProcessCinecam ( Document::Module module)
private

Definition at line 1909 of file RigDef_Serializer.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ProcessCollisionBoxes()

void Serializer::ProcessCollisionBoxes ( Document::Module module)
private

Definition at line 886 of file RigDef_Serializer.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ProcessCommand2()

void Serializer::ProcessCommand2 ( Command2 def)
private

Definition at line 2107 of file RigDef_Serializer.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ProcessCommands2()

void Serializer::ProcessCommands2 ( Document::Module module)
private

Definition at line 2079 of file RigDef_Serializer.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ProcessContacters()

void Serializer::ProcessContacters ( Document::Module module)
private

Definition at line 1440 of file RigDef_Serializer.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ProcessCruiseControl()

void Serializer::ProcessCruiseControl ( Document::Module module)
private

Definition at line 998 of file RigDef_Serializer.cpp.

+ Here is the caller graph for this function:

◆ ProcessDefaultMinimass()

void Serializer::ProcessDefaultMinimass ( DefaultMinimass default_minimass)
private

Definition at line 2498 of file RigDef_Serializer.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ProcessDescription()

void Serializer::ProcessDescription ( Document::Module module)
private

Definition at line 2580 of file RigDef_Serializer.cpp.

+ Here is the caller graph for this function:

◆ ProcessDirectiveAddAnimation()

void Serializer::ProcessDirectiveAddAnimation ( RigDef::Animation anim)
private

Definition at line 606 of file RigDef_Serializer.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ProcessEngine()

void Serializer::ProcessEngine ( Document::Module module)
private

Definition at line 1660 of file RigDef_Serializer.cpp.

+ Here is the caller graph for this function:

◆ ProcessEngoption()

void Serializer::ProcessEngoption ( Document::Module module)
private

Definition at line 1694 of file RigDef_Serializer.cpp.

+ Here is the caller graph for this function:

◆ ProcessExhausts()

void Serializer::ProcessExhausts ( Document::Module module)
private

Definition at line 514 of file RigDef_Serializer.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ProcessExtCamera()

void Serializer::ProcessExtCamera ( Document::Module module)
private

Definition at line 420 of file RigDef_Serializer.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ProcessFileinfo()

void Serializer::ProcessFileinfo ( Document::Module module)
private

Definition at line 2557 of file RigDef_Serializer.cpp.

+ Here is the caller graph for this function:

◆ ProcessFixes()

void Serializer::ProcessFixes ( Document::Module module)
private

Definition at line 1121 of file RigDef_Serializer.cpp.

+ Here is the caller graph for this function:

◆ ProcessFlares2()

void Serializer::ProcessFlares2 ( Document::Module module)
private

Definition at line 801 of file RigDef_Serializer.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ProcessFlexbodies()

void Serializer::ProcessFlexbodies ( Document::Module module)
private

Definition at line 671 of file RigDef_Serializer.cpp.

+ Here is the call graph for this function:

◆ ProcessFlexBodyWheels()

void Serializer::ProcessFlexBodyWheels ( Document::Module module)
private

Definition at line 1568 of file RigDef_Serializer.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ProcessFusedrag()

void Serializer::ProcessFusedrag ( Document::Module module)
private

Definition at line 253 of file RigDef_Serializer.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ProcessGlobals()

void Serializer::ProcessGlobals ( Document::Module module)
private

Definition at line 2613 of file RigDef_Serializer.cpp.

+ Here is the caller graph for this function:

◆ ProcessGuid()

void Serializer::ProcessGuid ( Document::Module module)
private

Definition at line 2572 of file RigDef_Serializer.cpp.

+ Here is the caller graph for this function:

◆ ProcessGuiSettings()

void Serializer::ProcessGuiSettings ( Document::Module module)
private

Definition at line 499 of file RigDef_Serializer.cpp.

+ Here is the caller graph for this function:

◆ ProcessHelp()

void Serializer::ProcessHelp ( Document::Module module)
private

Definition at line 1732 of file RigDef_Serializer.cpp.

◆ ProcessHooks()

void Serializer::ProcessHooks ( Document::Module module)
private

Definition at line 1252 of file RigDef_Serializer.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ProcessHydro()

void Serializer::ProcessHydro ( Hydro def)
private

Definition at line 2149 of file RigDef_Serializer.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ProcessHydros()

void Serializer::ProcessHydros ( Document::Module module)
private

Definition at line 2052 of file RigDef_Serializer.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ProcessInterAxles()

void Serializer::ProcessInterAxles ( Document::Module module)
private

Definition at line 946 of file RigDef_Serializer.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ProcessLockgroups()

void Serializer::ProcessLockgroups ( Document::Module module)
private

Definition at line 1290 of file RigDef_Serializer.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ProcessManagedMaterialsAndOptions()

void Serializer::ProcessManagedMaterialsAndOptions ( Document::Module module)
private

Definition at line 831 of file RigDef_Serializer.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ProcessMaterialFlareBindings()

void Serializer::ProcessMaterialFlareBindings ( Document::Module module)
private

Definition at line 784 of file RigDef_Serializer.cpp.

+ Here is the caller graph for this function:

◆ ProcessMeshWheels()

void Serializer::ProcessMeshWheels ( Document::Module module)
private

Definition at line 1858 of file RigDef_Serializer.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ProcessMeshWheels2()

void Serializer::ProcessMeshWheels2 ( Document::Module module)
private

Definition at line 1875 of file RigDef_Serializer.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ProcessNode()

void Serializer::ProcessNode ( Node node)
private

Definition at line 2505 of file RigDef_Serializer.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ProcessNodeDefaults()

void Serializer::ProcessNodeDefaults ( NodeDefaults node_defaults)
private

Definition at line 2457 of file RigDef_Serializer.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ProcessNodes()

void Serializer::ProcessNodes ( Document::Module module)
private

Definition at line 2383 of file RigDef_Serializer.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ProcessParticles()

void Serializer::ProcessParticles ( Document::Module module)
private

Definition at line 1048 of file RigDef_Serializer.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ProcessPistonprops()

void Serializer::ProcessPistonprops ( Document::Module module)
private

Definition at line 173 of file RigDef_Serializer.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ProcessPropsAndAnimations()

void Serializer::ProcessPropsAndAnimations ( Document::Module module)
private

Definition at line 725 of file RigDef_Serializer.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ProcessRailGroups()

void Serializer::ProcessRailGroups ( Document::Module module)
private

Definition at line 1170 of file RigDef_Serializer.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ProcessRopables()

void Serializer::ProcessRopables ( Document::Module module)
private

Definition at line 1071 of file RigDef_Serializer.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ProcessRopes()

void Serializer::ProcessRopes ( Document::Module module)
private

Definition at line 1136 of file RigDef_Serializer.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ProcessRotators()

void Serializer::ProcessRotators ( Document::Module module)
private

Definition at line 1456 of file RigDef_Serializer.cpp.

+ Here is the call graph for this function:

◆ ProcessRotators2()

void Serializer::ProcessRotators2 ( Document::Module module)
private

Definition at line 1505 of file RigDef_Serializer.cpp.

+ Here is the call graph for this function:

◆ ProcessScrewprops()

void Serializer::ProcessScrewprops ( Document::Module module)
private

Definition at line 230 of file RigDef_Serializer.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ProcessSetSkeletonSettings()

void Serializer::ProcessSetSkeletonSettings ( Document::Module module)
private

Definition at line 488 of file RigDef_Serializer.cpp.

+ Here is the caller graph for this function:

◆ ProcessShock()

void Serializer::ProcessShock ( Shock def)
private

Definition at line 2191 of file RigDef_Serializer.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ProcessShock2()

void Serializer::ProcessShock2 ( Shock2 def)
private

Definition at line 2231 of file RigDef_Serializer.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ProcessShock3()

void Serializer::ProcessShock3 ( Shock3 def)
private

Definition at line 2280 of file RigDef_Serializer.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ProcessShocks()

void Serializer::ProcessShocks ( Document::Module module)
private

Definition at line 1970 of file RigDef_Serializer.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ProcessShocks2()

void Serializer::ProcessShocks2 ( Document::Module module)
private

Definition at line 1997 of file RigDef_Serializer.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ProcessShocks3()

void Serializer::ProcessShocks3 ( Document::Module module)
private

Definition at line 2024 of file RigDef_Serializer.cpp.

+ Here is the call graph for this function:

◆ ProcessSlideNodes()

void Serializer::ProcessSlideNodes ( Document::Module module)
private

Definition at line 1199 of file RigDef_Serializer.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ProcessSoundsources()

void Serializer::ProcessSoundsources ( Document::Module module)
private

Definition at line 378 of file RigDef_Serializer.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ProcessSoundsources2()

void Serializer::ProcessSoundsources2 ( Document::Module module)
private

Definition at line 398 of file RigDef_Serializer.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ProcessSpeedLimiter()

void Serializer::ProcessSpeedLimiter ( Document::Module module)
private

Definition at line 1014 of file RigDef_Serializer.cpp.

+ Here is the caller graph for this function:

◆ ProcessSubmesh()

void Serializer::ProcessSubmesh ( Document::Module module)
private

Definition at line 546 of file RigDef_Serializer.cpp.

+ Here is the caller graph for this function:

◆ ProcessSubmeshGroundmodel()

void Serializer::ProcessSubmeshGroundmodel ( Document::Module module)
private

Definition at line 536 of file RigDef_Serializer.cpp.

+ Here is the caller graph for this function:

◆ ProcessTies()

void Serializer::ProcessTies ( Document::Module module)
private

Definition at line 1093 of file RigDef_Serializer.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ProcessTorqueCurve()

void Serializer::ProcessTorqueCurve ( Document::Module module)
private

Definition at line 1025 of file RigDef_Serializer.cpp.

+ Here is the caller graph for this function:

◆ ProcessTractionControl()

void Serializer::ProcessTractionControl ( Document::Module module)
private

Definition at line 1609 of file RigDef_Serializer.cpp.

+ Here is the caller graph for this function:

◆ ProcessTransferCase()

void Serializer::ProcessTransferCase ( Document::Module module)
private

Definition at line 978 of file RigDef_Serializer.cpp.

+ Here is the caller graph for this function:

◆ ProcessTriggers()

void Serializer::ProcessTriggers ( Document::Module module)
private

Definition at line 1315 of file RigDef_Serializer.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ProcessTurbojets()

void Serializer::ProcessTurbojets ( Document::Module module)
private

Definition at line 202 of file RigDef_Serializer.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ProcessTurboprops()

void Serializer::ProcessTurboprops ( Document::Module module)
private

Definition at line 276 of file RigDef_Serializer.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ProcessVideocamera()

void Serializer::ProcessVideocamera ( Document::Module module)
private

Definition at line 445 of file RigDef_Serializer.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ProcessWheels()

void Serializer::ProcessWheels ( Document::Module module)
private

Definition at line 1781 of file RigDef_Serializer.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ProcessWheels2()

void Serializer::ProcessWheels2 ( Document::Module module)
private

Definition at line 1741 of file RigDef_Serializer.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ProcessWings()

void Serializer::ProcessWings ( Document::Module module)
private

Definition at line 337 of file RigDef_Serializer.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ResetPresets()

void Serializer::ResetPresets ( )
protected

Definition at line 2630 of file RigDef_Serializer.cpp.

+ Here is the caller graph for this function:

◆ RigidityNodeToStr()

std::string RigDef::Serializer::RigidityNodeToStr ( Node::Ref  node)
inlineprotected

Definition at line 155 of file RigDef_Serializer.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Serialize()

void Serializer::Serialize ( )

Definition at line 50 of file RigDef_Serializer.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SerializeModule()

void Serializer::SerializeModule ( std::shared_ptr< RigDef::Document::Module m)
private

Definition at line 86 of file RigDef_Serializer.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ UpdatePresets()

void Serializer::UpdatePresets ( BeamDefaults beam,
NodeDefaults node,
DefaultMinimass minimass 
)
protected

Definition at line 2637 of file RigDef_Serializer.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ WriteFlags()

void Serializer::WriteFlags ( )
private

Definition at line 2517 of file RigDef_Serializer.cpp.

+ Here is the caller graph for this function:

Field Documentation

◆ m_bool_width

int RigDef::Serializer::m_bool_width
protected

Definition at line 169 of file RigDef_Serializer.h.

◆ m_command_key_width

int RigDef::Serializer::m_command_key_width
protected

Definition at line 171 of file RigDef_Serializer.h.

◆ m_current_beam_defaults

BeamDefaults* RigDef::Serializer::m_current_beam_defaults = nullptr
protected

Definition at line 176 of file RigDef_Serializer.h.

◆ m_current_default_minimass

DefaultMinimass* RigDef::Serializer::m_current_default_minimass = nullptr
protected

Definition at line 178 of file RigDef_Serializer.h.

◆ m_current_node_defaults

NodeDefaults* RigDef::Serializer::m_current_node_defaults = nullptr
protected

Definition at line 177 of file RigDef_Serializer.h.

◆ m_dataline_indentstr

std::string RigDef::Serializer::m_dataline_indentstr = ""
protected

a node or a beam line for example

Definition at line 173 of file RigDef_Serializer.h.

◆ m_float_width

int RigDef::Serializer::m_float_width
protected

Definition at line 168 of file RigDef_Serializer.h.

◆ m_inertia_function_width

int RigDef::Serializer::m_inertia_function_width
protected

Definition at line 172 of file RigDef_Serializer.h.

◆ m_node_id_width

int RigDef::Serializer::m_node_id_width
protected

Definition at line 170 of file RigDef_Serializer.h.

◆ m_rig_def

RigDef::DocumentPtr RigDef::Serializer::m_rig_def
protected

Definition at line 166 of file RigDef_Serializer.h.

◆ m_setdefaults_indentstr

std::string RigDef::Serializer::m_setdefaults_indentstr = ""
protected

'set_beam_defaults' for example

Definition at line 174 of file RigDef_Serializer.h.

◆ m_stream

std::stringstream RigDef::Serializer::m_stream
protected

Definition at line 165 of file RigDef_Serializer.h.


The documentation for this class was generated from the following files: