自己用的C++编码规范

头文件结构

 

#ifndef COMMUNICATERHANDLLER_H
#define COMMUNICATERHANDLLER_H

#include "ace/Guard_T.h"
#include "ace/Singleton.h"

#ifndef COMMUNICATER_H
#include "Communicater.h"
#endif

class CommunicaterHandller
{
    typedef Communicater collect_service_type;

public:
    CommunicaterHandller(void);
    ~CommunicaterHandller(void);

private:
    ACE_RW_Thread_Mutex lock_;

};

typedef ACE_Singleton<CommunicaterHandller,ACE_RW_Thread_Mutex> COMMUNICATERHANDLLER;


#endif


 

posted @ 2017-04-18 09:47  yangykaifa  阅读(141)  评论(0编辑  收藏  举报