TimingContext.cpp

Go to the documentation of this file.
00001 // Copyright CERN 2012 - Developed in collaboration with GSI
00002 
00003 #include <fesa-core/Synchronization/TimingContext.h>
00004 
00005 #include <fesa-core/Synchronization/SynchronizationLabObjectFactory.h>
00006 #include <fesa-core/Synchronization/CycleDescriptor.h>
00007 
00008 
00009 namespace fesa
00010 {
00011 
00012 TimingContext::TimingContext(const std::string& cycleName) :
00013     MultiplexingContext()
00014 {
00015     cycleName_ = cycleName;
00016     type_ = CycleTypeCtxt;
00017     SynchronizationLabObjectFactory* syncFactory = SynchronizationLabObjectFactory::getInstance();
00018     CycleDescriptor* pCycleDescrip = syncFactory->getCycleDescriptor(cycleName);
00019     cycleId_ = pCycleDescrip->getCycleSelectorId(cycleName);
00020 }
00021 
00022 TimingContext::TimingContext() :
00023     MultiplexingContext()
00024 {
00025     type_ = CycleTypeCtxt;
00026 }
00027 
00028 TimingContext::TimingContext(std::istream& stream) :
00029     MultiplexingContext(stream)
00030 {
00031 
00032 }
00033 
00034 int64_t TimingContext::getInterruptTimeStamp()
00035 {
00036     return 0;
00037 }
00038 
00039 uint32_t TimingContext::getCycleTime()
00040 {
00041     return 0;
00042 }
00043 
00044 TimingContext::~TimingContext()
00045 {
00046 
00047 } 
00048 
00049 } // fesa

Generated on 18 Jan 2013 for Fesa by  doxygen 1.6.1