AGX Dynamics  2.37.3.2
agxStream::Archive::ScopedSection Class Reference

Ties a beginSecion/endSection pair to a scope. More...

#include <Archive.h>

Public Member Functions

 ScopedSection (Archive &archive, const char *sectionName, bool shouldWeCreateSection=true)
 The data pointed to by 'sectionName' is not copied. More...
 
 ~ScopedSection ()
 

Detailed Description

Ties a beginSecion/endSection pair to a scope.

Definition at line 88 of file Archive.h.

Constructor & Destructor Documentation

◆ ScopedSection()

agxStream::Archive::ScopedSection::ScopedSection ( Archive &  archive,
const char *  sectionName,
bool  shouldWeCreateSection = true 
)

The data pointed to by 'sectionName' is not copied.

It is the responsibility of the caller to ensure that the pointer is valid for the duration of the ScopedSection's lifetime.

Parameters
archive- The archive in which a beginSection/endSection will be created
sectionName- The name of the created section
shouldWeCreateSection- If false no section will be created. Default true.

◆ ~ScopedSection()

agxStream::Archive::ScopedSection::~ScopedSection ( )

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