matio-cpp  v0.2.5
A C++ wrapper of the matio library, with memory ownership handling, to read and write .mat files.
matioCpp::Variable Class Reference

The matioCpp::Variable class is the equivalent of matvar_t in matio. More...

#include <matioCpp/Variable.h>

+ Inheritance diagram for matioCpp::Variable:

Public Member Functions

 Variable ()
 Default constructor. More...
 
 Variable (const matvar_t *inputVar)
 Constructor from an existing matvar_t pointer. More...
 
 Variable (const Variable &other)
 Copy constructor. More...
 
 Variable (Variable &&other)
 Move constructor. More...
 
 Variable (const MatvarHandler &handler)
 Constructor to share the data ownership of another variable. More...
 
 ~Variable ()
 Destructor. More...
 
Variableoperator= (const Variable &other)
 Copy assignement. More...
 
Variableoperator= (Variable &&other)
 Move assignement. More...
 
bool fromMatio (const matvar_t *inputVar)
 Set this variable from an existing matio variable. More...
 
bool fromOther (const Variable &other)
 Set this variable from another variable. More...
 
bool fromOther (Variable &&other)
 Set this variable from another variable. More...
 
const matvar_t * toMatio () const
 Convert this Variable to a matio variable. More...
 
matvar_t * toMatio ()
 Convert this Variable to a matio variable. More...
 
std::string name () const
 Get the name of the Variable. More...
 
matioCpp::VariableType variableType () const
 Get the VariableType. More...
 
matioCpp::ValueType valueType () const
 Get the ValueType. More...
 
bool isComplex () const
 Get if the variable is complex. More...
 
matioCpp::Span< const size_t > dimensions () const
 Get the dimensions of this object. More...
 
bool isValid () const
 Check if the variable is valid. More...
 
template<typename T >
matioCpp::Element< T > asElement ()
 Cast the variable as a Element. More...
 
template<typename T >
const matioCpp::Element< T > asElement () const
 Cast the variable as a const Element. More...
 
template<typename T >
matioCpp::Vector< T > asVector ()
 Cast the variable as a Vector. More...
 
template<typename T >
const matioCpp::Vector< T > asVector () const
 Cast the variable as a const Vector. More...
 
matioCpp::String asString ()
 Cast the variable as a String. More...
 
const matioCpp::String asString () const
 Cast the variable as a const String. More...
 
matioCpp::String16 asString16 ()
 Cast the variable as a String16. More...
 
const matioCpp::String16 asString16 () const
 Cast the variable as a const String16. More...
 
matioCpp::String32 asString32 ()
 Cast the variable as a String32. More...
 
const matioCpp::String32 asString32 () const
 Cast the variable as a const String32. More...
 
template<typename T >
matioCpp::MultiDimensionalArray< T > asMultiDimensionalArray ()
 Cast the variable as a MultiDimensionalArray. More...
 
template<typename T >
const matioCpp::MultiDimensionalArray< T > asMultiDimensionalArray () const
 Cast the variable as a const MultiDimensionalArray. More...
 
matioCpp::CellArray asCellArray ()
 Cast the variable as a CellArray. More...
 
const matioCpp::CellArray asCellArray () const
 Cast the variable as a const CellArray. More...
 
matioCpp::Struct asStruct ()
 Cast the variable as a Struct. More...
 
const matioCpp::Struct asStruct () const
 Cast the variable as a const Struct. More...
 
matioCpp::StructArray asStructArray ()
 Cast the variable as a StructArray. More...
 
const matioCpp::StructArray asStructArray () const
 Cast the variable as a const StructArray. More...
 

Protected Member Functions

bool initializeVariable (const std::string &name, const VariableType &variableType, const ValueType &valueType, matioCpp::Span< const size_t > dimensions, void *data)
 Initialize the variable. More...
 
bool initializeComplexVariable (const std::string &name, const VariableType &variableType, const ValueType &valueType, matioCpp::Span< const size_t > dimensions, void *realData, void *imaginaryData)
 Initialize a complex variable. More...
 
template<typename T >
bool initializeComplexVector (const std::string &name, const Span< T > realInputVector, const Span< T > imaginaryInputVector)
 Initialize a complex vector. More...
 
bool changeName (const std::string &newName)
 Change the name of the variable. More...
 
size_t getArrayNumberOfElements () const
 Get the total number of elements in the array. More...
 
