MAK RTIspy API Documentation for HLA Evolved
simpleTimeAttribute1516.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002 ** Copyright (c) 2006 MaK Technologies, Inc.
00003 ** All rights reserved.
00004 *******************************************************************************/
00005 /*******************************************************************************
00006 ** $RCSfile: simpleTimeAttribute1516.h,v $ $Revision: 1.1 $ $State: Exp $
00007 *******************************************************************************/
00008 #ifndef _ATTRIBUTE1516DEFINITION_
00009 #define _ATTRIBUTE1516DEFINITION_
00010 
00011 #ifdef DtIFSPEC1516
00012 
00013 // A simple container class for an attribute update event.
00014 
00015 #include <map>
00016 #include <string>
00017 #include <RTI/RTI1516.h>
00018 #include <RTI/RTIambassadorFactory.h>
00019 #include <iostream>
00020 
00021 using namespace rti1516;
00022 
00023 // An attributeUpdateEvent object encapsulates the contents of a 
00024 // reflectattributeupdates callback.  Note, that not all contents of the 
00025 // callback are stored, only those required for our specific application.
00026 
00027 // That information can then be stored and later retrieved to be processed.
00028 class attributeUpdateEvent
00029 {
00030  public:
00031   attributeUpdateEvent(
00032                 AttributeHandleValueMap const & ahvps,
00033                 VariableLengthData const & theUserSuppliedTag,
00034                 const OrderType sentOrder,
00035                 const TransportationType theType,
00036                 LogicalTime const& fedTime );
00037   attributeUpdateEvent(
00038                 AttributeHandleValueMap const & ahvps,
00039                 VariableLengthData const & theUserSuppliedTag,
00040                 const OrderType sentOrder,
00041                 const TransportationType theType );
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 private:
00052   
00053    std::map<AttributeHandle, std::string> myAhvps;
00054    std::string myFedTime;  
00055    std::string myTag;
00056    MessageRetractionHandle myRetractionHandle;
00057 
00058 };
00059 #endif // #ifdef DtIFSPEC1516
00060 
00061 #endif // #define _ATTRIBUTE1516DEFINITION_

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)