c3d-utils
|
#include <uuc3d.hpp>
Public Member Functions | |
Group () | |
Group (int id) | |
Group (bool locked, int id, std::string name, std::string const &description) | |
void | add_parameter (Parameter const ¶m) |
bool | has_parameter (std::string const &name) const |
Parameter const & | get_parameter (std::string const &name) const |
Parameter & | get_parameter (std::string const &name) |
Parameter const * | get_parameter_checked (std::string const &name) const |
Parameter * | get_parameter_checked (std::string const &name) |
std::vector< Parameter > const & | the_parameters () const |
int | total_representation_size () const |
int | group_representation_size () const |
A group of C3d parameters. Every parameter in a C3d file belongs to a group.
UuIcsC3d::Group::Group | ( | ) | [inline] |
Construct a group without data. At least the id and name of the group should be set later.
UuIcsC3d::Group::Group | ( | int | id | ) | [inline] |
Construct a group with only its id. At least the name of the group should be set later.
UuIcsC3d::Group::Group | ( | bool | locked, |
int | id, | ||
std::string | name, | ||
std::string const & | description | ||
) | [inline] |
Construct a group with all of its attributes.
void UuIcsC3d::Group::add_parameter | ( | Parameter const & | param | ) |
Add a aparmeter to this group.
Parameter& UuIcsC3d::Group::get_parameter | ( | std::string const & | name | ) |
Retrieves a parameter of this group by name.
[in] | name | The name of the parameter. |
Parameter const& UuIcsC3d::Group::get_parameter | ( | std::string const & | name | ) | const |
Retrieves a parameter of this group by name.
[in] | name | The name of the parameter. |
Parameter const* UuIcsC3d::Group::get_parameter_checked | ( | std::string const & | name | ) | const |
Retrieves a parameter of this group by name.
[in] | name | The name of the parameter. |
Parameter* UuIcsC3d::Group::get_parameter_checked | ( | std::string const & | name | ) |
Retrieves a parameter of this group by name.
[in] | name | The name of the parameter. |
int UuIcsC3d::Group::group_representation_size | ( | ) | const |
The size (in bytes) that this group will take in a C3d file, not including the parameters belonging to this group.
bool UuIcsC3d::Group::has_parameter | ( | std::string const & | name | ) | const |
Whether this group has a parameter with this name.
std::vector<Parameter> const& UuIcsC3d::Group::the_parameters | ( | ) | const [inline] |
Get all parameters in this group.
int UuIcsC3d::Group::total_representation_size | ( | ) | const |
The size (in bytes) that this group and all its parameters will take in a C3d file.