50 void write(std::fstream &f, std::streampos &dataStartPosition)
const;
103 std::vector<ezc3d::ParametersNS::GroupNS::Group>
_groups;
120 size_t groupIdx(
const std::string& groupName)
const;
175 const std::vector<ezc3d::ParametersNS::GroupNS::Group>&
groups()
const;
size_t parametersStart() const
Get the byte in the file where the data starts.
size_t nbGroups() const
Get the number of groups.
Group holder of C3D parameters.
Declaration of Group class.
size_t nbParamBlock() const
Get the number of 256-bytes the parameters need in the file.
PROCESSOR_TYPE
The type of processor used to store the data.
Group of parameter of a C3D file.
PROCESSOR_TYPE processorType() const
Get the processor type the file was writen on.
const ezc3d::ParametersNS::GroupNS::Group & group(size_t idx) const
Get a particular group of index idx from the group holder.
std::vector< ezc3d::ParametersNS::GroupNS::Group > _groups
Holder for the group of parameters.
ezc3d::ParametersNS::GroupNS::Group & group_nonConst(size_t idx)
Get a particular group of index idx from the group holder in order to be modified by the caller...
Main class for C3D holder.
const std::vector< ezc3d::ParametersNS::GroupNS::Group > & groups() const
Get all groups the group holder with read-only access.
void write(std::fstream &f, std::streampos &dataStartPosition) const
Write the groups to an opened file by calling the write method of all the groups. ...
void setMandatoryParameters()
Add all required parameter for a c3d to be valid.
Parameters()
Create a default group holder with minimal groups to have a valid c3d.
size_t checksum() const
Get the checksum of the parameters.
void print() const
Print the groups by calling the print method of all the groups.
size_t groupIdx(const std::string &groupName) const
Get the index of a group in the group holder.
PROCESSOR_TYPE _processorType