OpenDDS  Snapshot(2023/04/07-19:43)
Public Member Functions | Private Attributes | List of all members
TopicKeys::Error Class Reference

#include <topic_keys.h>

Inheritance diagram for TopicKeys::Error:
Inheritance graph
[legend]
Collaboration diagram for TopicKeys::Error:
Collaboration graph
[legend]

Public Member Functions

 Error ()
 
 Error (AST_Decl *node, const std::string &message)
 
virtual ~Error () throw ()
 
Erroroperator= (const Error &error)
 
virtual const char * what () const throw ()
 
AST_Decl * node ()
 

Private Attributes

AST_Decl * node_
 
std::string message_
 

Detailed Description

Error in the AST or the application of the annotation.

Definition at line 53 of file topic_keys.h.

Constructor & Destructor Documentation

◆ Error() [1/2]

TopicKeys::Error::Error ( )

Definition at line 39 of file topic_keys.cpp.

40  : node_(0)
41 {
42 }
AST_Decl * node_
Definition: topic_keys.h:64

◆ Error() [2/2]

TopicKeys::Error::Error ( AST_Decl *  node,
const std::string &  message 
)

Definition at line 44 of file topic_keys.cpp.

45  : node_(node)
46  , message_(message)
47 {
48 }
AST_Decl * node_
Definition: topic_keys.h:64
AST_Decl * node()
Definition: topic_keys.cpp:66
std::string message_
Definition: topic_keys.h:65

◆ ~Error()

TopicKeys::Error::~Error ( )
throw (
)
virtual

Definition at line 50 of file topic_keys.cpp.

51 {
52 }

Member Function Documentation

◆ node()

AST_Decl * TopicKeys::Error::node ( void  )

Definition at line 66 of file topic_keys.cpp.

References node_.

Referenced by dds_visitor::visit_structure().

66  {
67  return node_;
68 }
AST_Decl * node_
Definition: topic_keys.h:64

◆ operator=()

TopicKeys::Error & TopicKeys::Error::operator= ( const Error error)

Definition at line 54 of file topic_keys.cpp.

References message_, and node_.

55 {
56  node_ = error.node_;
57  message_ = error.message_;
58  return *this;
59 }
AST_Decl * node_
Definition: topic_keys.h:64
std::string message_
Definition: topic_keys.h:65

◆ what()

const char * TopicKeys::Error::what ( ) const
throw (
)
virtual

Definition at line 61 of file topic_keys.cpp.

References message_.

Referenced by dds_visitor::visit_structure().

62 {
63  return message_.c_str();
64 }
std::string message_
Definition: topic_keys.h:65

Member Data Documentation

◆ message_

std::string TopicKeys::Error::message_
private

Definition at line 65 of file topic_keys.h.

Referenced by operator=(), and what().

◆ node_

AST_Decl* TopicKeys::Error::node_
private

Definition at line 64 of file topic_keys.h.

Referenced by node(), and operator=().


The documentation for this class was generated from the following files: