59 |
InstrumentManagerBase() { } |
InstrumentManagerBase() { } |
60 |
virtual ~InstrumentManagerBase() { } |
virtual ~InstrumentManagerBase() { } |
61 |
|
|
62 |
virtual InstrumentEditor* LaunchInstrumentEditor(instrument_id_t ID, void* pUserData = NULL) throw (InstrumentManagerException) { |
virtual InstrumentEditor* LaunchInstrumentEditor(instrument_id_t ID, void* pUserData = NULL) throw (InstrumentManagerException) OVERRIDE { |
63 |
throw InstrumentManagerException( |
throw InstrumentManagerException( |
64 |
"Instrument editing is not supported for this instrument format" |
"Instrument editing is not supported for this instrument format" |
65 |
); |
); |
66 |
} |
} |
67 |
|
|
68 |
virtual String GetInstrumentDataStructureName(instrument_id_t ID) { |
virtual String GetInstrumentDataStructureName(instrument_id_t ID) OVERRIDE { |
69 |
throw InstrumentManagerException("Not implemented"); |
throw InstrumentManagerException("Not implemented"); |
70 |
} |
} |
71 |
|
|
72 |
virtual String GetInstrumentDataStructureVersion(instrument_id_t ID) { |
virtual String GetInstrumentDataStructureVersion(instrument_id_t ID) OVERRIDE { |
73 |
throw InstrumentManagerException("Not implemented"); |
throw InstrumentManagerException("Not implemented"); |
74 |
} |
} |
75 |
|
|
97 |
* Give back a region that belongs to an instrument that |
* Give back a region that belongs to an instrument that |
98 |
* was previously handed back. |
* was previously handed back. |
99 |
*/ |
*/ |
100 |
virtual void HandBackRegion(R* pRegion) { |
virtual void HandBackRegion(R* pRegion) OVERRIDE { |
101 |
LockGuard lock(RegionInfoMutex); |
LockGuard lock(RegionInfoMutex); |
102 |
if (RegionInfo.find(pRegion) == RegionInfo.end()) { |
if (RegionInfo.find(pRegion) == RegionInfo.end()) { |
103 |
std::cerr << "Handing back unknown region. This is a BUG!!!" << std::endl; |
std::cerr << "Handing back unknown region. This is a BUG!!!" << std::endl; |
118 |
} |
} |
119 |
} |
} |
120 |
|
|
121 |
virtual InstrumentManager::mode_t GetMode(const InstrumentManager::instrument_id_t& ID) { |
virtual InstrumentManager::mode_t GetMode(const InstrumentManager::instrument_id_t& ID) OVERRIDE { |
122 |
return static_cast<InstrumentManager::mode_t>(ResourceManager<instrument_id_t, I>::AvailabilityMode(ID)); |
return static_cast<InstrumentManager::mode_t>(ResourceManager<instrument_id_t, I>::AvailabilityMode(ID)); |
123 |
} |
} |
124 |
|
|
125 |
virtual void SetMode(const InstrumentManager::instrument_id_t& ID, InstrumentManager::mode_t Mode) { |
virtual void SetMode(const InstrumentManager::instrument_id_t& ID, InstrumentManager::mode_t Mode) OVERRIDE { |
126 |
dmsg(2,("InstrumentManagerBase: setting mode for %s (Index=%d) to %d\n",ID.FileName.c_str(),ID.Index,Mode)); |
dmsg(2,("InstrumentManagerBase: setting mode for %s (Index=%d) to %d\n",ID.FileName.c_str(),ID.Index,Mode)); |
127 |
this->SetAvailabilityMode(ID, static_cast<typename ResourceManager<instrument_id_t, I>::mode_t>(Mode)); |
this->SetAvailabilityMode(ID, static_cast<typename ResourceManager<instrument_id_t, I>::mode_t>(Mode)); |
128 |
} |
} |