OpenDDS  Snapshot(2023/04/28-20:55)
Public Member Functions | List of all members
OptionalAnnotation Class Reference

#include <annotations.h>

Inheritance diagram for OptionalAnnotation:
Inheritance graph
[legend]
Collaboration diagram for OptionalAnnotation:
Collaboration graph
[legend]

Public Member Functions

 OptionalAnnotation ()
 
std::string definition () const
 
std::string name () const
 
- Public Member Functions inherited from AnnotationWithValue< bool >
virtual bool node_value_exists (AST_Decl *node, bool &value) const
 
- Public Member Functions inherited from Annotation
 Annotation ()
 
virtual ~Annotation ()
 
virtual std::string module () const
 
virtual std::string fullname () const
 
AST_Annotation_Decl * declaration () const
 
AST_Annotation_Appl * find_on (AST_Decl *node) const
 
void cache ()
 
- Public Member Functions inherited from AbsentValue< bool >
 AbsentValue (const bool &value)
 

Additional Inherited Members

- Public Attributes inherited from AbsentValue< bool >
const bool absent_value
 
- Protected Member Functions inherited from AnnotationWithValue< bool >
virtual bool value_from_appl (AST_Annotation_Appl *) const
 

Detailed Description

Definition at line 242 of file annotations.h.

Constructor & Destructor Documentation

◆ OptionalAnnotation()

OptionalAnnotation::OptionalAnnotation ( )
inline

Definition at line 244 of file annotations.h.

References name.

245  : AbsentValue<bool>(false)
246  {}

Member Function Documentation

◆ definition()

std::string OptionalAnnotation::definition ( ) const
virtual

Implements Annotation.

Definition at line 292 of file annotations.cpp.

293 {
294  return
295  "@annotation optional {\n"
296  " boolean value default TRUE;"
297  "};\n";
298 }

◆ name()

std::string OptionalAnnotation::name ( void  ) const
virtual

Implements Annotation.

Definition at line 300 of file annotations.cpp.

301 {
302  return "optional";
303 }

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