bool setCellElement (size_t linearIndex, const Variable &newValue)
 Set a cell element at a specified linear position. More...
 
Variable getCellElement (size_t linearIndex)
 Get a cell element at a specified linear position. More...
 
const Variable getCellElement (size_t linearIndex) const
 Get a cell element at a specified linear position. More...
 
size_t getStructNumberOfFields () const
 Get the total number of fields in the variable, considered as a struct. More...
 
char *const * getStructFields () const
 Get the list of fields in the variable, considered as a struct. More...
 
size_t getStructFieldIndex (const std::string &field) const
 Get the index of the specified field in the variable, considered as a struct. More...
 
bool setStructField (size_t index, const Variable &newValue, size_t structPositionInArray=0)
 Set the field of the struct at the specified position. More...
 
bool addStructField (const std::string &newField)
 Add a new field to the variable, considered as a struct. More...
 
bool setStructField (const std::string &field, const Variable &newValue, size_t structPositionInArray=0)
 Set the field of the struct given the newValue name. More...
 
Variable getStructField (size_t index, size_t structPositionInArray=0)
 Get the specified field in the variable, considered as a struct. More...
 
const Variable getStructField (size_t index, size_t structPositionInArray=0) const
 Get the specified field in the variable, considered as a struct. More...
 
Struct getStructArrayElement (size_t linearIndex)
 Get an element of the variable, considered as a StructArray. More...
 
const Struct getStructArrayElement (size_t linearIndex) const
 Get an element of the variable, considered as a StructArray. More...
 
virtual bool checkCompatibility (const matvar_t *inputPtr, matioCpp::VariableType variableType, matioCpp::ValueType valueType) const
 Check if an input matio pointer is compatible with the specified variable. More...
 

Detailed Description

The matioCpp::Variable class is the equivalent of matvar_t in matio.

It is supposed to be a basic access to object that are or need to be saved in a mat file.

Definition at line 22 of file Variable.h.

Constructor & Destructor Documentation

◆ Variable() [1/5]

matioCpp::Variable::Variable ( )

Default constructor.

Definition at line 375 of file Variable.cpp.

◆ Variable() [2/5]

matioCpp::Variable::Variable ( const matvar_t *  inputVar)

Constructor from an existing matvar_t pointer.

Parameters
inputVarThe input pointer. It has to be not null.

Definition at line 381 of file Variable.cpp.

References matioCpp::MatvarHandler::duplicateMatvar().

◆ Variable() [3/5]

matioCpp::Variable::Variable ( const Variable other)

Copy constructor.

Definition at line 387 of file Variable.cpp.

References matioCpp::MatvarHandler::duplicateMatvar(), isValid(), and toMatio().

◆ Variable() [4/5]

matioCpp::Variable::Variable ( matioCpp::Variable &&  other)

Move constructor.

Definition at line 396 of file Variable.cpp.

◆ Variable() [5/5]

matioCpp::Variable::Variable ( const MatvarHandler handler)

Constructor to share the data ownership of another variable.

Parameters
handlerThe MatvarHandler handler to the matvar_t which has to be shared.

Definition at line 402 of file Variable.cpp.

◆ ~Variable()

matioCpp::Variable::~Variable ( )

Destructor.

Definition at line 408 of file Variable.cpp.

Member Function Documentation

◆ addStructField()

bool matioCpp::Variable::addStructField ( const std::string newField)
protected

Add a new field to the variable, considered as a struct.

Parameters
newFieldThe new field
Returns
True on success, false otherwise, for example if the struct is part of an array

Definition at line 282 of file Variable.cpp.

References std::string::c_str(), and std::endl().

◆ asCellArray() [1/2]

matioCpp::CellArray matioCpp::Variable::asCellArray ( )

Cast the variable as a CellArray.

Definition at line 547 of file Variable.cpp.

◆ asCellArray() [2/2]

const matioCpp::CellArray matioCpp::Variable::asCellArray ( ) const

Cast the variable as a const CellArray.

Definition at line 552 of file Variable.cpp.

◆ asElement() [1/2]

template<typename T >
matioCpp::Element< T > matioCpp::Variable::asElement

Cast the variable as a Element.

The implementation is in Element.tpp

Definition at line 176 of file Element.tpp.

◆ asElement() [2/2]

template<typename T >
const matioCpp::Element< T > matioCpp::Variable::asElement

