opensurgsim
Public Member Functions | List of all members
SurgSim::DataStructures::DataGroupCopier Class Reference

A class that assists in copying from one DataGroup to another, when assignment is not possible. More...

#include <DataGroupCopier.h>

Public Member Functions

 DataGroupCopier (const DataGroup &source, DataGroup *target)
 Construct a copier. More...
 
void copy (const DataGroup &source, DataGroup *target)
 Copies the NamedData entries with the same names. More...
 

Detailed Description

A class that assists in copying from one DataGroup to another, when assignment is not possible.

See also
SurgSim::DataStructures::DataGroup

Constructor & Destructor Documentation

§ DataGroupCopier()

SurgSim::DataStructures::DataGroupCopier::DataGroupCopier ( const DataGroup source,
DataGroup target 
)

Construct a copier.

Parameters
sourceThe source DataGroup.
targetThe target DataGroup.

Member Function Documentation

§ copy()

void SurgSim::DataStructures::DataGroupCopier::copy ( const DataGroup source,
DataGroup target 
)

Copies the NamedData entries with the same names.

Resets entries in the target that are reset in the source. The source and target IndexDirectories are assumed to be the same as the source and target used in the constructor.

Parameters
sourceThe source DataGroup.
targetThe target DataGroup.

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