mirror of
https://github.com/jezhiggins/arabica
synced 2025-01-03 23:02:11 +01:00
34 lines
722 B
C
34 lines
722 B
C
|
#ifndef ATTRIBUTE_DEFAULTS_H
|
||
|
#define ATTRIBUTE_DEFAULTS_H
|
||
|
/*
|
||
|
* $Id$
|
||
|
*/
|
||
|
|
||
|
#include <SAX/helpers/StringAdaptor.h>
|
||
|
|
||
|
namespace SAX
|
||
|
{
|
||
|
|
||
|
template<class string_type, class string_adaptor_type = default_string_adaptor<string_type> >
|
||
|
struct AttributeDefaults
|
||
|
{
|
||
|
typedef string_type stringT;
|
||
|
typedef string_adaptor_type string_adaptorT;
|
||
|
|
||
|
const stringT required;
|
||
|
const stringT implied;
|
||
|
const stringT fixed;
|
||
|
|
||
|
AttributeDefaults() :
|
||
|
required(string_adaptorT().makeStringT("#REQUIRED")),
|
||
|
implied(string_adaptorT().makeStringT("#IMPLIED")),
|
||
|
fixed(string_adaptorT().makeStringT("#FIXED"))
|
||
|
{
|
||
|
} // AttributeDefaults
|
||
|
}; // struct AttributeDefaults
|
||
|
|
||
|
} // namespace SAX
|
||
|
|
||
|
#endif
|
||
|
// end of file
|