Files
core/ASCOfficeOdfFile/include/cpdoccore/xml/xmlchar.h
Elen.Subbotina 8488025896 для красоты
git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@54463 954022d7-b5bf-4e40-9824-e11837661b57
2016-05-20 22:41:49 +03:00

77 lines
1.7 KiB
C++

#ifndef _CPDOCCORE_XMLCHAR_H_
#define _CPDOCCORE_XMLCHAR_H_
#ifdef _MSC_VER
#pragma once
#endif
namespace cpdoccore {
namespace xml {
template <class ElemT>
class xml_char
{
public:
//static const ElemT eq;
//static const ElemT quote;
//static const ElemT space;
//static const ElemT left_brocket;
//static const ElemT right_brocket;
//static const ElemT slash;
//static const ElemT colon;
//static const ElemT * openTag;
//static const ElemT * closeTag;
//static const ElemT * endTag;
//static const ElemT * trueVal;
//static const ElemT * falseVal;
};
template <>
class xml_char<char>
{
public:
static const char eq;
static const char quote;
static const char space;
static const char left_brocket;
static const char right_brocket;
static const char slash;
static const char colon;
static const char * openTag;
static const char * closeTag;
static const char * endTag;
static const char * trueVal;
static const char * falseVal;
};
template <>
class xml_char<wchar_t>
{
public:
static const wchar_t eq;
static const wchar_t quote;
static const wchar_t space;
static const wchar_t left_brocket;
static const wchar_t right_brocket;
static const wchar_t slash;
static const wchar_t colon;
static const wchar_t * openTag;
static const wchar_t * closeTag;
static const wchar_t * endTag;
static const wchar_t * trueVal;
static const wchar_t * falseVal;
};
typedef xml_char<char> xml_char_c;
typedef xml_char<wchar_t> xml_char_wc;
}
}
#endif // #ifndef _CPDOCCORE_XMLCHAR_H_