Public Member Functions | Private Attributes

BE_GlobalData Class Reference

#include <be_global.h>

Collaboration diagram for BE_GlobalData:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 BE_GlobalData (void)
virtual ~BE_GlobalData (void)
bool removing (void) const
void removing (bool value)
CORBA::ORB_ptr orb (void) const
void orb (CORBA::ORB_ptr orb)
CORBA::Repository_ptr repository (void) const
void repository (CORBA::Repository_ptr repo)
ACE_Unbounded_Stack
< CORBA::Container_ptr > & 
ifr_scopes (void)
void destroy (void)
const char * filename (void) const
void filename (char *fname)
bool enable_locking (void) const
void enable_locking (bool value)
bool do_included_files (void) const
void do_included_files (bool val)
bool allow_duplicate_typedefs () const
void allow_duplicate_typedefs (bool val)
ACE_CString orb_args (void) const
void orb_args (const ACE_CString &args)
ACE_CString spawn_options (void)
void parse_args (long &i, char **av)

Private Attributes

bool removing_
CORBA::ORB_var orb_
CORBA::Repository_var repository_
CORBA::String_var holding_scope_name_
ACE_Unbounded_Stack
< CORBA::Container_ptr > 
ifr_scopes_
char * filename_
bool enable_locking_
bool do_included_files_
bool allow_duplicate_typedefs_
ACE_CString orb_args_

Detailed Description

Definition at line 37 of file be_global.h.


Constructor & Destructor Documentation

BE_GlobalData::BE_GlobalData ( void   ) 

Definition at line 27 of file be_global.cpp.

  : removing_ (false),
    filename_ (0),
    enable_locking_ (false),
    do_included_files_ (true),
    allow_duplicate_typedefs_ (false)
{
  // At this point, the FE has been initialized.  We can
  // now instruct it that we want to preserve c++ keywords.
  idl_global->preserve_cpp_keywords (true);
}

BE_GlobalData::~BE_GlobalData ( void   )  [virtual]

Definition at line 39 of file be_global.cpp.

{
}


Member Function Documentation

bool BE_GlobalData::allow_duplicate_typedefs (  )  const

Definition at line 127 of file be_global.cpp.

{
  return this->allow_duplicate_typedefs_;
}

void BE_GlobalData::allow_duplicate_typedefs ( bool  val  ) 

Definition at line 133 of file be_global.cpp.

{
  this->allow_duplicate_typedefs_ = val;
}

void BE_GlobalData::destroy ( void   ) 

Definition at line 86 of file be_global.cpp.

{
}

bool BE_GlobalData::do_included_files ( void   )  const

Definition at line 115 of file be_global.cpp.

{
  return this->do_included_files_;
}

void BE_GlobalData::do_included_files ( bool  val  ) 

Definition at line 121 of file be_global.cpp.

{
  this->do_included_files_ = val;
}

bool BE_GlobalData::enable_locking ( void   )  const

Definition at line 103 of file be_global.cpp.

{
  return this->enable_locking_;
}

void BE_GlobalData::enable_locking ( bool  value  ) 

Definition at line 109 of file be_global.cpp.

{
  this->enable_locking_ = value;
}

const char * BE_GlobalData::filename ( void   )  const

Definition at line 91 of file be_global.cpp.

{
  return this->filename_;
}

void BE_GlobalData::filename ( char *  fname  ) 

Definition at line 97 of file be_global.cpp.

{
  this->filename_ = fname;
}

ACE_Unbounded_Stack< CORBA::Container_ptr > & BE_GlobalData::ifr_scopes ( void   ) 

Definition at line 80 of file be_global.cpp.

{
  return this->ifr_scopes_;
}

void BE_GlobalData::orb ( CORBA::ORB_ptr  orb  ) 

Definition at line 62 of file be_global.cpp.

{
  this->orb_ = orb;
}

CORBA::ORB_ptr BE_GlobalData::orb ( void   )  const

Definition at line 56 of file be_global.cpp.

{
  return this->orb_.in ();
}

ACE_CString BE_GlobalData::orb_args ( void   )  const

Definition at line 139 of file be_global.cpp.

{
  return this->orb_args_;
}

void BE_GlobalData::orb_args ( const ACE_CString args  ) 

Definition at line 145 of file be_global.cpp.

{
  this->orb_args_ = args;
}

void BE_GlobalData::parse_args ( long &  i,
char **  av 
)

Definition at line 157 of file be_global.cpp.

{
  switch (av[i][1])
    {
      case 'L':
        be_global->enable_locking (true);
        break;
      case 'r':
        be_global->removing (true);
        break;
      case 'S':
        // Suppress ...
        if (av[i][2] == 'i')
          {
            // ... processing of included IDL files.
            be_global->do_included_files (0);
          }
        else
          {
            ACE_ERROR ((
                LM_ERROR,
                ACE_TEXT ("IDL: I don't understand the '%s' option\n"),
                av[i]
              ));

            ACE_OS::exit (99);
          }
        break;
      case 'T':
        be_global->allow_duplicate_typedefs (true);
        break;
      default:
        ACE_ERROR ((
            LM_ERROR,
            ACE_TEXT ("IDL: I don't understand the '%s' option\n"),
            av[i]
          ));

        idl_global->set_compile_flags (idl_global->compile_flags ()
                                       | IDL_CF_ONLY_USAGE);
        break;
    }
}

void BE_GlobalData::removing ( bool  value  ) 

Definition at line 50 of file be_global.cpp.

{
  this->removing_ = value;
}

bool BE_GlobalData::removing ( void   )  const

Definition at line 44 of file be_global.cpp.

{
  return this->removing_;
}

void BE_GlobalData::repository ( CORBA::Repository_ptr  repo  ) 

Definition at line 74 of file be_global.cpp.

{
  this->repository_ = repo;
}

CORBA::Repository_ptr BE_GlobalData::repository ( void   )  const

Definition at line 68 of file be_global.cpp.

{
  return this->repository_.in ();
}

ACE_CString BE_GlobalData::spawn_options ( void   ) 

Definition at line 151 of file be_global.cpp.

{
  return this->orb_args_ + idl_global->idl_flags ();
}


Member Data Documentation

Definition at line 115 of file be_global.h.

Definition at line 112 of file be_global.h.

Definition at line 109 of file be_global.h.

char* BE_GlobalData::filename_ [private]

Definition at line 106 of file be_global.h.

Definition at line 100 of file be_global.h.

ACE_Unbounded_Stack<CORBA::Container_ptr> BE_GlobalData::ifr_scopes_ [private]

Definition at line 103 of file be_global.h.

Definition at line 94 of file be_global.h.

Definition at line 118 of file be_global.h.

bool BE_GlobalData::removing_ [private]

Definition at line 91 of file be_global.h.

CORBA::Repository_var BE_GlobalData::repository_ [private]

Definition at line 97 of file be_global.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends Defines