BESDDSResponse.cc
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033 #include "BESDDSResponse.h"
00034
00035 BESDDSResponse::~BESDDSResponse()
00036 {
00037 if (_dds) {
00038 if (_dds->get_factory())
00039 delete _dds->get_factory();
00040 delete _dds;
00041 }
00042 }
00043
00048 void
00049 BESDDSResponse::set_container( const string &cn )
00050 {
00051 if( _dds && get_explicit_containers() )
00052 {
00053 _dds->container_name( cn ) ;
00054 }
00055 }
00056
00059 void
00060 BESDDSResponse::clear_container( )
00061 {
00062 if( _dds )
00063 {
00064 _dds->container_name( "" ) ;
00065 }
00066 }
00067
00076 void
00077 BESDDSResponse::dump( ostream &strm ) const
00078 {
00079 strm << BESIndent::LMarg << "BESDDSResponse::dump - ("
00080 << (void *)this << ")" << endl ;
00081 BESIndent::Indent() ;
00082 if( _dds )
00083 {
00084 strm << BESIndent::LMarg << "DDS:" << endl ;
00085 BESIndent::Indent() ;
00086 DapIndent::SetIndent( BESIndent::GetIndent() ) ;
00087 _dds->dump( strm ) ;
00088 DapIndent::Reset() ;
00089 BESIndent::UnIndent() ;
00090 }
00091 else
00092 {
00093 strm << BESIndent::LMarg << "DDS: null" << endl ;
00094 }
00095 BESIndent::UnIndent() ;
00096 }
00097