00001 00002 // Copyright (c) 2005, 2006 Yigong Liu 00003 // Permission to use, copy, modify, distribute and sell this software for any 00004 // purpose is hereby granted without fee, provided that the above copyright 00005 // notice appear in all copies and that both that copyright notice and this 00006 // permission notice appear in supporting documentation. 00007 // The author makes no representations about the 00008 // suitability of this software for any purpose. It is provided "as is" 00009 // without express or implied warranty. 00011 00012 #ifndef _CVM_H_ 00013 #define _CVM_H_ 00014 00015 #include <Channel.h> 00016 #include <CvmBase.h> 00017 #include <Cvm_export.h> 00018 #include <CvmStructConfig.h> //here we define channel configuations 00019 #include <Task_Msg.h> 00020 00021 using namespace channel; 00022 using namespace cvm; 00023 00024 namespace cvm { 00025 00028 class Cvm_Export CvmChannel : public CvmBase<channel::Channel<IdType> >::Channel { 00029 }; 00030 class Cvm_Export CvmUnixConnector : public CvmBase<channel::Channel<IdType> >::UnixConnector { 00031 }; 00032 class Cvm_Export CvmTcpConnector : public CvmBase<channel::Channel<IdType> >::TcpConnector { 00033 }; 00034 class Cvm_Export CvmTask : public CvmBase<channel::Channel<IdType> >::Task { 00035 public: 00036 typedef channel::Channel<IdType>::Msg Msg; 00037 typedef channel::Channel<IdType>::UnixSockConnector UnixSockConnector; 00038 typedef channel::Channel<IdType>::TcpSockConnector TcpSockConnector; 00039 }; 00040 00041 }; 00042 00043 #endif