MeasurementGroup
Class that manages a serializable object containing a set of features.
It gathers a list of measurements in a same object that can be set into an AnalysisMsr object. The main benefit of using a MeasurementGroup object is its serialization mechanism to save it and recall it later.
See related example
It gathers a list of measurements in a same object that can be set into an AnalysisMsr object. The main benefit of using a MeasurementGroup object is its serialization mechanism to save it and recall it later.
See related example
Syntax
Method | Description |
---|---|
MeasurementGroup() | Default constructor. |
MeasurementGroup( std::vector< MsrInfo*> msrInfos ) | Constructor from a predefined list of measurements. |
void add( MsrInfo* msrInfo ) | Adds a measurement into the MeasurementGroup object. |
void add( const std::vector< MsrInfo*>& msrInfos ) | Adds a list of measurements into the MeasurementGroup object. |
void remove( MsrInfo* msrInfo ) | Removes a measurement from the MeasurementGroup object. |
void remove( const std::vector< MsrInfo*>& msrInfos ) | Removes a list of measurements from the MeasurementGroup object. |
std::vector< MsrInfo*> getMeasurements() | Returns the list of measurements embedded in the MeasurementGroup object. |
void read( const std::string& pathFile ) | Reads the MeasurementGroup object from a file path. |
void write( const std::string& pathFile, bool overWrite = true ) | Writes the MeasurementGroup object into a file defined by a path. |
Method | Description |
---|---|
add(msrInfo) | Adds a measurement into the MeasurementGroup object. |
remove(msrInfo) | Removes a measurement from the MeasurementGroup object. |
read(filename) | Reads the MeasurementGroup object from a file path. |
write(filename, overwrite = True) | Writes the MeasurementGroup object into a file defined by a path. |
Attributes | Description |
---|---|
list | Sets or returns the list of measurements embedded in the MeasurementGroup object. |
Method | Description |
---|---|
MeasurementGroup() | Default constructor. |
MeasurementGroup(MsrInfo[] msrInfos) | Constructor from a predefined list of measurements. |
void Add(MsrInfo msrInfo) | Adds a measurement into the MeasurementGroup object. |
void Add(MsrInfo[] msrInfos) | Adds a list of measurements into the MeasurementGroup object. |
void Remove(MsrInfo msrInfo) | Removes a measurement from the MeasurementGroup object. |
void Remove(MsrInfo[] msrInfos) | Removes a list of measurements from the MeasurementGroup object. |
MsrInfo[] GetMeasurements() | Returns the list of measurements embedded in the MeasurementGroup object. |
void Read(String pathFile) | Reads the MeasurementGroup object from a file path. |
void Write(String pathFile, Boolean overWrite = true) | Writes the MeasurementGroup object into a file defined by a path. |
© 2025 Thermo Fisher Scientific Inc. All rights reserved.