exceptions.h
来自「tracciatore di mani con webcam」· C头文件 代码 · 共 45 行
H
45 行
#if !defined(__HVEXCEPTIONS_H__INCLUDED_)#define __HVEXCEPTIONS_H__INCLUDED_#include <string>using namespace std;#if defined(WIN32) && defined(GetMessage)#undef GetMessage#endifclass HVException {public: HVException(string msg); virtual ~HVException() {}; virtual string GetMessage() const; virtual ostream& output(ostream& os) const; friend ostream& operator<<(ostream& os, const HVException& ite); protected: string m_msg;};class HVEFile : public HVException { public: HVEFile(string filename, string msg); virtual ~HVEFile() {}; protected: string m_filename;};class HVEFileNotFound : public HVEFile { public: virtual ~HVEFileNotFound() {}; HVEFileNotFound(string filename);};#endif // __HVEXCEPTIONS_H__INCLUDED_
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?