Cast the variable as a const Element.

The implementation is in Element.tpp

Definition at line 182 of file Element.tpp.

◆ asMultiDimensionalArray() [1/2]

template<typename T >
matioCpp::MultiDimensionalArray< T > matioCpp::Variable::asMultiDimensionalArray

Cast the variable as a MultiDimensionalArray.

The implementation is in MultiDimensionalArray.tpp

Definition at line 345 of file MultiDimensionalArray.tpp.

◆ asMultiDimensionalArray() [2/2]

template<typename T >
const matioCpp::MultiDimensionalArray< T > matioCpp::Variable::asMultiDimensionalArray

Cast the variable as a const MultiDimensionalArray.

The implementation is in MultiDimensionalArray.tpp

Definition at line 351 of file MultiDimensionalArray.tpp.

◆ asString() [1/2]

matioCpp::String matioCpp::Variable::asString ( )

Cast the variable as a String.

Definition at line 577 of file Variable.cpp.

◆ asString() [2/2]

const matioCpp::String matioCpp::Variable::asString ( ) const

Cast the variable as a const String.

Definition at line 582 of file Variable.cpp.

◆ asString16() [1/2]

matioCpp::String16 matioCpp::Variable::asString16 ( )

Cast the variable as a String16.

Definition at line 587 of file Variable.cpp.

◆ asString16() [2/2]

const matioCpp::String16 matioCpp::Variable::asString16 ( ) const

Cast the variable as a const String16.

Definition at line 592 of file Variable.cpp.

◆ asString32() [1/2]

matioCpp::String32 matioCpp::Variable::asString32 ( )

Cast the variable as a String32.

Definition at line 597 of file Variable.cpp.

◆ asString32() [2/2]

const matioCpp::String32 matioCpp::Variable::asString32 ( ) const

Cast the variable as a const String32.

Definition at line 602 of file Variable.cpp.

◆ asStruct() [1/2]

matioCpp::Struct matioCpp::Variable::asStruct ( )

Cast the variable as a Struct.

Definition at line 557 of file Variable.cpp.

◆ asStruct() [2/2]

const matioCpp::Struct matioCpp::Variable::asStruct ( ) const

Cast the variable as a const Struct.

Definition at line 562 of file Variable.cpp.

◆ asStructArray() [1/2]

matioCpp::StructArray matioCpp::Variable::asStructArray ( )

Cast the variable as a StructArray.

Definition at line 567 of file Variable.cpp.

◆ asStructArray() [2/2]

const matioCpp::StructArray matioCpp::Variable::asStructArray ( ) const

Cast the variable as a const StructArray.

Definition at line 572 of file Variable.cpp.

◆ asVector() [1/2]

template<typename T >
matioCpp::Vector< T > matioCpp::Variable::asVector

Cast the variable as a Vector.

The implementation is in Vector.tpp

Definition at line 404 of file Vector.tpp.

◆ asVector() [2/2]

template<typename T >
const matioCpp::Vector< T > matioCpp::Variable::asVector

Cast the variable as a const Vector.

The implementation is in Vector.tpp

Definition at line 410 of file Vector.tpp.

◆ changeName()

bool matioCpp::Variable::changeName ( const std::string newName)
protected

Change the name of the variable.

Parameters
newNameThe new name to set
Returns
True if successful, false otherwise.

Definition at line 150 of file Variable.cpp.

References std::string::c_str().

◆ checkCompatibility()

bool matioCpp::Variable::checkCompatibility ( const matvar_t *  inputPtr,
matioCpp::VariableType  variableType,
matioCpp::ValueType  valueType 
) const
protectedvirtual

Check if an input matio pointer is compatible with the specified variable.

Parameters
inputPtrThe input matvar_t pointer.
variableTypeThe type of variable.
valueTypeThe value type.
Returns
True if compatible. False otherwise, throwing errors.

Definition at line 370 of file Variable.cpp.

◆ dimensions()

matioCpp::Span< const size_t > matioCpp::Variable::dimensions ( ) const

Get the dimensions of this object.

Returns
The dimensions of the object

Definition at line 528 of file Variable.cpp.

References matioCpp::make_span().

Referenced by initializeVariable(), and matioCpp::File::write().

◆ fromMatio()

bool matioCpp::Variable::fromMatio ( const matvar_t *  inputVar)

Set this variable from an existing matio variable.

