MAK RTIspy API Documentation for HLA 1516
netMapXmlBlock.h
Go to the documentation of this file.
00001 /*********************************************************************
00002  ** Copyright (c) 2006 MaK Technologies, Inc.
00003  ** All rights reserved.
00004  *********************************************************************/
00005 /*******************************************************************************
00006  ** $RCSfile: netMapXmlBlock.h,v $ $Revision: 1.4 $ $State: Exp $
00007  *******************************************************************************/
00008 #ifndef DtNetMapXmlBlock_H_
00009 #define DtNetMapXmlBlock_H_
00010 
00011 #include <rtiMsConfig.h>
00012 #include "spyXmlBlock.h"
00013 #include "netMapForwarderXmlBlock.h"
00014 #include <mtl/env.h>
00015 #include "webSpyUtils.h"
00016 
00017 #include <vlutil/vlString.h>
00018 #include <vlutil/vlFilename.h>
00019 #include <vlutil/vlSmartPointers.h>
00020 
00021 
00022 #include <iosfwd>
00023 #include <map>
00024 #include <vector>
00025 
00026 // Define the XML tags used by this block
00027 DtDECLARE_SPY_XML_TAG( DtNetMapXmlTag );
00028                       
00029 class DtNetMapXmlBlock;
00030 typedef DtBoost::shared_ptr<DtNetMapXmlBlock> DtNetMapXmlBlockSP;
00031 typedef DtBoost::weak_ptr<DtNetMapXmlBlock>   DtNetMapXmlBlockWP;
00032 
00033 
00034 // The DtNetMapXmlBlock holds a complete network map as known by a single forwarder
00035 // - this may be a partial map of the complete HLA network during the process of building
00036 //   a full map
00037 class DT_DLL_WWW DtNetMapXmlBlock : public DtSpyXmlBlock
00038 {
00039 public:
00040    typedef std::set< DtNetMapForwarderXmlBlockSP > NetMapForwarderXmlBlockSet;
00041 
00042    static DtSpyXmlBlockSP create( DtNodeAndParentPair xmlNodeAndParent );
00043 
00044 public:
00045    DtNetMapXmlBlock( DtEnvValueSP existingNode, DtEnvValueSP root );
00046    DtNetMapXmlBlock( DtEnvValueSP root );
00047    virtual ~DtNetMapXmlBlock();
00048 
00049    // Add a new forwarder as a child of this map
00050    // (convenience function to avoid creating child node and parenting it manually)
00051    virtual void addChildForwarder( DtNetMapForwarderXmlBlockSP forwarder );
00052    virtual DtNetMapForwarderXmlBlockSP addChildForwarder( const DtString& name, 
00053       unsigned long connId, const DtString& ip );
00054 
00055    // Get the list of child forwarders
00056    virtual NetMapForwarderXmlBlockSet childForwarders() const;
00057 
00058 
00059 };
00060 
00061 
00062 #endif // DtNetMapXmlBlock_H_
00063 

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)