13 #pragma warning (disable:4715)
15 #include <vlutil/vlExceptions.h>
48 : makVrv::DtStateViewCollection<makVrv::DtVrlinkSimulatedEntityState>(
49 de, makVrv::DtSimEntryUpdater::NoUpdates)
62 makVrv::DtStateViewCollection<makVrv::DtVrlinkSimulatedBaseState>(de, makVrv::DtSimEntryUpdater::NoUpdates)
88 makVrv::DtStateViewCollection<
DtIffStateData>(de, makVrv::DtSimEntryUpdater::NoUpdates)
118 makVrv::DtStateViewCollection<
DtExtendedStateData>(de, makVrv::DtSimEntryUpdater::NoUpdates)
138 makVrv::DtStateViewCollection<
DtSpotReportState>(de, makVrv::DtSimEntryUpdater::AnyUpdates)
182 virtual DtBoost::shared_ptr<DtObjectDataInterface> lookupObjectData(
const makVrv::DtUniqueID&
id);
186 virtual DtBoost::shared_ptr<DtObjectDataInterface> lookupSpotReportData(
const makVrv::DtUniqueID&
id);
190 virtual DtBoost::shared_ptr<DtObjectDataInterface> lookupObjectData(
const std::string& name);
194 virtual DtBoost::shared_ptr<DtObjectDataInterface> lookupSpotReportData(
const std::string& name);
199 template<
typename T_ObjectDataInterfaceType>
202 return DtObjectDataInterface::cast<T_ObjectDataInterfaceType>(lookupObjectData(
id));
208 template<
typename T_ObjectDataInterfaceType>
209 DtBoost::shared_ptr<T_ObjectDataInterfaceType> lookupAndCastSpotReportData(
const makVrv::DtUniqueID&
id)
211 return DtObjectDataInterface::cast<T_ObjectDataInterfaceType>(lookupSpotReportData(
id));
217 template<
typename T_ObjectDataInterfaceType>
218 DtBoost::shared_ptr<T_ObjectDataInterfaceType> lookupAndCastObjectData(
const std::string& name)
220 return DtObjectDataInterface::cast<T_ObjectDataInterfaceType>(lookupObjectData(name));
226 template<
typename T_ObjectDataInterfaceType>
227 DtBoost::shared_ptr<T_ObjectDataInterfaceType> lookupAndCastSpotReportData(
const std::string& name)
229 return DtObjectDataInterface::cast<T_ObjectDataInterfaceType>(lookupSpotReportData(name));
247 if (!mySimulatedBaseStateViewCollection->hasStateView(
id))
253 (mySimulatedBaseStateViewCollection->findStateView(
id));
260 if (!mySpotReportStateViewCollection->hasStateView(
id))
266 (mySpotReportStateViewCollection->findStateView(
id));
274 return mySimulatedEntityStateView;
279 return mySimulatedBaseStateViewCollection;
284 return myObjectDataStateViewCollection;
289 return myEnvironmentStateViewCollection;
294 return myExtendedStateDataViewCollection;
299 return myIffStateDataViewCollection;
304 return myEmitterSystemStateViewCollection;
309 return mySpotReportStateViewCollection;
314 return myAggregateStateViewCollection;
340 typedef std::vector<makVrv::DtSimEntryUpdater::UpdateRate>
UpdateRates;
365 typedef boost::unordered_map<makVrv::DtBaseStateView*, UpdateRates>
UpdateRateMap;
372 makVrv::DtSimEntry::SimStateVector::const_iterator pos = entry->
simStates().begin();
373 makVrv::DtSimEntry::SimStateVector::const_iterator endPos = entry->
simStates().end();
374 for(; pos != endPos; ++pos)
376 T tState =
dynamic_cast<T
>(*pos);