|
Robot Raconteur Core C++ Library
|
Class for exception definitions. More...
#include <ServiceDefinition.h>
Public Member Functions | |
| ExceptionDefinition (const boost::shared_ptr< ServiceDefinition > &service) | |
| Construct a new empty ExceptionDefinition object. | |
| std::string | ToString () |
| Convert exception definition to string. | |
| void | FromString (boost::string_ref s, const ServiceDefinitionParseInfo *parse_info=NULL) |
| Parse an exception definition from string. | |
| void | Reset () |
| Clear all fields. | |
Public Attributes | |
| std::string | Name |
| The name of the exception. | |
| std::string | DocString |
| Documentation string for the exception. | |
| RR_WEAK_PTR< ServiceDefinition > | service |
| The parent service definition. | |
| ServiceDefinitionParseInfo | ParseInfo |
| Parsing diagnostic information. | |
Class for exception definitions.
See service_definitions.md for more information.
| RobotRaconteur::ExceptionDefinition::ExceptionDefinition | ( | const boost::shared_ptr< ServiceDefinition > & | service | ) |
Construct a new empty ExceptionDefinition object.
Must be constructed with boost::make_shared<ExceptionDefinition>()
| service | The parent service definition |
| void RobotRaconteur::ExceptionDefinition::FromString | ( | boost::string_ref | s, |
| const ServiceDefinitionParseInfo * | parse_info = NULL ) |
Parse an exception definition from string.
| s | The exception definition string |
| parse_info | Parsing diagnostic information |
| std::string RobotRaconteur::ExceptionDefinition::ToString | ( | ) |
Convert exception definition to string.
| ServiceDefinitionParseInfo RobotRaconteur::ExceptionDefinition::ParseInfo |
Parsing diagnostic information.
The ParseInfo field is populated by FromString()