MAK RTIspy API Documentation for HLA 1516
apiStatsXmlBlock.h
Go to the documentation of this file.
00001 /*********************************************************************
00002  ** Copyright (c) 2006 MaK Technologies, Inc.
00003  ** All rights reserved.
00004  *********************************************************************/
00005 /*******************************************************************************
00006  ** $RCSfile: apiStatsXmlBlock.h,v $ $Revision: 1.7 $ $State: Exp $
00007  *******************************************************************************/
00008 #ifndef DtApiStatsXmlBlock_H_
00009 #define DtApiStatsXmlBlock_H_
00010 
00011 #include "spyXmlBlock.h"
00012 #include <mtl/env.h>
00013 #include "statisticsXmlBlock.h"
00014 
00015 #include <vlutil/vlString.h>
00016 #include <vlutil/vlSmartPointers.h>
00017 
00018 // Define the XML tags used by this block
00019 DtDECLARE_SPY_XML_TAG( DtApiStatsXmlTag );
00020 DtDECLARE_SPY_XML_TAG( DtApiStatsIsRtiXmlTag );
00021 
00022 class DtApiStatsXmlBlock;
00023 typedef DtBoost::shared_ptr<DtApiStatsXmlBlock> DtApiStatsXmlBlockSP;
00024 typedef DtBoost::weak_ptr<DtApiStatsXmlBlock>   DtApiStatsXmlBlockWP;
00025 
00027 class DtApiStatsXmlBlock : public DtStatisticsXmlBlock<double>
00028 {
00029 public:
00030 
00031    // Creator method
00032    static DtSpyXmlBlockSP create( DtNodeAndParentPair xmlNodeAndParent );
00033 
00034 public:
00035    
00036    // Ctor to build from XML data
00037    DtApiStatsXmlBlock( MAKRti::DtEnvValueSP existingNode, MAKRti::DtEnvValueSP root );
00038 
00039    // Ctor to build from C++ data
00040    DtApiStatsXmlBlock( const MAKRti::DtString& apiMethodName, bool isRtiApi, MAKRti::DtEnvValueSP root );
00041    virtual ~DtApiStatsXmlBlock();
00042 
00043    inline bool isRtiAmbApi() const;
00044 
00045 protected:
00046    
00047    DtSpyXmlBlockElement< bool, true > myIsRtiApi;
00048 };
00049 
00050 inline bool DtApiStatsXmlBlock::isRtiAmbApi() const { return myIsRtiApi; }
00051 
00052 #endif // DtApiStatsXmlBlock_H_
00053 

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)