#include <HxEnvCorbaObject.h>
Public Types | |
typedef TiedSvtT::HxT | HxT |
typedef TiedSvtT::CorbaT | CorbaT |
Public Methods | |
HxEnvCorbaObject (HxMessageHolder *holder) | |
virtual STD_OSTREAM & | errorStream () |
virtual void | flush () |
CorbaT * | returnObject (const HxT &obj) |
This class registers an HxEnvironment that prints messages in the given HxMessageHolder and provides a function to return the resulting object (returnObject):
if(some error has happened) return NIL object else register servant and return object
After the call to returnObject, HxEnvCorbaObject becomes inactive: it behaves as the base HxEnvironment (output to console).
|
|
|
|
|
00019 : _holder(holder) 00020 { 00021 _holder->clearMessage(); 00022 _active = 1; 00023 00024 HxEnvironment::setEnvironment(this); 00025 } |
|
00030 { 00031 if(_active) 00032 return _holder->errorStream(); 00033 else 00034 return HxEnvironment::errorStream(); 00035 } |
|
00040 { 00041 if(_active) 00042 _holder->flush(); 00043 else 00044 HxEnvironment::flush(); 00045 } |
|
00051 { 00052 _active = 0; 00053 00054 if(_holder->hasError()) 00055 return CorbaT::_nil(); 00056 else 00057 return HxRegisterTiedServant<TiedSvtT>(obj); 00058 } |