LSSTApplications  20.0.0
LSSTDataManagementBasePackage
Public Types | Public Member Functions | Protected Attributes | List of all members
lsst::pex::policy::PolicyStreamDestination Class Reference

a generic stream destination for policy data More...

#include <PolicyStreamDestination.h>

Inheritance diagram for lsst::pex::policy::PolicyStreamDestination:
lsst::pex::policy::PolicyDestination lsst::pex::policy::PolicyStringDestination

Public Types

typedef std::shared_ptr< std::ostreamStreamPtr
 

Public Member Functions

 PolicyStreamDestination (StreamPtr ostrm)
 create the destination More...
 
virtual ~PolicyStreamDestination ()
 release resource associated with the destination More...
 
virtual std::ostreamgetOutputStream ()
 return a stream that can be used to write the data to. More...
 

Protected Attributes

StreamPtr _ostrm
 

Detailed Description

a generic stream destination for policy data

Definition at line 49 of file PolicyStreamDestination.h.

Member Typedef Documentation

◆ StreamPtr

Definition at line 51 of file PolicyStreamDestination.h.

Constructor & Destructor Documentation

◆ PolicyStreamDestination()

lsst::pex::policy::PolicyStreamDestination::PolicyStreamDestination ( PolicyStreamDestination::StreamPtr  ostrm)

create the destination

Definition at line 35 of file PolicyStreamDestination.cc.

36  : PolicyDestination(), _ostrm(ostrm) {}

◆ ~PolicyStreamDestination()

lsst::pex::policy::PolicyStreamDestination::~PolicyStreamDestination ( )
virtual

release resource associated with the destination

Definition at line 38 of file PolicyStreamDestination.cc.

38 {}

Member Function Documentation

◆ getOutputStream()

std::ostream & lsst::pex::policy::PolicyStreamDestination::getOutputStream ( )
virtual

return a stream that can be used to write the data to.

Implements lsst::pex::policy::PolicyDestination.

Definition at line 40 of file PolicyStreamDestination.cc.

40 { return *_ostrm; }

Member Data Documentation

◆ _ostrm

StreamPtr lsst::pex::policy::PolicyStreamDestination::_ostrm
protected

Definition at line 69 of file PolicyStreamDestination.h.


The documentation for this class was generated from the following files:
lsst::pex::policy::PolicyDestination::PolicyDestination
PolicyDestination()
create a destination
Definition: PolicyDestination.h:55
lsst::pex::policy::PolicyStreamDestination::_ostrm
StreamPtr _ostrm
Definition: PolicyStreamDestination.h:69