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

In This Package:

Classes | Public Member Functions | Static Public Member Functions | Static Public Attributes | Private Member Functions
DybDaq::StructureConverter Class Reference

#include <StructureConverter.h>

List of all members.

Classes

class  Address
 Implementation of IOpaqueAddress interface for this class. More...

Public Member Functions

 StructureConverter (unsigned char storageType, const CLID &clid, ISvcLocator *svc)
 Creates an instance of this class.
 StructureConverter (ISvcLocator *svc)
 Creates an instance of this class.
 ~StructureConverter ()
 Destroys the instance of this class.
virtual StatusCode createObj (IOpaqueAddress *addr, DataObject *&pObject)
 Create DataObject based on the supplied IOpaqueAddress.
virtual StatusCode fillObjRefs (IOpaqueAddress *addr, DataObject *pObject)
 Resolve and or create any objects used by the created one.
virtual long repSvcType () const
 Bookkeepting method used by ConverterSvc class.

Static Public Member Functions

static const long storageType ()
 Required by converter factory.
static const CLID & classID ()
 Required by converter factory.

Static Public Attributes

static const unsigned int kEvent = 0
 The element value for the Event.
static const unsigned int kReadout = StructureConverter::kEvent + 1
 The element value for the Event.
static const unsigned int kLastElement = StructureConverter::kReadout
 The last element value.

Private Member Functions

 StructureConverter ()
 Suppress default.
 StructureConverter (const StructureConverter &rhs)
 Suppress default.
StructureConverteroperator= (const StructureConverter &rhs)
 Suppress default.

Detailed Description

Definition at line 26 of file StructureConverter.h.


Constructor & Destructor Documentation

StructureConverter::StructureConverter ( unsigned char  storageType,
const CLID &  clid,
ISvcLocator *  svc 
)

Creates an instance of this class.

Definition at line 49 of file StructureConverter.cc.

                                                         :
    Converter(storageType,
              clid,
              svc) {
}
StructureConverter::StructureConverter ( ISvcLocator *  svc)

Creates an instance of this class.

Definition at line 57 of file StructureConverter.cc.

                                                       :
    Converter(storageType(),
              classID(),
              svc) {
}
StructureConverter::~StructureConverter ( )

Destroys the instance of this class.

Definition at line 63 of file StructureConverter.cc.

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

Suppress default.

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

Suppress default.


Member Function Documentation

const long StructureConverter::storageType ( ) [static]

Required by converter factory.

Definition at line 66 of file StructureConverter.cc.

const CLID & StructureConverter::classID ( ) [static]

Required by converter factory.

Definition at line 70 of file StructureConverter.cc.

                                        {
    return CLID_DataObject;
}
StatusCode StructureConverter::createObj ( IOpaqueAddress *  addr,
DataObject *&  pObject 
) [virtual]

Create DataObject based on the supplied IOpaqueAddress.

Definition at line 74 of file StructureConverter.cc.

                                                               {
    Address* address = dynamic_cast<Address*>(addr);
    if (0 == address) {
        return StatusCode::FAILURE;
    }
    pObject = new DataObject();
    if (0 == pObject) {
        return StatusCode::FAILURE;
    }
    return StatusCode::SUCCESS;
    
}
StatusCode StructureConverter::fillObjRefs ( IOpaqueAddress *  addr,
DataObject *  pObject 
) [virtual]

Resolve and or create any objects used by the created one.

Definition at line 88 of file StructureConverter.cc.

                                                                {
    Address* address = dynamic_cast<Address*>(addr);
    const unsigned int element = address->element();
    const char* path = paths[element];
    if (kLastElement == element) {
        dataManager()->registerAddress(pObject,
                                       path,
                                       new DaqEventConverter::Address(address->context()));
    } else {
        dataManager()->registerAddress(pObject,
                                       path,
                                       new Address(address->context(),
                                                   element + 1));
    }
    return StatusCode::SUCCESS;
}
long StructureConverter::repSvcType ( ) const [virtual]

Bookkeepting method used by ConverterSvc class.

Definition at line 106 of file StructureConverter.cc.

                                          {
    return i_repSvcType();
}
StructureConverter& DybDaq::StructureConverter::operator= ( const StructureConverter rhs) [private]

Suppress default.


Member Data Documentation

const unsigned int StructureConverter::kEvent = 0 [static]

The element value for the Event.

Definition at line 33 of file StructureConverter.h.

const unsigned int StructureConverter::kReadout = StructureConverter::kEvent + 1 [static]

The element value for the Event.

Definition at line 38 of file StructureConverter.h.

The last element value.

Definition at line 43 of file StructureConverter.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