home *** CD-ROM | disk | FTP | other *** search
- ////////////////////////////////////////////////////////////////////////
- //
- // SchemaTypes.h
- //
- // This file was generated by XMLSPY 5 Enterprise Edition.
- //
- // YOU SHOULD NOT MODIFY THIS FILE, BECAUSE IT WILL BE
- // OVERWRITTEN WHEN YOU RE-RUN CODE GENERATION.
- //
- // Refer to the XMLSPY Documentation for further details.
- // http://www.altova.com/xmlspy
- //
- ////////////////////////////////////////////////////////////////////////
-
-
- #ifndef ALTOVA_SCHEMATYPES_H_INCLUDED
- #define ALTOVA_SCHEMATYPES_H_INCLUDED
-
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
-
- namespace altova {
-
-
- #ifndef _USRDLL
- #define ALTOVA_DECLSPECIFIER
- #else
- #ifdef ALTOVA_EXPORTS
- #define ALTOVA_DECLSPECIFIER __declspec(dllexport)
- #define ALTOVA_EXPIMP_TEMPLATE
- #else
- #define ALTOVA_DECLSPECIFIER __declspec(dllimport)
- #define ALTOVA_EXPIMP_TEMPLATE extern
- #endif
-
- #ifndef _MFC_VER
- #pragma warning(disable: 4660)
- #pragma warning(disable: 4231)
- #pragma warning(disable: 4251)
- ALTOVA_EXPIMP_TEMPLATE template class ALTOVA_DECLSPECIFIER std::basic_string<char>;
- ALTOVA_EXPIMP_TEMPLATE template class ALTOVA_DECLSPECIFIER std::basic_istream<char>;
- ALTOVA_EXPIMP_TEMPLATE template class ALTOVA_DECLSPECIFIER std::basic_ostream<char>;
- ALTOVA_EXPIMP_TEMPLATE template class ALTOVA_DECLSPECIFIER std::basic_string<wchar_t>;
- ALTOVA_EXPIMP_TEMPLATE template class ALTOVA_DECLSPECIFIER std::basic_istream<wchar_t>;
- ALTOVA_EXPIMP_TEMPLATE template class ALTOVA_DECLSPECIFIER std::basic_ostream<wchar_t>;
- #endif
- #endif
-
-
- #if defined(UNICODE) || defined(_UNICODE)
- #define tstring std::wstring
- #define tcin std::wcin
- #define tcout std::wcout
- #define tcerr std::wcerr
- #define tclog std::wclog
- #define tostream std::wostream
- #else
- #define tstring std::string
- #define tcin std::cin
- #define tcout std::cout
- #define tcerr std::cerr
- #define tclog std::clog
- #define tostream std::ostream
- #endif
-
-
- #ifdef _XERCES_VERSION
-
- #if defined(UNICODE) || defined(_UNICODE)
- #define XC2TS(x) x
- #else
- #define XC2TS(x) StrX(x).localForm()
- #endif
-
- class XStr
- {
- public:
- XStr(const char* const toTranscode) { m_bClone = true; fUnicodeForm = xercesc::XMLString::transcode(toTranscode); }
- XStr(const std::string& toTranscode) { m_bClone = true; fUnicodeForm = xercesc::XMLString::transcode(toTranscode.c_str()); }
- XStr(const wchar_t* const toTranscode) { m_bClone = false; fUnicodeForm = (XMLCh*)toTranscode; }
- XStr(const std::wstring& toTranscode) { m_bClone = false; fUnicodeForm = (XMLCh*)(toTranscode.c_str()); }
- ~XStr() { if (m_bClone && fUnicodeForm) xercesc::XMLString::release(&fUnicodeForm); }
- const XMLCh* unicodeForm() const { return fUnicodeForm; }
- protected:
- bool m_bClone;
- XMLCh* fUnicodeForm;
- };
-
- #define X(str) XStr(str).unicodeForm()
-
- class StrX
- {
- public:
- StrX(const XMLCh* const toTranscode) { fLocalForm = xercesc::XMLString::transcode(toTranscode); }
- ~StrX() { xercesc::XMLString::release(&fLocalForm); }
- const char* localForm() const { return fLocalForm; }
- protected:
- char* fLocalForm;
- };
-
- #endif
- #ifdef _MFC_VER
- inline tostream& operator<<(tostream& out, const CString& sText)
- {
- return tcout << (LPCTSTR)sText;
- }
- #endif // _MFC_VER
-
-
- ////////////////////////////////////////////////////////////////////////
- //
- // CSchemaType
- //
- ////////////////////////////////////////////////////////////////////////
-
-
- class ALTOVA_DECLSPECIFIER CSchemaType
- {
- public:
- virtual operator tstring() const = 0;
- [if $mfc]
- virtual operator CString() { return operator tstring().c_str(); }
- [endif]
-
- enum {
- WHITESPACE_PRESERVE,
- WHITESPACE_REPLACE,
- WHITESPACE_COLLAPSE
- };
- };
-
-
- inline tostream& operator<<(tostream& os, CSchemaType& t)
- {
- return os << ((tstring)t).c_str();
- }
-
-
- ////////////////////////////////////////////////////////////////////////
- //
- // CSchemaBoolean
- //
- ////////////////////////////////////////////////////////////////////////
-
-
- class ALTOVA_DECLSPECIFIER CSchemaBoolean : public CSchemaType
- {
- public:
- CSchemaBoolean(bool fValue);
- CSchemaBoolean(const TCHAR* szValue);
- virtual operator bool() const;
- virtual operator tstring() const;
-
- typedef bool basetype;
-
- protected:
- bool m_Value;
- };
-
-
- ////////////////////////////////////////////////////////////////////////
- //
- // CSchemaFloat (32bit floating point number)
- //
- ////////////////////////////////////////////////////////////////////////
-
-
- class ALTOVA_DECLSPECIFIER CSchemaFloat : public CSchemaType
- {
- public:
- CSchemaFloat(float fValue);
- CSchemaFloat(const TCHAR* szValue);
- virtual operator float() const;
- virtual operator tstring() const;
-
- typedef float basetype;
-
- protected:
- float m_Value;
- };
-
-
- ////////////////////////////////////////////////////////////////////////
- //
- // CSchemaDouble (64bit floating point number)
- //
- ////////////////////////////////////////////////////////////////////////
-
-
- class ALTOVA_DECLSPECIFIER CSchemaDouble : public CSchemaType
- {
- public:
- CSchemaDouble(double fValue);
- CSchemaDouble(const TCHAR* szValue);
- virtual operator double() const;
- virtual operator tstring() const;
-
- typedef double basetype;
-
- protected:
- double m_Value;
- };
-
-
- ////////////////////////////////////////////////////////////////////////
- //
- // CSchemaDecimal
- //
- ////////////////////////////////////////////////////////////////////////
-
-
- class ALTOVA_DECLSPECIFIER CSchemaDecimal : public CSchemaType
- {
- public:
- CSchemaDecimal(double fValue);
- CSchemaDecimal(const TCHAR* szValue);
- virtual operator double() const;
- virtual operator tstring() const;
-
- typedef double basetype;
-
- protected:
- double m_Value;
- };
-
-
- ////////////////////////////////////////////////////////////////////////
- //
- // CSchemaLong (signed 64bit integer)
- //
- ////////////////////////////////////////////////////////////////////////
-
-
- class ALTOVA_DECLSPECIFIER CSchemaLong : public CSchemaType
- {
- public:
- CSchemaLong(__int64 nValue);
- CSchemaLong(const TCHAR* szValue);
- virtual operator __int64() const;
- virtual operator tstring() const;
-
- typedef __int64 basetype;
-
- protected:
- __int64 m_Value;
- };
-
-
- ////////////////////////////////////////////////////////////////////////
- //
- // CSchemaUnsignedLong (unsigned 64bit integer)
- //
- ////////////////////////////////////////////////////////////////////////
-
-
- class ALTOVA_DECLSPECIFIER CSchemaUnsignedLong : public CSchemaType
- {
- public:
- CSchemaUnsignedLong(unsigned __int64 nValue);
- CSchemaUnsignedLong(const TCHAR* szValue);
- virtual operator unsigned __int64() const;
- virtual operator tstring() const;
-
- typedef unsigned __int64 basetype;
-
- protected:
- unsigned __int64 m_Value;
- };
-
-
- ////////////////////////////////////////////////////////////////////////
- //
- // CSchemaInt (signed 32bit integer)
- //
- ////////////////////////////////////////////////////////////////////////
-
-
- class ALTOVA_DECLSPECIFIER CSchemaInt : public CSchemaType
- {
- public:
- CSchemaInt(long nValue);
- CSchemaInt(const TCHAR* szValue);
- virtual operator long() const;
- virtual operator tstring() const;
-
- typedef long basetype;
-
- protected:
- long m_Value;
- };
-
-
- ////////////////////////////////////////////////////////////////////////
- //
- // CSchemaUnsignedInt (unsigned 32bit integer)
- //
- ////////////////////////////////////////////////////////////////////////
-
-
- class ALTOVA_DECLSPECIFIER CSchemaUnsignedInt : public CSchemaType
- {
- public:
- CSchemaUnsignedInt(unsigned long nValue);
- CSchemaUnsignedInt(const TCHAR* szValue);
- virtual operator unsigned long() const;
- virtual operator tstring() const;
-
- typedef unsigned long basetype;
-
- protected:
- unsigned long m_Value;
- };
-
-
- ////////////////////////////////////////////////////////////////////////
- //
- // CSchemaShort (signed 16bit integer)
- //
- ////////////////////////////////////////////////////////////////////////
-
-
- class ALTOVA_DECLSPECIFIER CSchemaShort : public CSchemaType
- {
- public:
- CSchemaShort(short nValue);
- CSchemaShort(const TCHAR* szValue);
- virtual operator short() const;
- virtual operator tstring() const;
-
- typedef short basetype;
-
- protected:
- short m_Value;
- };
-
-
- ////////////////////////////////////////////////////////////////////////
- //
- // CSchemaUnsignedShort (unsigned 16bit integer)
- //
- ////////////////////////////////////////////////////////////////////////
-
-
- class ALTOVA_DECLSPECIFIER CSchemaUnsignedShort : public CSchemaType
- {
- public:
- CSchemaUnsignedShort(unsigned short nValue);
- CSchemaUnsignedShort(const TCHAR* szValue);
- virtual operator unsigned short() const;
- virtual operator tstring() const;
-
- typedef unsigned short basetype;
-
- protected:
- unsigned short m_Value;
- };
-
-
- ////////////////////////////////////////////////////////////////////////
- //
- // CSchemaByte (signed 8bit integer)
- //
- ////////////////////////////////////////////////////////////////////////
-
-
- class ALTOVA_DECLSPECIFIER CSchemaByte : public CSchemaType
- {
- public:
- CSchemaByte(char nValue);
- CSchemaByte(const TCHAR* szValue);
- virtual operator char() const;
- virtual operator tstring() const;
-
- typedef char basetype;
-
- protected:
- char m_Value;
- };
-
-
- ////////////////////////////////////////////////////////////////////////
- //
- // CSchemaUnsignedByte (unsigned 8bit integer)
- //
- ////////////////////////////////////////////////////////////////////////
-
-
- class ALTOVA_DECLSPECIFIER CSchemaUnsignedByte : public CSchemaType
- {
- public:
- CSchemaUnsignedByte(unsigned char nValue);
- CSchemaUnsignedByte(const TCHAR* szValue);
- virtual operator unsigned char() const;
- virtual operator tstring() const;
-
- typedef unsigned char basetype;
-
- protected:
- unsigned char m_Value;
- };
-
-
- ////////////////////////////////////////////////////////////////////////
- //
- // CSchemaInteger
- // CSchemaNegativeInteger
- // CSchemaNonNegativeInteger
- // CSchemaPositiveInteger
- // CSchemaNonPositiveInteger
- //
- ////////////////////////////////////////////////////////////////////////
-
-
- typedef CSchemaLong CSchemaInteger;
- typedef CSchemaInteger CSchemaNegativeInteger;
- typedef CSchemaInteger CSchemaNonNegativeInteger;
- typedef CSchemaInteger CSchemaPositiveInteger;
- typedef CSchemaInteger CSchemaNonPositiveInteger;
-
-
- ////////////////////////////////////////////////////////////////////////
- //
- // CSchemaString family
- //
- ////////////////////////////////////////////////////////////////////////
-
-
- class ALTOVA_DECLSPECIFIER CSchemaString : public CSchemaType
- {
- public:
- CSchemaString(tstring sValue);
- CSchemaString(const TCHAR* szValue);
- virtual operator tstring() const;
-
- typedef const TCHAR* basetype;
-
- protected:
- tstring m_Value;
- };
-
-
- typedef CSchemaString CSchemaNormalizedString;
- typedef CSchemaString CSchemaToken;
- typedef CSchemaString CSchemaLanguage;
- typedef CSchemaString CSchemaName;
- typedef CSchemaString CSchemaNMToken;
- typedef CSchemaString CSchemaNMTokens;
- typedef CSchemaString CSchemaNCName;
- typedef CSchemaString CSchemaID;
- typedef CSchemaString CSchemaIDRef;
- typedef CSchemaString CSchemaIDRefs;
- typedef CSchemaString CSchemaEntity;
- typedef CSchemaString CSchemaEntities;
- typedef CSchemaString CSchemaAnyURI;
- typedef CSchemaString CSchemaQName;
- typedef CSchemaString CSchemaNotation;
-
-
- ////////////////////////////////////////////////////////////////////////
- //
- // CSchemaDuration
- //
- ////////////////////////////////////////////////////////////////////////
-
-
- class ALTOVA_DECLSPECIFIER CSchemaDuration : public CSchemaType
- {
- public:
- CSchemaDuration(bool bPositive, int nYear, int nMonth, int nDay, int nHour, int nMinute, double dSecond);
- CSchemaDuration(const TCHAR* szValue);
- virtual operator tstring() const;
-
- bool IsPositive() const;
- int GetYear() const;
- int GetMonth() const;
- int GetDay() const;
- int GetHour() const;
- int GetMinute() const;
- double GetSecond() const;
-
- void SetPositive(bool bPositive);
- void SetYear(int nYear);
- void SetMonth(int nMonth);
- void SetDay(int nDay);
- void SetHour(int nHour);
- void SetMinute(int nMinute);
- void SetSecond(double dSecond);
-
- friend CSchemaDuration operator+(const CSchemaDuration& dur1, const CSchemaDuration& dur2);
-
- typedef const TCHAR* basetype;
-
- protected:
- void Parse(const TCHAR* szValue);
-
- bool m_bPositive;
- int m_nYear;
- int m_nMonth;
- int m_nDay;
- int m_nHour;
- int m_nMinute;
- double m_dSecond;
- };
-
-
- ////////////////////////////////////////////////////////////////////////
- //
- // CSchemaDateTimeBase
- //
- ////////////////////////////////////////////////////////////////////////
-
-
- class ALTOVA_DECLSPECIFIER CSchemaDateTimeBase : public CSchemaType
- {
- public:
- CSchemaDateTimeBase();
- CSchemaDateTimeBase(bool bUTC);
- CSchemaDateTimeBase(int nOffset);
-
- bool HasTimezone() const;
- int GetTimezoneMode() const;
- int GetOffset() const;
-
- void SetTimezoneMode(int nTZMode);
- void SetOffset(int nOffset);
-
- enum
- {
- TZ_UTC,
- TZ_Offset,
- TZ_Missing
- };
-
- protected:
- static int WriteTime(TCHAR* szTarget, int nHour, int nMinute, double dSecond);
-
- void ParseTZ(const TCHAR* szValue);
- void WriteTZ(TCHAR* szTarget) const;
-
- int m_nTZMode;
- int m_nOffset;
- };
-
-
- ////////////////////////////////////////////////////////////////////////
- //
- // CSchemaDate
- //
- ////////////////////////////////////////////////////////////////////////
-
-
- class ALTOVA_DECLSPECIFIER CSchemaDate : public CSchemaDateTimeBase
- {
- public:
- CSchemaDate(int nYear, int nMonth, int nDay, bool bUTC = false);
- CSchemaDate(int nYear, int nMonth, int nDay, int nOffset);
- CSchemaDate(const TCHAR* szValue);
- virtual operator tstring() const;
-
- int GetYear() const;
- int GetMonth() const;
- int GetDay() const;
-
- void SetYear(int nYear);
- void SetMonth(int nMonth);
- void SetDay(int nDay);
-
- friend bool operator==(const CSchemaDate& t1, const CSchemaDate& t2);
- friend bool operator< (const CSchemaDate& t1, const CSchemaDate& t2);
- friend bool operator!=(const CSchemaDate& t1, const CSchemaDate& t2);
- friend bool operator<=(const CSchemaDate& t1, const CSchemaDate& t2);
- friend bool operator> (const CSchemaDate& t1, const CSchemaDate& t2);
- friend bool operator>=(const CSchemaDate& t1, const CSchemaDate& t2);
-
- friend CSchemaDate operator+(const CSchemaDate& t, const CSchemaDuration& dur);
- friend CSchemaDuration operator-(const CSchemaDate& t1, const CSchemaDate& t2);
-
- typedef const TCHAR* basetype;
-
- protected:
- void Parse(const TCHAR* szValue);
-
- int m_nYear;
- int m_nMonth;
- int m_nDay;
- };
-
-
- ////////////////////////////////////////////////////////////////////////
- //
- // CSchemaTime
- //
- ////////////////////////////////////////////////////////////////////////
-
-
- class ALTOVA_DECLSPECIFIER CSchemaTime : public CSchemaDateTimeBase
- {
- public:
- CSchemaTime(int nHour, int nMinute, double dSecond, bool bUTC = false);
- CSchemaTime(int nHour, int nMinute, double dSecond, int nOffset);
- CSchemaTime(const TCHAR* szValue);
- virtual operator tstring() const;
-
- int GetHour() const;
- int GetMinute() const;
- double GetSecond() const;
-
- void SetHour(int nHour);
- void SetMinute(int nMinute);
- void SetSecond(double dSecond);
-
- friend bool operator==(const CSchemaTime& t1, const CSchemaTime& t2);
- friend bool operator< (const CSchemaTime& t1, const CSchemaTime& t2);
- friend bool operator!=(const CSchemaTime& t1, const CSchemaTime& t2);
- friend bool operator<=(const CSchemaTime& t1, const CSchemaTime& t2);
- friend bool operator> (const CSchemaTime& t1, const CSchemaTime& t2);
- friend bool operator>=(const CSchemaTime& t1, const CSchemaTime& t2);
-
- friend CSchemaTime operator+(const CSchemaTime& t, const CSchemaDuration& dur);
- friend CSchemaDuration operator-(const CSchemaTime& t1, const CSchemaTime& t2);
-
- typedef const TCHAR* basetype;
-
- protected:
- void Parse(const TCHAR* szValue);
- double NormalizedSeconds() const;
-
- int m_nHour;
- int m_nMinute;
- double m_dSecond;
- };
-
-
- ////////////////////////////////////////////////////////////////////////
- //
- // CSchemaDateTime
- //
- ////////////////////////////////////////////////////////////////////////
-
-
- class ALTOVA_DECLSPECIFIER CSchemaDateTime : public CSchemaDateTimeBase
- {
- public:
- CSchemaDateTime(int nYear, int nMonth, int nDay, int nHour, int nMinute, double dSecond, bool bUTC = false);
- CSchemaDateTime(int nYear, int nMonth, int nDay, int nHour, int nMinute, double dSecond, int nOffset);
- CSchemaDateTime(const TCHAR* szValue);
- virtual operator tstring() const;
-
- int GetYear() const;
- int GetMonth() const;
- int GetDay() const;
- int GetHour() const;
- int GetMinute() const;
- double GetSecond() const;
-
- void SetYear(int nYear);
- void SetMonth(int nMonth);
- void SetDay(int nDay);
- void SetHour(int nHour);
- void SetMinute(int nMinute);
- void SetSecond(double dSecond);
-
- friend bool operator==(const CSchemaDateTime& t1, const CSchemaDateTime& t2);
- friend bool operator< (const CSchemaDateTime& t1, const CSchemaDateTime& t2);
- friend bool operator!=(const CSchemaDateTime& t1, const CSchemaDateTime& t2);
- friend bool operator<=(const CSchemaDateTime& t1, const CSchemaDateTime& t2);
- friend bool operator> (const CSchemaDateTime& t1, const CSchemaDateTime& t2);
- friend bool operator>=(const CSchemaDateTime& t1, const CSchemaDateTime& t2);
-
- friend CSchemaDateTime operator+(const CSchemaDateTime& t, const CSchemaDuration& dur);
- friend CSchemaDuration operator-(const CSchemaDateTime& t1, const CSchemaDateTime& t2);
-
- typedef const TCHAR* basetype;
-
- protected:
- void Parse(const TCHAR* szValue);
-
- int m_nYear;
- int m_nMonth;
- int m_nDay;
-
- int m_nHour;
- int m_nMinute;
- double m_dSecond;
- };
-
-
- ////////////////////////////////////////////////////////////////////////
- //
- // CSchemaYear
- //
- ////////////////////////////////////////////////////////////////////////
-
-
- class ALTOVA_DECLSPECIFIER CSchemaYear : public CSchemaDateTimeBase
- {
- public:
- CSchemaYear(int nYear, bool bUTC = false);
- CSchemaYear(int nYear, int nOffset);
- CSchemaYear(const TCHAR* szValue);
- virtual operator tstring() const;
-
- int GetYear() const;
-
- void SetYear(int nYear);
-
- typedef const TCHAR* basetype;
-
- protected:
- void Parse(const TCHAR* szValue);
-
- int m_nYear;
- };
-
-
- ////////////////////////////////////////////////////////////////////////
- //
- // CSchemaYearMonth
- //
- ////////////////////////////////////////////////////////////////////////
-
-
- class ALTOVA_DECLSPECIFIER CSchemaYearMonth : public CSchemaDateTimeBase
- {
- public:
- CSchemaYearMonth(int nYear, int nMonth, bool bUTC = false);
- CSchemaYearMonth(int nYear, int nMonth, int nOffset);
- CSchemaYearMonth(const TCHAR* szValue);
- virtual operator tstring() const;
-
- int GetYear() const;
- int GetMonth() const;
-
- void SetYear(int nYear);
- void SetMonth(int nMonth);
-
- typedef const TCHAR* basetype;
-
- protected:
- void Parse(const TCHAR* szValue);
-
- int m_nYear;
- int m_nMonth;
- };
-
-
- ////////////////////////////////////////////////////////////////////////
- //
- // CSchemaMonth
- //
- ////////////////////////////////////////////////////////////////////////
-
-
- class ALTOVA_DECLSPECIFIER CSchemaMonth : public CSchemaDateTimeBase
- {
- public:
- CSchemaMonth(int nMonth, bool bUTC = false);
- CSchemaMonth(int nMonth, int nOffset);
- CSchemaMonth(const TCHAR* szValue);
- virtual operator tstring() const;
-
- int GetMonth() const;
-
- void SetMonth(int nMonth);
-
- typedef const TCHAR* basetype;
-
- protected:
- void Parse(const TCHAR* szValue);
-
- int m_nMonth;
- };
-
-
- ////////////////////////////////////////////////////////////////////////
- //
- // CSchemaMonthDay
- //
- ////////////////////////////////////////////////////////////////////////
-
-
- class ALTOVA_DECLSPECIFIER CSchemaMonthDay : public CSchemaDateTimeBase
- {
- public:
- CSchemaMonthDay(int nMonth, int nDay, bool bUTC = false);
- CSchemaMonthDay(int nMonth, int nDay, int nOffset);
- CSchemaMonthDay(const TCHAR* szValue);
- virtual operator tstring() const;
-
- int GetMonth() const;
- int GetDay() const;
-
- void SetMonth(int nMonth);
- void SetDay(int nYear);
-
- typedef const TCHAR* basetype;
-
- protected:
- void Parse(const TCHAR* szValue);
-
- int m_nMonth;
- int m_nDay;
- };
-
-
- ////////////////////////////////////////////////////////////////////////
- //
- // CSchemaDay
- //
- ////////////////////////////////////////////////////////////////////////
-
-
- class ALTOVA_DECLSPECIFIER CSchemaDay : public CSchemaDateTimeBase
- {
- public:
- CSchemaDay(int nDay, bool bUTC = false);
- CSchemaDay(int nDay, int nOffset);
- CSchemaDay(const TCHAR* szValue);
- virtual operator tstring() const;
-
- int GetDay() const;
-
- void SetDay(int nYear);
-
- typedef const TCHAR* basetype;
-
- protected:
- void Parse(const TCHAR* szValue);
-
- int m_nDay;
- };
-
-
- ////////////////////////////////////////////////////////////////////////
- //
- // CSchemaHexBinary
- //
- ////////////////////////////////////////////////////////////////////////
-
-
- class ALTOVA_DECLSPECIFIER CSchemaHexBinary : public CSchemaType
- {
- public:
- CSchemaHexBinary(const CSchemaHexBinary& rOther);
- CSchemaHexBinary(const unsigned char* pData, int nSize);
- CSchemaHexBinary(const TCHAR* szValue);
- virtual ~CSchemaHexBinary();
- virtual CSchemaHexBinary& operator=(const CSchemaHexBinary& rOther);
- virtual operator tstring() const;
-
- int GetSize() const;
- const unsigned char* GetData() const;
- unsigned char* GetData();
-
- void SetData(const unsigned char* pData, int nSize);
-
- typedef const TCHAR* basetype;
-
- protected:
- void Clone(const CSchemaHexBinary& rOther);
- void Clone(const unsigned char* pData, int nSize);
- void Parse(const TCHAR* szValue);
-
- static const TCHAR sm_EncodeArray\[\];
- static const TCHAR sm_DecodeArray\[\];
-
-
- int m_nSize;
- unsigned char* m_pData;
- };
-
-
- ////////////////////////////////////////////////////////////////////////
- //
- // CSchemaBase64Binary
- //
- ////////////////////////////////////////////////////////////////////////
-
-
- class ALTOVA_DECLSPECIFIER CSchemaBase64Binary : public CSchemaType
- {
- public:
- CSchemaBase64Binary(const CSchemaBase64Binary& rOther);
- CSchemaBase64Binary(const unsigned char* pData, int nSize);
- CSchemaBase64Binary(const TCHAR* szValue);
- virtual ~CSchemaBase64Binary();
- virtual CSchemaBase64Binary& operator=(const CSchemaBase64Binary& rOther);
- virtual operator tstring() const;
-
- int GetSize() const;
- const unsigned char* GetData() const;
- unsigned char* GetData();
-
- void SetData(const unsigned char* pData, int nSize);
-
- typedef const TCHAR* basetype;
-
- protected:
- void Clone(const CSchemaBase64Binary& rOther);
- void Clone(const unsigned char* pData, int nSize);
-
- void Encode(unsigned char* pSrc, int nSrcSize, TCHAR*& rszDst, int& rnDstSize, int nMaxLineLength = 76) const;
- void Decode(const TCHAR* szSrc, unsigned char*& rpDst, int& rnDstSize);
-
- static const TCHAR sm_EncodeArray\[\];
- static const TCHAR sm_DecodeArray\[\];
-
- int m_nSize;
- unsigned char* m_pData;
- };
-
-
- } // namespace altova
-
- #endif // ALTOVA_SCHEMATYPES_H_INCLUDED
-