rosidl_parser.definition.structure
- struct
Member; Memberrepresentation of Structure- AbstractType
type; - Type of the member
- string
name; - Name of the member
- Annotation[]
annotations; - Annotations
- const auto
getAnnotationValues(in string name); - Get annotations whose name is
nameParameters:string name Target annotation name Returns: A list of annotations - const auto
getAnnotationValue(in string name); - Get an annotation whose name is
nameUnlikegetAnnotationValuescollects multiple annotations, this function get only one annotation for the name. If there is no annotation nor more than two annotation, an assertion will be raised.Parameters:string name Target annotation name Returns: An annotation - const bool
hasAnnotation(in string name); - Check if one
nameannotation is available.Parameters:string name Target annotation name Returns: Check result - const bool
hasAnnotations(in string name); - Check if (more than one)
nameannotations are available.Parameters:string name Target annotation name Returns: Check result - const string
toString(); - Will return
"<type> <name> [annotations]".
- struct
Structure; StructurerepresentationThe structure must have namespace and be identified as unique name.- NamespacedType
namespacedType; - Type of the structure
- Member[]
members; - Its
members - Annotation[]
annotations; - Annotations
- const auto
getAnnotationValues(in string name); - Get annotations whose name is
nameParameters:string name Target annotation name Returns: A list of annotations - const auto
getAnnotationValue(in string name); - Get an annotation whose name is
nameUnlikegetAnnotationValuescollects multiple annotations, this function get only one annotation for the name. If there is no annotation nor more than two annotation, an assertion will be raised.Parameters:string name Target annotation name Returns: An annotation - const bool
hasAnnotation(in string name); - Check if one
nameannotation is available.Parameters:string name Target annotation name Returns: Check result - const bool
hasAnnotations(in string name); - Check if (more than one)
nameannotations are available.Parameters:string name Target annotation name Returns: Check result - const string
toString(); - Will return
<Typename>: - <member> - ...
- struct
Constant; Constantrepresentation- AbstractType
type; - Type of the constant
- string
name; - Name of the constant
- string
value; - VAlue of the constant
- Annotation[]
annotations; - Annotations
- const auto
getAnnotationValues(in string name); - Get annotations whose name is
nameParameters:string name Target annotation name Returns: A list of annotations - const auto
getAnnotationValue(in string name); - Get an annotation whose name is
nameUnlikegetAnnotationValuescollects multiple annotations, this function get only one annotation for the name. If there is no annotation nor more than two annotation, an assertion will be raised.Parameters:string name Target annotation name Returns: An annotation - const bool
hasAnnotation(in string name); - Check if one
nameannotation is available.Parameters:string name Target annotation name Returns: Check result - const bool
hasAnnotations(in string name); - Check if (more than one)
nameannotations are available.Parameters:string name Target annotation name Returns: Check result - const string
toString(); - WIll return
"<type> <name> <value>".