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

📄 mpaexception.h

📁 获取mp3信息, Xing header, ID3 tag, APE tag, VBR header
💻 H
字号:
#pragma once

// exception class
class CMPAException
{
public:
	
	enum ErrorIDs
	{
		ErrOpenFile,
		ErrSetPosition,
		ErrReadFile,
		NoVBRHeader,
		IncompleteVBRHeader,
		NoFrameInTolerance,
		EndOfFile,
		HeaderCorrupt,
		FreeBitrate,
		IncompatibleHeader,
		CorruptLyricsTag,
		NumIDs			// this specifies the total number of possible IDs
	};

	CMPAException(ErrorIDs ErrorID, LPCTSTR szFile = NULL, LPCTSTR szFunction = NULL, bool bGetLastError=false);
	// copy constructor (necessary because of LPSTR members)
	CMPAException(const CMPAException& Source);
	virtual ~CMPAException(void);

	ErrorIDs GetErrorID() const { return m_ErrorID; };
	LPCTSTR GetErrorDescription();
	void ShowError();

private:
	ErrorIDs m_ErrorID;
	bool m_bGetLastError;
	LPTSTR m_szFunction;
	LPTSTR m_szFile;
	LPTSTR m_szErrorMsg;

	static LPCTSTR m_szErrors[CMPAException::NumIDs];
};

⌨️ 快捷键说明

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