![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /******************************************************************************* 00002 ** Copyright (c) 2006 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 *******************************************************************************/ 00005 /******************************************************************************* 00006 ** $RCSfile: ifCreateSelectionGroup.h,v $ $Revision: 1.2 $ $State: Exp $ 00007 *******************************************************************************/ 00008 00011 00012 #pragma once 00013 00014 #include <vrfExtProtocol/ifaceCont.h> 00015 #include <vrfutil/bufferSerialize.h> 00016 #include "bhaveMsgs/bhaveMsgsDefines.h" 00017 00018 namespace BHAVE 00019 { 00023 class DT_DLL_bhaveMsgs DtIfCreateSelectionGroup : public DtSimInterfaceContent 00024 { 00025 00026 public: 00027 00029 DtIfCreateSelectionGroup(); 00030 00032 DtIfCreateSelectionGroup(const DtIfCreateSelectionGroup & orig); 00033 00035 const DtIfCreateSelectionGroup & operator=(const DtIfCreateSelectionGroup & orig); 00036 00038 virtual ~DtIfCreateSelectionGroup(); 00039 00041 virtual int type() const; 00042 00044 virtual DtString groupName() const; 00045 00046 virtual void setGroupName(const DtString& name); 00047 00048 virtual void addEntity(const DtString& entityName); 00049 00050 virtual const std::vector<DtString> entities() const; 00052 00054 virtual DtSimInterfaceContent * clone() const; 00055 00057 virtual int netRepSize() const; 00058 00060 virtual bool setFromNet(const char* contentBuffer, unsigned contentSize); 00061 00063 virtual bool setToNet(); 00064 00066 virtual void printDataToString(DtString& str); 00067 00069 static DtSimInterfaceContent* creator(); 00070 00071 protected: 00072 00073 DtString myGroupName; 00074 std::vector<DtString> myEntityNames; 00075 }; 00076 00077 } 00078