Geogram  Version 1.9.1-rc
A programming library of geometric algorithms
GEO::GeoFile::AttributeSetInfo Struct Reference

Internal representation of an attribute set. More...

#include <geogram/basic/geofile.h>

Public Member Functions

 AttributeSetInfo ()
 AttributeSetInfo constructor.
 
 AttributeSetInfo (const std::string &name_in, index_t nb_items_in)
 AttributeSetInfo constructor. More...
 
const AttributeInfofind_attribute (const std::string &name_in) const
 Finds an AttributeInfo by name. More...
 
AttributeInfofind_attribute (const std::string &name_in)
 Finds an AttributeInfo by name. More...
 

Public Attributes

std::string name
 name of the attribute set.
 
index_t nb_items
 number of items in each attribute of the set.
 
vector< AttributeInfoattributes
 the attributes of the set.
 
bool skip
 if set, all attributes in the set are skipped when reading the file.
 

Detailed Description

Internal representation of an attribute set.

Definition at line 387 of file geofile.h.

Constructor & Destructor Documentation

◆ AttributeSetInfo()

GEO::GeoFile::AttributeSetInfo::AttributeSetInfo ( const std::string &  name_in,
index_t  nb_items_in 
)
inline

AttributeSetInfo constructor.

Parameters
[in]name_inname of the attribute set
[in]nb_items_innumber of items in each attribute of the set

Definition at line 401 of file geofile.h.

Member Function Documentation

◆ find_attribute() [1/2]

AttributeInfo* GEO::GeoFile::AttributeSetInfo::find_attribute ( const std::string &  name_in)
inline

Finds an AttributeInfo by name.

Parameters
[in]name_ina const reference to the name of the attribute
Returns
a pointer to the AttributeInfo or nullptr if there is no such attribute.

Definition at line 435 of file geofile.h.

◆ find_attribute() [2/2]

const AttributeInfo* GEO::GeoFile::AttributeSetInfo::find_attribute ( const std::string &  name_in) const
inline

Finds an AttributeInfo by name.

Parameters
[in]name_ina const reference to the name of the attribute
Returns
a const pointer to the AttributeInfo or nullptr if there is no such attribute.

Definition at line 417 of file geofile.h.


The documentation for this struct was generated from the following file: