jjzjj

GenericLoggerImpl

全部标签

c++ - 具有不可复制功能的接口(interface)

我正在尝试实现一个日志记录工厂,并且我使用了一个接口(interface),以便我可以随时交换记录器。这是界面classILogger{public://Onlyallowstringinput.TheentireARCisgoingtobenon-unicode.virtualvoidlog(std::stringmessage,eLogLevellevel=DEBUG)=0;protected:virtual~ILogger(void){};private://NoonecancreateanILoggerasitisabstractbutshouldalso//disallowc