⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 errorbase.h

📁 Amis - A maximum entropy estimator 一个最大熵模型统计工具
💻 H
字号:
////////////////////////////////////////////////////////////////////////////  Copyright (c) 2000, Yusuke Miyao///  You may distribute under the terms of the Artistic License.//////  <id>$Id: ErrorBase.h,v 1.4 2003/05/11 18:12:09 yusuke Exp $</id>///  <collection>Maximum Entropy Estimator</collection>///  <name>ErrorBase.h</name>///  <overview>Base class for exception classes</overview>///  <desc>///  This file defines a base class for exception classes in///  this project.///  </desc>/////////////////////////////////////////////////////////////////////////#ifndef Amis_ErrorBase_h_#define Amis_ErrorBase_h_#include <amis/configure.h>#include <string>#include <iostream>AMIS_NAMESPACE_BEGIN///////////////////////////////////////////////////////////////////////// <classdef>/// <name>ErrorBase</name>/// <overview>Base class for exceptions</overview>/// <desc>/// The class is a base class for exception classes in this project./// </desc>/// <body>class ErrorBase {protected:  std::string m;  /// Error messagepublic:  ErrorBase() : m() {}  ErrorBase( const std::string& s ) { m = s; }  /// Initialize with an error message  ErrorBase( const char* s ) : m( s ) {}  /// Initialize with an error message  virtual ~ErrorBase() {}  virtual const std::string& message() const { return m; }  /// Get an error message};AMIS_NAMESPACE_END#endif

⌨️ 快捷键说明

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