MAK RTIspy API Documentation for HLA 1516
simpleTimeAttribute1516e.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002 ** Copyright (c) 2010 MaK Technologies, Inc.
00003 ** All rights reserved.
00004 *******************************************************************************/
00005 /*******************************************************************************
00006 ** $RCSfile: simpleTimeAttribute1516e.h,v $ $Revision: 1.0 $ $State: Exp $
00007 *******************************************************************************/
00008 #ifndef _ATTRIBUTE1516EDEFINITION_
00009 #define _ATTRIBUTE1516EDEFINITION_
00010 
00011 // A simple container class for an attribute update event.
00012 
00013 #include <map>
00014 #include <string>
00015 #include <RTI/RTI1516.h>
00016 #include <RTI/RTIambassadorFactory.h>
00017 #include <iostream>
00018 
00019 using namespace rti1516e;
00020 
00021 // An attributeUpdateEvent object encapsulates the contents of a 
00022 // reflectattributeupdates callback.  Note, that not all contents of the 
00023 // callback are stored, only those required for our specific application.
00024 
00025 // That information can then be stored and later retrieved to be processed.
00026 class attributeUpdateEvent
00027 {
00028 public:
00029     attributeUpdateEvent(
00030         AttributeHandleValueMap const & ahvps,
00031         VariableLengthData const & theUserSuppliedTag,
00032         const OrderType sentOrder,
00033         const TransportationType theType,
00034         LogicalTime const& fedTime,
00035         const SupplementalReflectInfo theReflectInfo );
00036     attributeUpdateEvent(
00037         AttributeHandleValueMap const & ahvps,
00038         VariableLengthData const & theUserSuppliedTag,
00039         const OrderType sentOrder,
00040         const TransportationType theType,
00041         const SupplementalReflectInfo theReflectInfo );
00042 
00043     ~attributeUpdateEvent();  
00044 
00045     const std::map<AttributeHandle, std::string>& getAhvps();
00046     const std::string& getFedTime();
00047 
00048     const std::string& getTag();
00049     MessageRetractionHandle getRetractionHandle();
00050 
00051     const SupplementalReflectInfo getReflectInfo();
00052 
00053 private:
00054 
00055     std::map<AttributeHandle, std::string> myAhvps;
00056     std::string myFedTime;  
00057     std::string myTag;
00058     MessageRetractionHandle myRetractionHandle;
00059     SupplementalReflectInfo myReflectInfo;
00060 
00061 };
00062 
00063 #endif // #define _ATTRIBUTE1516DEFINITION_
00064 

Document ID: Generated on Thu Jun 14 14:15:04 EDT 2012 from SVN revision 116116
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)