VR-Forces 4.0.4 Class Documentation
include/vrfobjcore/entityTargetInformation.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002 ** Copyright (c) 2004 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 *******************************************************************************/
00005 /*******************************************************************************
00006 ** $RCSfile: entityTargetInformation.h,v $ $Revision: 1.8 $ $State: Exp $
00007 *******************************************************************************/
00008 
00011 
00012 #ifndef DTENTITYTARGETINFORMATION_H_
00013 #define DTENTITYTARGETINFORMATION_H_
00014 
00015 #include "vrfutil/rdrWritr.h"
00016 #include "vrfutil/rwReal.h"
00017 #include "vrfutil/rwList.h"
00018 #include "vrfutil/rwString.h"
00019 #include <vl/hostStructs.h>
00020 #include "vrfutil/rwTemplatedList.h"
00021 
00022 #include <map>
00023 
00026 
00027 class DtReaderWriterRegistry;
00028 
00029 #include "vrfobjcore/vrfobjcoreDefines.h"
00030 class DT_DLL_vrfobjcore DtEntityTargetInformation : public DtReaderWriter
00031 {
00032 public:
00033    DtEntityTargetInformation();
00034    
00035    DtEntityTargetInformation(const DtString& name,
00036       DtReaderWriterRegistry* const parentRegistry = NULL);
00037    DtEntityTargetInformation(const DtSymbolString& name,
00038       DtReaderWriterRegistry* const parentRegistry = NULL);
00039 
00040    DtEntityTargetInformation(const DtEntityTargetInformation& target,
00041       DtReaderWriterRegistry* const parentRegistry = NULL);
00042 
00043    DtEntityTargetInformation(const DtEntityIdentifier& id,
00044       double timeOfDetection, const DtString& name = "entity-target-information",
00045       DtReaderWriterRegistry* const parentRegistry = NULL);
00046    DtEntityTargetInformation(const DtEntityIdentifier& id,
00047       double timeOfDetection, const DtSymbolString& name,
00048       DtReaderWriterRegistry* const parentRegistry = NULL);
00049 
00050    virtual ~DtEntityTargetInformation();
00051 
00052    DtEntityTargetInformation& operator=(const DtEntityTargetInformation& d);
00053 
00054    const DtEntityIdentifier& id() const { return myId; };
00055    void setId(const DtEntityIdentifier& id) { myId = id; };
00056 
00057    DtRwReal originalDetectionTime() const { return myOriginalTimeOfDetection; };
00058    void setOriginalDetectionTime(DtReal origTime) { myOriginalTimeOfDetection = origTime; };
00059 
00060    void setLastTimeOfDetection(double time) { myLastTimeOfDetection = time; };
00061    DtRwReal lastDetectionTime() const { return myLastTimeOfDetection; };
00062 
00063    const DtRwString& targetName() const { return myTargetName; };
00064    void setTargetName(const DtString& name) { myTargetName = name; };
00065 
00066 protected:
00067    DtRwString           myTargetName;
00068    DtEntityIdentifier   myId;
00069    DtRwReal             myOriginalTimeOfDetection;
00070    DtRwReal             myLastTimeOfDetection;
00071 };
00072 
00074 typedef DtRwTemplatedListPtr<DtEntityTargetInformation> DtEntityTargetList;
00075 
00077 typedef std::map<DtString, DtEntityTargetInformation> DtMappedEntityTargetList;
00078 
00079 #endif

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)