Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

CdbNTuplePrintImpl< NTUPLE, CONVERTER > Class Template Reference

An implementation of the "print" tool for n-tuples. More...

#include <CdbNTuplePrintImpl.hh>

List of all members.

Static Public Member Functions

CdbStatus print (std::ostream &theOutputStream, const CdbCPtr< NTUPLE > &thePtr, const unsigned int theColumnWidth, const char *theIndent, const CdbNTuplePrintTypes::FrameType theFrameType, const CdbNTuplePrintTypes::FrameBorders theFrameBorders)
 The print method.


Detailed Description

template<class NTUPLE, class CONVERTER>
class CdbNTuplePrintImpl< NTUPLE, CONVERTER >

An implementation of the "print" tool for n-tuples.

This facility provides a printing facility for n-tuples. The tuples are printed onto the specified output stream. The facility also provides some limited control over a format of printed tuples.

The tool is able to deal with any n-tuple like classes, as long as they satisfy to the "read-only" part of a public interface of the CdbNTuple class.

To cope with various types of elements the facility has the second template parameter (CONVERTER) to specify a type-specific convertor for a type of n-tuple elements. A converter class can be any class similar to the CdbNTuplePrintDefaultConverter class.

See also:
class CdbNTuple

class CdbCPtr

class CdbNTuplePrintDefaultConverter

Definition at line 33 of file CdbNTuplePrintImpl.hh.


Member Function Documentation

template<class NTUPLE, class CONVERTER>
CdbStatus CdbNTuplePrintImpl< NTUPLE, CONVERTER >::print std::ostream &    theOutputStream,
const CdbCPtr< NTUPLE > &    thePtr,
const unsigned int    theColumnWidth,
const char *    theIndent,
const CdbNTuplePrintTypes::FrameType    theFrameType,
const CdbNTuplePrintTypes::FrameBorders    theFrameBorders
[static]
 

The print method.

Definition at line 22 of file CdbNTuplePrintImpl.cc.

References CdbNTuplePrintTypes::ClosedFrame, CdbNTuplePrintTypes::DoubleHashes, CdbStatus::Error, CdbStatus::IllegalParameters, CdbCPtr< P, CLOSE_POLICY >::isNull(), CdbNTuplePrintTypes::OpenFrame, CdbNTuplePrintTypes::SingleXes, and CdbStatus::Success.

Referenced by CdbNTuplePrint< CONVERTER >::print().


The documentation for this class was generated from the following files:
Generated on Mon Dec 5 18:22:22 2005 for CDB by doxygen1.3-rc3