#include <ProtoDeclaration.h>
Public Member Functions | |
| ProtoDeclaration (const string &_name, const string &_body="") | |
| Constructor. | |
| const string & | getProtoBody () |
| Get the string with the internal scenegraph of the prototype. | |
| void | setProtoBody (const string &_body) |
| Set the string with the internal scenegraph of the prototype. | |
| const string & | getName () |
| Get the name of the prototype. | |
| void | setName (const string &_name) |
| Get the name of the prototype. | |
| void | addFieldDeclaration (const string &name, const X3DTypes::X3DType &type, const Field::AccessType &access_type, const string &value="") |
| Add a field to the prototype. | |
| FieldDeclaration * | getFieldDeclaration (const string &name) |
| Get the field declaration of the given name. | |
| X3DPrototypeInstance * | newProtoInstance () |
| Create a new X3DPrototypeInstance instance using the ProtoDeclaration. | |
Protected Attributes | |
| string | name |
| string | body |
| std::list< FieldDeclaration > | field_declarations |
Classes | |
| class | FieldDeclaration |
| Class that contains information about a field that is part of the prototype declaration. More... | |
It contains everything that is needed to now about the prototype and allows you to create new instances of the prototype with the newProtoInstance function.
|
||||||||||||
|
Constructor.
|
|
|
Get the field declaration of the given name. Returns true if such a field declaration exists, false otherwise |
1.4.5