OpenDDS  Snapshot(2023/04/07-19:43)
Public Member Functions | Public Attributes | List of all members
NamespaceGuard Struct Reference

#include <dds_generator.h>

Public Member Functions

 NamespaceGuard (bool enabled=true)
 
 ~NamespaceGuard ()
 

Public Attributes

const bool enabled_
 

Detailed Description

Definition at line 193 of file dds_generator.h.

Constructor & Destructor Documentation

◆ NamespaceGuard()

NamespaceGuard::NamespaceGuard ( bool  enabled = true)
inline

Definition at line 196 of file dds_generator.h.

References be_global, and namespace_guard_start.

197  : enabled_(enabled)
198  {
199  if (enabled_) {
200  be_global->header_ << namespace_guard_start;
202  }
203  }
const char *const namespace_guard_start
const bool enabled_
BE_GlobalData * be_global
Definition: be_global.cpp:43

◆ ~NamespaceGuard()

NamespaceGuard::~NamespaceGuard ( )
inline

Definition at line 204 of file dds_generator.h.

References be_global, and namespace_guard_end.

205  {
206  if (enabled_) {
207  be_global->header_ << namespace_guard_end;
208  be_global->impl_ << namespace_guard_end;
209  }
210  }
const char *const namespace_guard_end
const bool enabled_
BE_GlobalData * be_global
Definition: be_global.cpp:43

Member Data Documentation

◆ enabled_

const bool NamespaceGuard::enabled_

Definition at line 194 of file dds_generator.h.


The documentation for this struct was generated from the following file: