arabica/SAX/helpers/AttributeTypes.h
jez_higgins 4014643f71 Binned out DOM/Simple/StringAdaptor.h - it hasn't been used for ages, because
everything uses SAX/helpers/StringAdaptor.h
Binned out SAX/helpers/StringAdaptor.h - moved it to Utils/StringAdaptor.h and
changed namespace from SAX to Arabica.
2005-08-15 21:09:13 +00:00

48 lines
1.3 KiB
C++

#ifndef ARABICA_ATTRIBUTE_TYPES_H
#define ARABICA_ATTRIBUTE_TYPES_H
/*
* $Id$
*/
#include <SAX/ArabicaConfig.h>
#include <Utils/StringAdaptor.h>
namespace SAX
{
template<class string_type, class string_adaptor_type = Arabica::default_string_adaptor<string_type> >
struct AttributeTypes
{
typedef string_type stringT;
typedef string_adaptor_type string_adaptorT;
const stringT cdata;
const stringT nmtoken;
const stringT nmtokens;
const stringT enumeration;
const stringT entity;
const stringT entities;
const stringT id;
const stringT idref;
const stringT idrefs;
const stringT notation;
AttributeTypes() :
cdata(string_adaptorT().makeStringT("CDATA")),
nmtoken(string_adaptorT().makeStringT("NMTOKEN")),
nmtokens(string_adaptorT().makeStringT("NMTOKENS")),
enumeration(string_adaptorT().makeStringT("ENUMERATION")),
entity(string_adaptorT().makeStringT("ENTITY")),
entities(string_adaptorT().makeStringT("ENTITIES")),
id(string_adaptorT().makeStringT("ID")),
idref(string_adaptorT().makeStringT("IDREF")),
idrefs(string_adaptorT().makeStringT("IDREFS")),
notation(string_adaptorT().makeStringT("NOTATION"))
{
} // AttributeTypes
}; // struct AttributeTypes
} // namespace SAX
#endif
// end of file