/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
MockEvtConverters::MockEvtStructure Class Reference

#include <MockEvtStructure.h>

List of all members.

Classes

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

Public Member Functions

 MockEvtStructure (ISvcLocator *svc)
 Basic Constructor.
virtual ~MockEvtStructure ()
 Destructor.
virtual StatusCode createObj (IOpaqueAddress *, DataObject *&pObject)
 Overloaded Converter class methods.
StatusCode fillObjRefs (IOpaqueAddress *pAddress, DataObject *pObject)
virtual long repSvcType () const
 Bookkeepting method used by ConverterSvc class.

Detailed Description

Definition at line 16 of file MockEvtStructure.h.


Constructor & Destructor Documentation

MockEvtStructure::MockEvtStructure ( ISvcLocator *  svc)

Basic Constructor.

Definition at line 12 of file MockEvtStructure.cpp.

                                                   :
  Converter(MockEvtConversionSvc::MOCK_EVT_DATA,
            DayaBay::CLID_MockEvtStructure,
            svc) {
}
MockEvtStructure::~MockEvtStructure ( ) [virtual]

Destructor.

Definition at line 18 of file MockEvtStructure.cpp.

                                    {
}

Member Function Documentation

StatusCode MockEvtStructure::createObj ( IOpaqueAddress *  ,
DataObject *&  pObject 
) [virtual]

Overloaded Converter class methods.

Definition at line 21 of file MockEvtStructure.cpp.

                                                             {
  pObject = new DataObject();
  return StatusCode::SUCCESS;
}
StatusCode MockEvtStructure::fillObjRefs ( IOpaqueAddress *  pAddress,
DataObject *  pObject 
)

Definition at line 27 of file MockEvtStructure.cpp.

                                                              {
  Address* address = dynamic_cast<Address*>(addr);
  if (0 == address) {
    return StatusCode::FAILURE;
  }
  
  if (address->registry()->identifier() == "/Event/TESDemo") {
    IOpaqueAddress* mockEvtAddress = new MockEvtReadout::Address(address->context());
    if (dataManager()->registerAddress(pObject,
                                       "Readout",
                                       mockEvtAddress).isFailure()) {
      return StatusCode::FAILURE;
    }
    return StatusCode::SUCCESS;
  }

  Address* mockEvtAddress = new Address(address->context());
  if (dataManager()->registerAddress(pObject,
                                     "TESDemo",
                                     mockEvtAddress).isFailure()) {
    return StatusCode::FAILURE;
  }
  
  return StatusCode::SUCCESS;
}
long MockEvtStructure::repSvcType ( ) const [virtual]

Bookkeepting method used by ConverterSvc class.

Definition at line 54 of file MockEvtStructure.cpp.

                                        {
  return i_repSvcType();
}

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:08:54 for MockEvt by doxygen 1.7.4