VR-Link API Documentation for HLA 1516
hGridDataPub.h
Go to the documentation of this file.
00001 /*********************************************************************
00002 ** Copyright (c) 1992-2010 VT MAK
00003 ** All rights reserved.
00004 *********************************************************************/
00005 
00006  
00007 #if DtHLA
00008    
00009 #ifndef hGridDataPub_H_
00010 #define hGridDataPub_H_
00011   
00012 #include "hObjPub.h"
00013 #include "gridDataSR.h"
00014 #include "exerciseConn.h"
00015 #include "fom.h"
00016 
00020     
00021 
00028 
00029 class DT_DLL_VL DtGriddedDataPublisher : public DtObjectPublisher
00030 {
00031 public:
00032 
00034    typedef DtGriddedDataRepository* (*DtStateRepCreator)();
00035 
00036 public:
00037 
00039    DtGriddedDataPublisher(
00040       DtGriddedDataRepository *stateRepToUse,
00041       DtExerciseConn* conn, 
00042       const char* name = 0,
00043       const DtDDMRegionSet* regionSetToUse = 0);
00044 
00046    DtGriddedDataPublisher(
00047       RTI::ObjectClassHandle h,
00048       DtExerciseConn* conn, 
00049       const char* name = 0,
00050       const DtDDMRegionSet* regionSetToUse = 0);
00051          
00053    DtGriddedDataPublisher(
00054       DtExerciseConn* conn, 
00055       const char* name = 0,
00056       const DtDDMRegionSet* regionSetToUse = 0);
00057    
00058          
00059    virtual ~DtGriddedDataPublisher();
00060 
00063    virtual DtGriddedDataRepository* gridDataStateRep();
00064          
00066    virtual DtGriddedDataRepository* gdsr();
00067            
00070    virtual const char* classToUse() const;
00071                    
00072 public:
00073          
00075    static DtStateRepCreator setStateRepCreator(DtStateRepCreator creator);
00076                       
00077 protected:
00078             
00080    DtGriddedDataPublisher(const DtGriddedDataPublisher& orig);
00081                       
00083    DtGriddedDataPublisher& operator=(const DtGriddedDataPublisher& orig);
00084                             
00085 protected:
00086    static DtStateRepCreator theStateRepCreator;
00087 };
00088                                
00089 inline DtGriddedDataRepository* DtGriddedDataPublisher::gridDataStateRep()
00090 {
00091     return (DtGriddedDataRepository*) myStateRep;
00092 }
00093 
00094 inline DtGriddedDataRepository* DtGriddedDataPublisher::gdsr()
00095 {
00096    return (DtGriddedDataRepository*) myStateRep;
00097 }
00098 
00099 #endif   //DtGriddedDataPublisher_H_
00100 #endif   //DtHLA
00101 

Document ID: Generated on Mon May 14 08:06:18 EDT 2012 from SVN revision 114750
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)