SOFA API  1a4bb3e7
Open source framework for multi-physics simuation
sofa::helper::TagFactory Class Reference

#include <TagFactory.h>

Detailed Description

The TagFactory class manages the tags list shared by all the components and visitors. It allows to define subsets to process by specific visitors The user only gives strings to define the subsets, and an id is given back and is used to do the tests of belonging The id is the index of the string in the "m_tagsList" vector

Public Member Functions

 TagFactory ()=delete
 

Static Public Member Functions

static std::size_t getID (const std::string &name)
 
static std::string getName (std::size_t id)
 

Constructor details

◆ TagFactory()

sofa::helper::TagFactory::TagFactory ( )
delete

Function details

◆ getID()

std::size_t sofa::helper::TagFactory::getID ( const std::string &  name)
static
Returns
: the Id corresponding to the name of the tag given in parameter If the name isn't found in the list, it is added to it and return the new id.

◆ getName()

std::string sofa::helper::TagFactory::getName ( std::size_t  id)
static
Returns
the name corresponding to the id in parameter