OpenDDS  Snapshot(2023/04/28-20:55)
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 294 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 302 of file be_global.cpp.

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

◆ ~BE_Comment_Guard()

BE_Comment_Guard::~BE_Comment_Guard ( )

Definition at line 315 of file be_global.cpp.

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

316 {
317  be_global->multicast("\n/* End ");
318  be_global->multicast(type_);
319  be_global->multicast(": ");
320  be_global->multicast(name_);
321  be_global->multicast(" */\n");
322 }
const char * name_
Definition: be_global.h:301
BE_GlobalData * be_global
Definition: be_global.cpp:44
const char * type_
Definition: be_global.h:301

Member Data Documentation

◆ name_

const char * BE_Comment_Guard::name_
private

Definition at line 301 of file be_global.h.

Referenced by ~BE_Comment_Guard().

◆ type_

const char* BE_Comment_Guard::type_
private

Definition at line 301 of file be_global.h.

Referenced by ~BE_Comment_Guard().


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