VR-Forces 4.0.4 Class Documentation
include/vrfmsgs/ifSensorData.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002 ** Copyright (c) 2005 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 *******************************************************************************/
00005 /*******************************************************************************
00006 ** $RCSfile: ifSensorData.h,v $ $Revision: 1.8 $ $State: Exp $
00007 *******************************************************************************/
00008 
00011 
00017 
00018 
00019 #ifndef ifSensorData_H_
00020 #define ifSensorData_H_
00021 
00022 #include <vlutil/vlString.h>
00023 #include <vrfExtProtocol/ifaceCont.h>
00024 #include <vlutil/vlNetTypes.h>
00025 #include <vl/hostStructs.h>
00026 #include "vrfmsgs/sensorDataEntry.h"
00027    
00028 struct DtNetIfSensorData
00029 {
00030    DtNetU32               mySensorType;                
00031    DtNetU32               myNumSensorEntries;          
00032 };
00033 
00034 
00040 #include "vrfmsgs/vrfmsgsDefines.h"
00041 class DT_DLL_vrfmsgs DtIfSensorData : public DtSimInterfaceContent
00042 {
00043 
00044 public:
00046    DtIfSensorData();
00047 
00049    DtIfSensorData(const DtIfSensorData & orig);
00050 
00052    const DtIfSensorData & operator=(const DtIfSensorData & orig);
00053 
00054    virtual ~DtIfSensorData();
00055 
00056    virtual int type() const;
00057 
00058    virtual DtSimInterfaceContent * clone() const;
00059 
00062    virtual void setSensorType(int type);
00063    virtual int sensorType() const;
00064 
00065    virtual void setSourceEntityName(const DtString& entityName);
00066    virtual DtString sourceEntityName() const;
00067 
00068    virtual void setSensorName(const DtString& sensorName);
00069    virtual DtString sensorName() const;
00070 
00071    virtual const DtSensorDataEntryList& sensorDataEntryList() const;
00072    virtual DtSensorDataEntryList& sensorDataEntryList();
00073 
00074    virtual int netRepSize() const;
00075 
00076    virtual bool setFromNet(const char* contentBuffer, 
00077       unsigned contentSize);
00078 
00079    virtual bool setToNet();
00080 
00082    virtual void printDataToString(DtString& str);
00083 
00084    static DtSimInterfaceContent* creator();
00085 
00086 protected:
00087    DtU32 mySensorType;
00088    DtString mySourceEntityName;
00089    DtString mySensorName;
00090    DtSensorDataEntryList mySensorDataEntryList;
00091 };
00092 
00093 #endif
00094 

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)