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

#include <be_global.h>

Public Member Functions

 BE_Comment_Guard (const char *type, const char *name)
 
 ~BE_Comment_Guard ()
 

Private Attributes

const char * type_
 
const char * name_
 

Detailed Description

Definition at line 285 of file be_global.h.

Constructor & Destructor Documentation

◆ BE_Comment_Guard()

BE_Comment_Guard::BE_Comment_Guard ( const char *  type,
const char *  name 
)

Definition at line 300 of file be_global.cpp.

301  : type_(type), name_(name)
302 {
303  if (idl_global->compile_flags() & IDL_CF_INFORMATIVE)
304  cout << type << ": " << name << endl;
305 
306  be_global->multicast("\n\n/* Begin ");
307  be_global->multicast(type);
308  be_global->multicast(": ");
309  be_global->multicast(name);
310  be_global->multicast(" */\n\n");
311 }
const char * name_
Definition: be_global.h:292
const char * type_
Definition: be_global.h:292
const char *const name
Definition: debug.cpp:60
BE_GlobalData * be_global
Definition: be_global.cpp:43

◆ ~BE_Comment_Guard()

BE_Comment_Guard::~BE_Comment_Guard ( )

Definition at line 313 of file be_global.cpp.

References name_, BE_GlobalData::spawn_options(), and type_.

314 {
315  be_global->multicast("\n/* End ");
316  be_global->multicast(type_);
317  be_global->multicast(": ");
318  be_global->multicast(name_);
319  be_global->multicast(" */\n");
320 }
const char * name_
Definition: be_global.h:292
const char * type_
Definition: be_global.h:292
BE_GlobalData * be_global
Definition: be_global.cpp:43

Member Data Documentation

◆ name_

const char * BE_Comment_Guard::name_
private

Definition at line 292 of file be_global.h.

Referenced by ~BE_Comment_Guard().

◆ type_

const char* BE_Comment_Guard::type_
private

Definition at line 292 of file be_global.h.

Referenced by ~BE_Comment_Guard().


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