Parameters
inputVarThe not null pointer to a matio variable. The variable is cloned.
Returns
True if the cloning was successful.

Definition at line 433 of file Variable.cpp.

References std::endl(), matioCpp::get_types_from_matvart(), matioCpp::Unsupported, and matioCpp::UNSUPPORTED.

◆ fromOther() [1/2]

bool matioCpp::Variable::fromOther ( const Variable other)

Set this variable from another variable.

Note
Child classes need to override this method to make sure that only compatible classes can be copied.
Parameters
otherThe Variable from which to copy the content (data, name, type, dimensions,..).
Returns
True if the cloning was successful.

Definition at line 453 of file Variable.cpp.

References toMatio().

◆ fromOther() [2/2]

bool matioCpp::Variable::fromOther ( matioCpp::Variable &&  other)

Set this variable from another variable.

Note
No copy is performed, but the original object is no more usable.
Child classes need to override this method to make sure that only compatible classes can be imported.
Parameters
otherThe source Variable. Content is moved.
Returns
True if the moving was successful.

Definition at line 458 of file Variable.cpp.

References std::endl().

◆ getArrayNumberOfElements()

size_t matioCpp::Variable::getArrayNumberOfElements ( ) const
protected

Get the total number of elements in the array.

Returns
The total number of elements

Definition at line 169 of file Variable.cpp.

◆ getCellElement() [1/2]

matioCpp::Variable matioCpp::Variable::getCellElement ( size_t  linearIndex)
protected

Get a cell element at a specified linear position.

Parameters
linearIndexThe linear index of the specified element
Returns
A Variable with a weak ownership to the underlying mat variable. This means that the data can be changed, but the variable cannot be resized and the name cannot change.

Definition at line 211 of file Variable.cpp.

◆ getCellElement() [2/2]

const matioCpp::Variable matioCpp::Variable::getCellElement ( size_t  linearIndex) const
protected

Get a cell element at a specified linear position.

Parameters
linearIndexThe linear index of the specified element
Returns
A const Variable with a weak ownership to the underlying mat variable.

Definition at line 217 of file Variable.cpp.

◆ getStructArrayElement() [1/2]

matioCpp::Struct matioCpp::Variable::getStructArrayElement ( size_t  linearIndex)
protected

Get an element of the variable, considered as a StructArray.

Note
This allocates memory, one pointer per sruct field, but the pointers point to data in the array
Parameters
linearIndexThe linear index of the struct to retrieve
Returns
A Struct with a weak ownership to the underlying mat variable. This means that the data can be changed, but the variable cannot be resized and the name cannot change.

Definition at line 338 of file Variable.cpp.

References std::string::c_str(), std::vector< T >::data(), matioCpp::Delete, and std::to_string().

◆ getStructArrayElement() [2/2]

const matioCpp::Struct matioCpp::Variable::getStructArrayElement ( size_t  linearIndex) const
protected

Get an element of the variable, considered as a StructArray.

Note
This allocates memory, one pointer per sruct field, but the pointers point to data in the array
Parameters
linearIndexThe linear index of the struct to retrieve
Returns
A const Struct with a weak ownership to the underlying mat variable.

Definition at line 354 of file Variable.cpp.

References std::string::c_str(), std::vector< T >::data(), matioCpp::Delete, and std::to_string().

◆ getStructField() [1/2]

matioCpp::Variable matioCpp::Variable::getStructField ( size_t  index,
size_t  structPositionInArray = 0 
)
protected

Get the specified field in the variable, considered as a struct.

Parameters
indexThe index of the field
structPositionInArrayThe linear position of the struct to set in the struct array
Returns
A Variable with a weak ownership to the underlying mat variable. This means that the data can be changed, but the variable cannot be resized and the name cannot change.

Definition at line 326 of file Variable.cpp.

◆ getStructField() [2/2]

const matioCpp::Variable matioCpp::Variable::getStructField ( size_t  index,
size_t  structPositionInArray = 0 
) const
protected

Get the specified field in the variable, considered as a struct.

Parameters
indexThe index of the field
structPositionInArrayThe linear position of the struct to set in the struct array
Returns
A const Variable with a weak ownership to the underlying mat variable.

Definition at line 332 of file Variable.cpp.

◆ getStructFieldIndex()

size_t matioCpp::Variable::getStructFieldIndex ( const std::string field) const
protected

Get the index of the specified field in the variable, considered as a struct.

Parameters
fieldThe field to search
Returns
The index of the field, the output of getStructNumberOfFields() if not found.

Definition at line 235 of file Variable.cpp.

References std::string::c_str().

◆ getStructFields()

char *const * matioCpp::Variable::getStructFields ( ) const
protected

Get the list of fields in the variable, considered as a struct.

Returns
The list of fields.

Definition at line 229 of file Variable.cpp.

Referenced by matioCpp::StructArray::setElement().

◆ getStructNumberOfFields()

size_t matioCpp::Variable::getStructNumberOfFields ( ) const
protected

Get the total number of fields in the variable, considered as a struct.

Returns
The total number of fields

Definition at line 223 of file Variable.cpp.

◆ initializeComplexVariable()

bool matioCpp::Variable::initializeComplexVariable ( const std::string name,
const VariableType variableType,
const ValueType valueType,
matioCpp::Span< const size_t >  dimensions,
void *  realData,
void *  imaginaryData 
)
protected

Initialize a complex variable.

Parameters
nameThe name of the variable.
variableTypeThe type of variable
valueTypeThe type of each element in the variable
dimensionsVector containing the variable dimensions. The size of this vector should be at least 2.
realDataA void pointer to the (flattened) real data. Check the documentation of initializeVariable for understanding how to obtain/interpret this vector.
imaginaryDataA void pointer to the (flattened) imaginary data. Check the documentation of initializeVariable for understanding how to obtain/interpret this vector.
Returns
true in case the variable was correctly initialized.

Definition at line 75 of file Variable.cpp.

References std::vector< T >::assign(), matioCpp::Span< ElementType, Extent >::begin(), std::string::c_str(), std::vector< T >::data(), matioCpp::MatvarHandler::DeleteMatvar(), std::string::empty(), matioCpp::Span< ElementType, Extent >::end(), std::endl(), matioCpp::get_matio_types(), matioCpp::LOGICAL, matioCpp::Span< ElementType, Extent >::size(), and std::vector< T >::size().

Referenced by initializeComplexVector().

◆ initializeComplexVector()

template<typename T >
bool matioCpp::Variable::initializeComplexVector ( const std::string name,
const Span< T >  realInputVector,
const Span< T >  imaginaryInputVector 
)
inlineprotected

Initialize a complex vector.

Parameters
nameThe name of the variable.
realInputVectorThe real input vector.
imaginaryInputVectorThe imaginary input vector.
Returns
true in case the variable was correctly initialized.

Definition at line 65 of file Variable.h.

References matioCpp::Span< ElementType, Extent >::data(), std::string::empty(), std::endl(), initializeComplexVariable(), name(), matioCpp::Span< ElementType, Extent >::size(), and matioCpp::Vector.

◆ initializeVariable()

bool matioCpp::Variable::initializeVariable ( const std::string name,
const VariableType variableType,
const ValueType valueType,
matioCpp::Span< const size_t >  dimensions,
void *  data 
)
protected

Initialize the variable.

