errormsg.hpp

来自「一个开放源代码的AVR单片机编程器」· HPP 代码 · 共 50 行

HPP
50
字号
/*****************************************************************************
 *
 * Atmel Corporation
 *
 * File              : ErrorMsg.hpp
 * Compiler          : Dev-C++ 4.9.8.0 - http://bloodshed.net/dev/
 * Revision          : $Revision: 3.0 $
 * Date              : $Date: Tuesday, January 17, 2006 18:33:56 UTC $
 * Updated by        : $Author: raapeland $
 *
 * Support mail      : avr@atmel.com
 *
 * Target platform   : Win32
 *
 * AppNote           : AVR911 - AVR Open-source Programmer
 *
 * Description       : A class providing a container for general error messages. This
 *                     class can be thrown as an exception.
 *
 * 
 ****************************************************************************/
#ifndef ERRORMSG_HPP
#define ERRORMSG_HPP

using namespace std;

#include <stdlib.h>
#include <iostream>
#include <string>


class ErrorMsg
{
	protected:
		string message; // Contains the error message.

	public:
		// Constructors taking the string as parameter.
		ErrorMsg( const string & _message );

		// Destructor
		~ErrorMsg();

		// Function returning the error msg.
		virtual const string & What();
};

#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?