#include <SofaLibrary.h>
An Generic Library. More...
An Generic Library.
It reads the content of the Object Factory and builds a library of components sorted inside categories. This Interface is used for the Modeler mainly.
Protected Attributes | |
| VecCategory | categories |
| std::vector< std::string > | exampleFiles |
| unsigned int | numComponents |
Public Member Functions | |
| virtual | ~SofaLibrary () |
| virtual void | build (const std::vector< std::string > &examples=std::vector< std::string >()) |
| virtual void | clear () |
| std::string | getComponentDescription (const std::string &componentName) const |
| const VecCategory & | getCategories () const |
| const CategoryLibrary * | getCategory (const std::string &categoryName) const |
| const ComponentLibrary * | getComponent (const std::string &componentName) const |
| unsigned int | getNumComponents () const |
Protected Member Functions | |
| virtual CategoryLibrary * | createCategory (const std::string &category, unsigned int) |
| virtual void | addCategory (CategoryLibrary *) |
| void | computeNumComponents () |
|
protected |
|
protected |
|
inlinevirtual |
|
protectedvirtual |
|
virtual |
|
virtual |
|
protected |
|
inlineprotectedvirtual |
|
inline |
| const CategoryLibrary * sofa::core::SofaLibrary::getCategory | ( | const std::string & | categoryName | ) | const |
| const ComponentLibrary * sofa::core::SofaLibrary::getComponent | ( | const std::string & | componentName | ) | const |
| std::string sofa::core::SofaLibrary::getComponentDescription | ( | const std::string & | componentName | ) | const |