Note
Matlab stores data in column-major format (https://it.mathworks.com/help/coder/ug/what-are-column-major-and-row-major-representation-1.html). Hence, given a multi-dimensional array of size n x m x p, the element (i, j, k) (with zero indexing) is at position i + j*n + k*n*m
Parameters
nameThe name of the variable.
variableTypeThe type of variable
valueTypeThe type of each element in the variable
dimensionsVector containing the variable dimensions. The size of this vector should be at least 2.
dataA void pointer to the (flattened) data.
Returns
true in case the variable was correctly initialized.

Definition at line 16 of file Variable.cpp.

References std::vector< T >::assign(), std::string::c_str(), std::vector< T >::data(), matioCpp::MatvarHandler::DeleteMatvar(), dimensions(), std::string::empty(), std::endl(), matioCpp::MatvarHandler::get(), matioCpp::get_matio_types(), matioCpp::MatvarHandler::importMatvar(), matioCpp::LOGICAL, name(), std::vector< T >::size(), valueType(), and variableType().

Referenced by matioCpp::CellArray::CellArray(), matioCpp::Element< T >::Element(), matioCpp::MultiDimensionalArray< T >::MultiDimensionalArray(), matioCpp::Struct::Struct(), and matioCpp::StructArray::StructArray().

◆ isComplex()

bool matioCpp::Variable::isComplex ( ) const

Get if the variable is complex.

Returns
True if complex.

Definition at line 516 of file Variable.cpp.

◆ isValid()

bool matioCpp::Variable::isValid ( ) const

Check if the variable is valid.

A Variable may not be valid if it does not point to any data, or the the dimensions().size() < 2.

Returns
true if valid.

Definition at line 542 of file Variable.cpp.

Referenced by matioCpp::File::Impl::isVariableValid(), matioCpp::File::read(), setCellElement(), matioCpp::CellArray::setElement(), matioCpp::StructArrayElement< isConst >::setField(), setStructField(), and Variable().

◆ name()

std::string matioCpp::Variable::name ( ) const

◆ operator=() [1/2]

matioCpp::Variable & matioCpp::Variable::operator= ( const Variable other)

Copy assignement.

Parameters
otherThe variable to be copied
Returns
A reference to the variable.
Note
It calls fromOther(), with an assertion on its output.

Definition at line 417 of file Variable.cpp.

References matioCpp::unused().

◆ operator=() [2/2]

matioCpp::Variable & matioCpp::Variable::operator= ( matioCpp::Variable &&  other)

Move assignement.

Parameters
otherThe variable to be moved
Returns
A reference to the variable.
Note
It calls fromOther(), with an assertion on its output.

Definition at line 425 of file Variable.cpp.

References matioCpp::unused().

◆ setCellElement()

bool matioCpp::Variable::setCellElement ( size_t  linearIndex,
const Variable newValue 
)
protected

Set a cell element at a specified linear position.

Parameters
linearIndexThe linear index of the specified element
newValueThe Variable that will be copied in the specified location
Returns
True if successful, false otherwise

Definition at line 180 of file Variable.cpp.

References matioCpp::MatvarHandler::DeleteMatvar(), std::endl(), matioCpp::MatvarHandler::GetMatvarDuplicate(), isValid(), and toMatio().

◆ setStructField() [1/2]

bool matioCpp::Variable::setStructField ( const std::string field,
const Variable newValue,
size_t  structPositionInArray = 0 
)
protected

Set the field of the struct given the newValue name.

Parameters
fieldThe field to set
newValueThe Variable that will be copied in the specified field
structPositionInArrayThe linear position of the struct to set in the struct array
Returns
True if successful, false otherwise (for example if the newValue is not valid)
Note
If the field is not found, a new field is created and appended to the struct, but only if the struct is not part of an array.

Definition at line 307 of file Variable.cpp.

References std::endl().

◆ setStructField() [2/2]

bool matioCpp::Variable::setStructField ( size_t  index,
const Variable newValue,
size_t  structPositionInArray = 0 
)
protected

Set the field of the struct at the specified position.

Parameters
indexThe linear index of the specified field
newValueThe Variable that will be copied in the specified location
structPositionInArrayThe linear position of the struct to set in the struct array
Returns
True if successful, false otherwise (for example if the newValue is not valid)

Definition at line 254 of file Variable.cpp.

References matioCpp::MatvarHandler::DeleteMatvar(), std::endl(), matioCpp::MatvarHandler::GetMatvarDuplicate(), isValid(), and toMatio().

◆ toMatio() [1/2]

matvar_t * matioCpp::Variable::toMatio ( )

Convert this Variable to a matio variable.

Warning
Any modification to the matio variable is reflected to this Variable.
Returns
A matvar_t pointer.

Definition at line 487 of file Variable.cpp.

◆ toMatio() [2/2]

const matvar_t * matioCpp::Variable::toMatio ( ) const

Convert this Variable to a matio variable.

Warning
Any modification to the matio variable is reflected to this Variable.
Returns
A matvar_t pointer.

Definition at line 480 of file Variable.cpp.

Referenced by fromOther(), setCellElement(), setStructField(), Variable(), and matioCpp::File::write().

◆ valueType()

matioCpp::ValueType matioCpp::Variable::valueType ( ) const

Get the ValueType.

Returns
The ValueType

Definition at line 511 of file Variable.cpp.

Referenced by initializeVariable(), and matioCpp::File::write().

◆ variableType()

matioCpp::VariableType matioCpp::Variable::variableType ( ) const

Get the VariableType.

Returns
The VariableType

Definition at line 506 of file Variable.cpp.

Referenced by initializeVariable(), and matioCpp::File::write().


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