![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /****************************************************************************** 00002 ** Copyright (c) 2010 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 ******************************************************************************/ 00005 /****************************************************************************** 00006 ** $RCSfile: DtChannelKeywordObject.h,v $ $Revision: 1.11 $ $State: Exp $ 00007 ******************************************************************************/ 00008 00012 00013 #pragma once 00014 00015 #include <vrvCore/vrvCore.h> 00016 #include <vrvUtil/DtVirtualBaseClass.h> 00017 00018 #include <string> 00019 00020 namespace makVrv 00021 { 00022 class DtDe; 00023 class DtChannelConfiguration; 00024 class DtWindowConfiguration; 00025 00028 class DT_DLL_VRVCORE DtChannelKeywordObject 00029 { 00030 public: 00031 00033 friend class DtChannelKeywordObjectCreator; 00034 friend class DtChannelKeywordObjectManager; 00035 00037 virtual ~DtChannelKeywordObject(); 00038 00039 protected: 00040 00044 virtual void channelNameChanged( const std::string& displayName, 00045 const std::string& windowName, const std::string& channelName ) = 0; 00046 00049 virtual void channelConfigurationChanged( 00050 const DtChannelConfiguration& config ) = 0; 00051 00054 virtual void windowConfigurationChanged( 00055 const DtWindowConfiguration& config ) = 0; 00056 00057 protected: 00058 00060 DtChannelKeywordObject(DtDe& de, const std::string& keyword, 00061 const std::string& displayName, const std::string& windowName, 00062 const DtChannelConfiguration& channelConfig ); 00063 00064 protected: 00065 00066 DtDe& myDe; 00067 }; 00068 00071 class DT_DLL_VRVCORE DtChannelKeywordObjectCreator : public DtVirtualBaseClass 00072 { 00073 public: 00074 00076 virtual ~DtChannelKeywordObjectCreator(); 00077 00079 virtual DtChannelKeywordObject* createChannelKeywordObject(DtDe& de, 00080 const std::string& displayName, const std::string& windowName, 00081 const DtChannelConfiguration& channelConfig ) = 0; 00082 00083 protected: 00084 00085 DtChannelKeywordObjectCreator(); 00086 00087 }; 00088 00089 } 00090 00091