BESDataDDSResponse.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 "BESDataDDSResponse.h"
00034
00035 BESDataDDSResponse::~BESDataDDSResponse()
00036 {
00037 if (_dds) {
00038 if (_dds->get_factory())
00039 delete _dds->get_factory();
00040 delete _dds;
00041 }
00042 }
00043
00048 void
00049 BESDataDDSResponse::set_container( const string &cn )
00050 {
00051 if( _dds && get_explicit_containers() )
00052 {
00053 _dds->container_name( cn ) ;
00054 }
00055 }
00056
00059 void
00060 BESDataDDSResponse::clear_container( )
00061 {
00062 if( _dds )
00063 {
00064 _dds->container_name( "" ) ;
00065 }
00066 }
00067
00075 void BESDataDDSResponse::dump(ostream &strm) const
00076 {
00077 strm << BESIndent::LMarg << "BESDataDDSResponse::dump - ("
00078 << (void *) this << ")" << endl;
00079 BESIndent::Indent();
00080 if (_dds) {
00081 strm << BESIndent::LMarg << "DDS:" << endl;
00082 BESIndent::Indent();
00083 DapIndent::SetIndent(BESIndent::GetIndent());
00084 _dds->dump(strm);
00085 DapIndent::Reset();
00086 BESIndent::UnIndent();
00087 }
00088 else {
00089 strm << BESIndent::LMarg << "DDS: null" << endl;
00090 }
00091 BESIndent::UnIndent();
00092 }
00093