![]() |
MAK RTIspy API Documentation for HLA Evolved
|
00001 /******************************************************************************* 00002 ** Copyright (c) 2009 MaK Technologies, Inc. 00003 ** All rights reserved. 00004 *******************************************************************************/ 00005 /******************************************************************************* 00006 ** $RCSfile: simpleTimeAttribute13dlc.h,v $ $Revision: 1.1 $ $State: Exp $ 00007 *******************************************************************************/ 00008 #ifndef _ATTRIBUTE13DEFINITION_ 00009 #define _ATTRIBUTE13DEFINITION_ 00010 00011 // A simple container class for an attribute update event. 00012 00013 #include <map> 00014 #include <string> 00015 #include "RTI13.h" 00016 00017 00018 // An attributeUpdateEvent object encapsulates the contents of a 00019 // reflectattributeupdates callback. Note, that not all contents of the 00020 // callback are stored, only those required for our specific application. 00021 00022 // That information can then be stored and later retrieved to be processed. 00023 class attributeUpdateEvent 00024 { 00025 00026 public: 00027 00028 attributeUpdateEvent( 00029 const rti13::AttributeHandleValuePairSet& pvhps, 00030 const rti13::FedTime& fedTime, 00031 const char* tag, 00032 rti13::EventRetractionHandle theRetractionHandle 00033 ); 00034 00035 attributeUpdateEvent( 00036 const rti13::AttributeHandleValuePairSet& phvps, 00037 const char* tag 00038 ); 00039 00040 ~attributeUpdateEvent(); 00041 00042 rti13::ObjectHandle getHandle(); 00043 const std::map<unsigned long, std::string>& getAhvps(); 00044 const std::string& getFedTime(); 00045 const std::string& getTag(); 00046 rti13::EventRetractionHandle getRetractionHandle(); 00047 00048 private: 00049 rti13::ObjectHandle myHandle; 00050 std::map<unsigned long, std::string> myAhvps; 00051 std::string myFedTime; 00052 std::string myTag; 00053 rti13::EventRetractionHandle myRetractionHandle; 00054 00055 }; 00056 00057 #endif // #define _ATTRIBUTE13DEFINITION_