Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

# CIAO_common.h File Reference

`#include "ace/config-all.h"`
`#include "CIAO_Client_Export.h"`

Include dependency graph for CIAO_common.h:

This graph shows which files directly or indirectly include this file:

## Namespaces
namespace | CIAO
## Defines
#define | CIAO_REGISTER_VALUE_FACTORY(ORB, FACTORY, VALUETYPE)
#define | CIAO_NTRACE ACE_NTRACE
#define | CIAO_TRACE(X)
## Functions
CIAO_CLIENT_Export int | debug_level (void)

## Detailed Description

This file collects common CIAO macro definitions.

Author:
  Nanbor Wang <nanbor@cs.wustl.edu>

## Define Documentation

#define CIAO_NTRACE ACE_NTRACE

#define CIAO_REGISTER_VALUE_FACTORY | ( | ORB,
|  | FACTORY,
|  | VALUETYPE |  | ) |

| Value:
    {\
            CORBA::ValueFactory factory = new FACTORY; \
            CORBA::ValueFactory prev_factory = \
              ORB->register_value_factory \
              (VALUETYPE::_tao_obv_static_repository_id (), \
               factory); \
            if (prev_factory) prev_factory->_remove_ref (); \
            factory->_remove_ref ();      }

#define CIAO_TRACE | ( | X |  | ) |

## Function Documentation

int CIAO::debug_level | ( | void |  | ) |

| Return the debug level. The debug level of CIAO is control by an environment variable "CIAO_DEBUG_LEVEL". It should be an int value. If it is not defined, the default debug level is 0. The value of debug value is evaluated on its first use and the value is then cached. The actual implementation of this function is in Client_init.cpp. Some recommendation for using the debug_level > 0 : For component users. Component developers are encouraged to develop their own > 10 : For CIAO tools > 20 : For CIAO core.