In This Topic
#ifndef _MusicStoreLib_MusicStoreLib_CError_h
#define _MusicStoreLib_MusicStoreLib_CError_h
namespace MusicStoreLib { class CClassFactory; };
namespace MusicStoreLib
{
class MusicStoreLib_DLL CError : public CInstanceMonitor
, public virtual MusicStoreLib::CXmlCommonBase
{
public:
static MusicStoreLib::CErrorPtr CreateInstance(LPCTSTR lpctElementName=_T("Error"));
protected:
CError(LPCTSTR lpctElementName=_T("Error"));
virtual ~CError();
friend class MusicStoreLib::CClassFactory;
virtual void Init();
virtual void AccessProperty(int iPropertyIndex, bool read, LtXmlLib20::LtVariant& rValue);
virtual LtXmlLib20Data::CParentElementInfo* GetClassInfo() const;
virtual LtXmlLib20Data::CElementInfo** GetClassElementInfo() const;
virtual LtXmlLib20Data::CAttributeInfo** GetClassAttributeInfo() const;
static void CleanMetaData();
void Cleanup();
virtual void OnEvent(LtXmlLib20::CXmlObjectBase* pMsgSource, LtXmlLib20::IEventSink::MsgType eMsgType, void* pData);
public:
LONG GetErrorCode() const;
void SetErrorCode(LONG val);
protected:
LONG m_ErrorCode;
public:
std::tstring GetErrorDescription() const;
void SetErrorDescription(std::tstring val);
protected:
std::tstring m_ErrorDescription;
public:
std::tstring GetHelpFile() const;
void SetHelpFile(std::tstring val);
bool IsValidHelpFile() const;
void SetValidHelpFile(bool val);
protected:
bool m_IsValidHelpFile;
std::tstring m_HelpFile;
public:
virtual MusicStoreLib::CErrorPtr Clone() const;
virtual std::tstring GetTargetNamespace() const;
virtual std::tstring GetNamespace() const;
virtual LtXmlLib20::CXmlObjectBase* GetBase();
// Internal data for XML serialization
private:
static LtXmlLib20Data::CParentElementInfo* ms_pParentElementInfo;
static LtXmlLib20Data::CElementInfo** ms_ppElementInfo;
static LtXmlLib20Data::CAttributeInfo** ms_ppAttributeInfo;
};
};
#endif