L:/channel/cvm/include/CvmService.h

Go to the documentation of this file.
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_SERVICE_H_
00013 #define _CVM_SERVICE_H_
00014 
00015 #include "ace/Service_Object.h"
00016 #include <string>
00017 
00018 namespace cvm {
00020   class CvmService : public ACE_Service_Object {
00021   public:
00022     std::string name_;
00023     std::string name(void) { return name_; }
00024     CvmService () {
00025       name_ = rtrv_name ();
00026     }
00027   private:
00028     const ACE_TCHAR *rtrv_name (void); //can only be used after the channel is inited and added to svc_cfg
00029   };
00030 };
00031 
00032 #endif

Generated on Mon Feb 27 19:59:22 2006 for channel by  doxygen 1.4.6-NO