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

📄 error.h

📁 good luck to everyone!
💻 H
字号:
/*----------------------------------------------------------------------------*/
/* Copyright (c) FIRST 2008. All Rights Reserved.							  */
/* Open Source Software - may be modified and shared by FRC teams. The code   */
/* must be accompanied by the FIRST BSD license file in $(WIND_BASE)/WPILib.  */
/*----------------------------------------------------------------------------*/

#ifndef _ERROR_H
#define _ERROR_H

#include "ChipObject/NiRio.h"
#include <VxWorks.h>
#include <string>
#include "Base.h"

//  Forward declarations
class ErrorBase;

/**
 * Error object represents a library error.
 */
class Error
{
public:
    typedef tRioStatusCode Code;

	Error();
	~Error();
	Code GetCode() const;
	const char *GetMessage() const;
	const char *GetFilename() const;
	UINT32 GetLineNumber() const;
    const ErrorBase* GetOriginatingObject() const;
	void Clear();
	void Set(Code code, const char* filename, UINT32 lineNumber, const ErrorBase* originatingObject);

private:
	Code m_code;
	std::string m_message;
    std::string m_filename;
	UINT32 m_lineNumber;
    const ErrorBase* m_originatingObject;
//TODO: Consider putting this back
//	DISALLOW_COPY_AND_ASSIGN(Error);
};

#endif

⌨️ 快捷键说明

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