Graphite Version 3
An experimental 3D geometry processing program
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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.
 
const AttributeInfofind_attribute (const std::string &name_in) const
 Finds an AttributeInfo by name.
 
AttributeInfofind_attribute (const std::string &name_in)
 Finds an AttributeInfo by name.
 

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() [1/2]

GEO::GeoFile::AttributeSetInfo::AttributeSetInfo ( )
inline

AttributeSetInfo constructor.

Definition at line 392 of file geofile.h.

◆ AttributeSetInfo() [2/2]

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.

Member Data Documentation

◆ attributes

vector<AttributeInfo> GEO::GeoFile::AttributeSetInfo::attributes

the attributes of the set.

Definition at line 457 of file geofile.h.

◆ name

std::string GEO::GeoFile::AttributeSetInfo::name

name of the attribute set.

Definition at line 447 of file geofile.h.

◆ nb_items

index_t GEO::GeoFile::AttributeSetInfo::nb_items

number of items in each attribute of the set.

Definition at line 452 of file geofile.h.

◆ skip

bool GEO::GeoFile::AttributeSetInfo::skip

if set, all attributes in the set are skipped when reading the file.

Definition at line 463 of file geofile.h.


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