/search.css" rel="stylesheet" type="text/css"/> /search.js">
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes
DybDaq::DaqFormatConversionSvc Class Reference

#include <DaqFormatConversionSvc.h>

List of all members.

Public Member Functions

 DaqFormatConversionSvc (const std::string &name, ISvcLocator *svc)
 Cerates an instance of this class.
 ~DaqFormatConversionSvc ()
 Destroys the instance of this class.
virtual IConverter * createConverter (long svcType, const CLID &clID, const ICnvFactory *)
 Returns a new converter to handle the svcTYpe/clID supplied.
void svcNamesHandler (Property &p)

Static Public Attributes

static const long DAQ_FORMAT_DATA = 99
 The repository type for DAQ formatted data.

Private Member Functions

 DaqFormatConversionSvc ()
 Suppress default.
 DaqFormatConversionSvc (const DaqFormatConversionSvc &rhs)
 Suppress default.
DaqFormatConversionSvcoperator= (const DaqFormatConversionSvc &rhs)
 Suppress default.

Private Attributes

StringArrayProperty m_svcNames

Detailed Description

Definition at line 21 of file DaqFormatConversionSvc.h.


Constructor & Destructor Documentation

DaqFormatConversionSvc::DaqFormatConversionSvc ( const std::string &  name,
ISvcLocator *  svc 
)

Cerates an instance of this class.

Definition at line 21 of file DaqFormatConversionSvc.cc.

                                                                 :
    ConversionSvc(name,
                  svc,
                  DAQ_FORMAT_DATA) {
    declareProperty("CnvServices",
                    m_svcNames);
    m_svcNames.declareUpdateHandler(&DaqFormatConversionSvc::svcNamesHandler,
                                    this );
}
DaqFormatConversionSvc::~DaqFormatConversionSvc ( )

Destroys the instance of this class.

Definition at line 32 of file DaqFormatConversionSvc.cc.

                                                {
}
DybDaq::DaqFormatConversionSvc::DaqFormatConversionSvc ( ) [private]

Suppress default.

DybDaq::DaqFormatConversionSvc::DaqFormatConversionSvc ( const DaqFormatConversionSvc rhs) [private]

Suppress default.


Member Function Documentation

IConverter * DaqFormatConversionSvc::createConverter ( long  svcType,
const CLID &  clID,
const ICnvFactory *   
) [virtual]

Returns a new converter to handle the svcTYpe/clID supplied.

Definition at line 35 of file DaqFormatConversionSvc.cc.

                                                                        {
    if (svcType != DAQ_FORMAT_DATA) {
        return 0;
    }
    if (clID == CLID_DataObject) {
        return new StructureConverter(svcType,
                                      clID,
                                      serviceLocator());
    }
    if (clID == DayaBay::CLID_ReadoutHeader) {
        return new DaqEventConverter(svcType,
                                     clID,
                                     serviceLocator());
    }
    return 0;
}
void DaqFormatConversionSvc::svcNamesHandler ( Property &  p)

Definition at line 54 of file DaqFormatConversionSvc.cc.

                                                        {
    MsgStream log( msgSvc(),
                   name() );
    log << MSG::WARNING << "Ignoring: " << p << endreq ;
}
DaqFormatConversionSvc& DybDaq::DaqFormatConversionSvc::operator= ( const DaqFormatConversionSvc rhs) [private]

Suppress default.


Member Data Documentation

The repository type for DAQ formatted data.

Definition at line 28 of file DaqFormatConversionSvc.h.

StringArrayProperty DybDaq::DaqFormatConversionSvc::m_svcNames [private]

Definition at line 69 of file DaqFormatConversionSvc.h.


The documentation for this class was generated from the following files:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Fri May 16 2014 10:15:32 for DaqFormatModules by doxygen 1.7.4