41 #ifndef OBJTOOLS_EUTILS_EFETCH_MS_BASE_HPP
42 #define OBJTOOLS_EUTILS_EFETCH_MS_BASE_HPP
54 #ifndef BEGIN_objects_SCOPE
55 # define BEGIN_objects_SCOPE BEGIN_SCOPE(objects)
56 # define END_objects_SCOPE END_SCOPE(objects)
1058 NCBI_NS_NCBI::CUnionBuffer<NCBI_NS_STD::string>
m_string;
1065 typedef list< CRef< C_E_Ms > >
TMs;
1147 virtual void Reset(
void);
1201 m_Id = std::forward<CMs_Base::C_Attlist::TId>(
value);
1232 if (!CanGetXref()) {
1248 m_Xref = std::forward<CMs_Base::C_Attlist::TXref>(
value);
1273 return IsSetClass();
1279 if (!CanGetClass()) {
1295 m_Class = std::forward<CMs_Base::C_Attlist::TClass>(
value);
1303 if (!IsSetClass()) {
1320 return IsSetStyle();
1326 if (!CanGetStyle()) {
1342 m_Style = std::forward<CMs_Base::C_Attlist::TStyle>(
value);
1350 if (!IsSetStyle()) {
1373 if (!CanGetHref()) {
1389 m_Href = std::forward<CMs_Base::C_Attlist::THref>(
value);
1414 return IsSetMathcolor();
1420 if (!CanGetMathcolor()) {
1429 m_Mathcolor =
value;
1436 m_Mathcolor = std::forward<CMs_Base::C_Attlist::TMathcolor>(
value);
1444 if (!IsSetMathcolor()) {
1461 return IsSetMathbackground();
1467 if (!CanGetMathbackground()) {
1470 return m_Mathbackground;
1476 m_Mathbackground =
value;
1483 m_Mathbackground = std::forward<CMs_Base::C_Attlist::TMathbackground>(
value);
1491 if (!IsSetMathbackground()) {
1496 return m_Mathbackground;
1508 return IsSetMathvariant();
1521 if (!CanGetMathvariant()) {
1524 return m_Mathvariant;
1530 m_Mathvariant =
value;
1538 if (!IsSetMathvariant()) {
1543 return m_Mathvariant;
1555 return IsSetMathsize();
1561 if (!CanGetMathsize()) {
1577 m_Mathsize = std::forward<CMs_Base::C_Attlist::TMathsize>(
value);
1585 if (!IsSetMathsize()) {
1649 return IsSetFontfamily();
1655 if (!CanGetFontfamily()) {
1658 return m_Fontfamily;
1664 m_Fontfamily =
value;
1671 m_Fontfamily = std::forward<CMs_Base::C_Attlist::TFontfamily>(
value);
1679 if (!IsSetFontfamily()) {
1684 return m_Fontfamily;
1696 return IsSetFontweight();
1709 if (!CanGetFontweight()) {
1712 return m_Fontweight;
1718 m_Fontweight =
value;
1726 if (!IsSetFontweight()) {
1731 return m_Fontweight;
1743 return IsSetFontstyle();
1756 if (!CanGetFontstyle()) {
1765 m_Fontstyle =
value;
1773 if (!IsSetFontstyle()) {
1790 return IsSetFontsize();
1796 if (!CanGetFontsize()) {
1812 m_Fontsize = std::forward<CMs_Base::C_Attlist::TFontsize>(
value);
1820 if (!IsSetFontsize()) {
1837 return IsSetColor();
1843 if (!CanGetColor()) {
1859 m_Color = std::forward<CMs_Base::C_Attlist::TColor>(
value);
1867 if (!IsSetColor()) {
1884 return IsSetBackground();
1890 if (!CanGetBackground()) {
1893 return m_Background;
1899 m_Background =
value;
1906 m_Background = std::forward<CMs_Base::C_Attlist::TBackground>(
value);
1914 if (!IsSetBackground()) {
1919 return m_Background;
1931 return IsSetLquote();
1937 if (!CanGetLquote()) {
1953 m_Lquote = std::forward<CMs_Base::C_Attlist::TLquote>(
value);
1961 if (!IsSetLquote()) {
1978 return IsSetRquote();
1984 if (!CanGetRquote()) {
2000 m_Rquote = std::forward<CMs_Base::C_Attlist::TRquote>(
value);
2008 if (!IsSetRquote()) {
2025 if ( m_choice != index )
2026 ThrowInvalidSelection(index);
2035 DoSelect(index, pool);
2042 Select(index, reset, 0);
2048 return m_choice == e__CharData;
2054 CheckSelected(e__CharData);
2068 return m_choice == e_Token_content;
User-defined methods of the data storage class.
Base class for all serializable objects.
static char UnassignedByte(void)
void ThrowUnassigned(TMemberIndex index) const
#define ENUM_METHOD_NAME(EnumName)
static string UnassignedString(void)
uint32_t Uint4
4-byte (32-bit) unsigned integer
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
DECLARE_INTERNAL_TYPE_INFO()
void ResetXref(void)
Reset Xref data member.
bool IsSetId(void) const
Check if a value has been assigned to Id data member.
TMathcolor & SetMathcolor(void)
Assign a value to Mathcolor data member.
bool CanGetLquote(void) const
Check if it is safe to call GetLquote method.
void ResetMathcolor(void)
Reset Mathcolor data member.
Tparent::CMemberIndex< E_memberIndex, 3 > TmemberIndex
void CheckSelected(E_Choice index) const
Verify selection, throw exception if it differs from the expected.
TRquote & SetRquote(void)
Assign a value to Rquote data member.
TFontstyle GetFontstyle(void) const
Get the Fontstyle member data.
const TMs & GetMs(void) const
Get the Ms member data.
bool CanGetBackground(void) const
Check if it is safe to call GetBackground method.
TToken_content & SetToken_content(void)
Select the variant.
C_E_Ms & operator=(const C_E_Ms &)
void Reset(void)
Reset the whole object.
const TFontfamily & GetFontfamily(void) const
Get the Fontfamily member data.
bool IsSetFontstyle(void) const
Check if a value has been assigned to Fontstyle data member.
Tparent::CMemberIndex< E_memberIndex, 19 > TmemberIndex
TXref & SetXref(void)
Assign a value to Xref data member.
bool CanGetMathsize(void) const
Check if it is safe to call GetMathsize method.
bool IsSetMs(void) const
Check if a value has been assigned to Ms data member.
void ResetRquote(void)
Reset Rquote data member.
bool CanGetAttlist(void) const
Check if it is safe to call GetAttlist method.
TDir GetDir(void) const
Get the Dir member data.
const TFontsize & GetFontsize(void) const
Get the Fontsize member data.
void ResetMathbackground(void)
Reset Mathbackground data member.
const TClass & GetClass(void) const
Get the Class member data.
void ResetFontfamily(void)
Reset Fontfamily data member.
const TAttlist & GetAttlist(void) const
Get the Attlist member data.
TLquote & SetLquote(void)
Assign a value to Lquote data member.
E_Choice Which(void) const
Which variant is currently selected.
const TMathcolor & GetMathcolor(void) const
Get the Mathcolor member data.
CMs_Base & operator=(const CMs_Base &)
bool CanGetId(void) const
Check if it is safe to call GetId method.
list< CRef< C_E_Ms > > TMs
bool IsSetHref(void) const
Check if a value has been assigned to Href data member.
const T_CharData & Get_CharData(void) const
Get the variant data.
void ResetSelection(void)
Reset the selection (set it to e_not_set).
bool IsSetFontsize(void) const
Check if a value has been assigned to Fontsize data member.
TFontfamily & SetFontfamily(void)
Assign a value to Fontfamily data member.
bool IsSetFontfamily(void) const
Check if a value has been assigned to Fontfamily data member.
bool IsSetMathsize(void) const
Check if a value has been assigned to Mathsize data member.
void ResetColor(void)
Reset Color data member.
bool CanGetStyle(void) const
Check if it is safe to call GetStyle method.
bool IsSetBackground(void) const
Check if a value has been assigned to Background data member.
void ResetId(void)
Reset Id data member.
const TXref & GetXref(void) const
Get the Xref member data.
TMathbackground & SetMathbackground(void)
Assign a value to Mathbackground data member.
TFontweight GetFontweight(void) const
Get the Fontweight member data.
EAttlist_fontstyle TFontstyle
bool CanGetMathbackground(void) const
Check if it is safe to call GetMathbackground method.
EAttlist_fontweight m_Fontweight
TMathvariant & SetMathvariant(void)
Assign a value to Mathvariant data member.
const TStyle & GetStyle(void) const
Get the Style member data.
void Reset(void)
Reset the whole object.
const TMathbackground & GetMathbackground(void) const
Get the Mathbackground member data.
EAttlist_mathvariant m_Mathvariant
void ResetClass(void)
Reset Class data member.
C_Token_content TToken_content
TId & SetId(void)
Assign a value to Id data member.
static const char *const sm_SelectionNames[]
bool IsSetMathvariant(void) const
Check if a value has been assigned to Mathvariant data member.
TColor & SetColor(void)
Assign a value to Color data member.
void ResetLquote(void)
Reset Lquote data member.
bool IsSetLquote(void) const
Check if a value has been assigned to Lquote data member.
TStyle & SetStyle(void)
Assign a value to Style data member.
void ResetStyle(void)
Reset Style data member.
const THref & GetHref(void) const
Get the Href member data.
void ResetHref(void)
Reset Href data member.
list< CRef< C_E_Ms > > m_Ms
EAttlist_mathvariant TMathvariant
bool CanGetDir(void) const
Check if it is safe to call GetDir method.
bool CanGetColor(void) const
Check if it is safe to call GetColor method.
TMathvariant GetMathvariant(void) const
Get the Mathvariant member data.
const TId & GetId(void) const
Get the Id member data.
EAttlist_fontweight TFontweight
const TToken_content & GetToken_content(void) const
Get the variant data.
void ResetFontsize(void)
Reset Fontsize data member.
void Select(E_Choice index, EResetVariant reset=eDoResetVariant)
Select the requested variant if needed.
bool IsToken_content(void) const
Check if variant Token_content is selected.
EAttlist_fontstyle m_Fontstyle
void ThrowInvalidSelection(E_Choice index) const
Throw 'InvalidSelection' exception.
bool IsSetMathbackground(void) const
Check if a value has been assigned to Mathbackground data member.
void ResetAttlist(void)
Reset Attlist data member.
C_Attlist(const C_Attlist &)
void ResetMathvariant(void)
Reset Mathvariant data member.
bool CanGetHref(void) const
Check if it is safe to call GetHref method.
TFontstyle & SetFontstyle(void)
Assign a value to Fontstyle data member.
bool IsSetFontweight(void) const
Check if a value has been assigned to Fontweight data member.
bool CanGetFontstyle(void) const
Check if it is safe to call GetFontstyle method.
TFontweight & SetFontweight(void)
Assign a value to Fontweight data member.
TFontsize & SetFontsize(void)
Assign a value to Fontsize data member.
bool CanGetFontfamily(void) const
Check if it is safe to call GetFontfamily method.
NCBI_NS_NCBI::CSerialObject * m_object
CRef< TAttlist > m_Attlist
void ResetBackground(void)
Reset Background data member.
CToken_content C_Token_content
bool CanGetRquote(void) const
Check if it is safe to call GetRquote method.
bool CanGetMathvariant(void) const
Check if it is safe to call GetMathvariant method.
bool CanGetMathcolor(void) const
Check if it is safe to call GetMathcolor method.
T_CharData & Set_CharData(void)
Select the variant.
THref & SetHref(void)
Assign a value to Href data member.
bool CanGetXref(void) const
Check if it is safe to call GetXref method.
NCBI_NS_NCBI::CUnionBuffer< NCBI_NS_STD::string > m_string
static string SelectionName(E_Choice index)
Retrieve selection name (for diagnostic purposes).
void ResetFontweight(void)
Reset Fontweight data member.
bool IsSetColor(void) const
Check if a value has been assigned to Color data member.
bool CanGetClass(void) const
Check if it is safe to call GetClass method.
TAttlist & SetAttlist(void)
Assign a value to Attlist data member.
TMathsize & SetMathsize(void)
Assign a value to Mathsize data member.
void DoSelect(E_Choice index, CObjectMemoryPool *pool=0)
TClass & SetClass(void)
Assign a value to Class data member.
bool IsSetMathcolor(void) const
Check if a value has been assigned to Mathcolor data member.
DECLARE_INTERNAL_TYPE_INFO()
bool CanGetFontweight(void) const
Check if it is safe to call GetFontweight method.
void ResetFontstyle(void)
Reset Fontstyle data member.
bool IsSetClass(void) const
Check if a value has been assigned to Class data member.
const TColor & GetColor(void) const
Get the Color member data.
C_Attlist & operator=(const C_Attlist &)
bool CanGetMs(void) const
Check if it is safe to call GetMs method.
void ResetMathsize(void)
Reset Mathsize data member.
const TMathsize & GetMathsize(void) const
Get the Mathsize member data.
void ResetDir(void)
Reset Dir data member.
bool IsSetRquote(void) const
Check if a value has been assigned to Rquote data member.
const TBackground & GetBackground(void) const
Get the Background member data.
bool IsSetDir(void) const
Check if a value has been assigned to Dir data member.
void ResetMs(void)
Reset Ms data member.
bool IsSetAttlist(void) const
Check if a value has been assigned to Attlist data member.
TBackground & SetBackground(void)
Assign a value to Background data member.
bool IsSetStyle(void) const
Check if a value has been assigned to Style data member.
bool IsSetXref(void) const
Check if a value has been assigned to Xref data member.
TMs & SetMs(void)
Assign a value to Ms data member.
virtual void Reset(void)
Reset the whole object.
CMs_Base(const CMs_Base &)
TDir & SetDir(void)
Assign a value to Dir data member.
bool Is_CharData(void) const
Check if variant _CharData is selected.
const TLquote & GetLquote(void) const
Get the Lquote member data.
bool CanGetFontsize(void) const
Check if it is safe to call GetFontsize method.
const TRquote & GetRquote(void) const
Get the Rquote member data.
DECLARE_INTERNAL_TYPE_INFO()
E_ChoiceStopper
Maximum+1 value of the choice variant enumerator.
void Select(E_Choice index, EResetVariant reset, CObjectMemoryPool *pool)
Select the requested variant if needed, allocating CObject variants from memory pool.
@ e_not_set
No variant selected.
@ eAttlist_fontstyle_normal
@ eAttlist_fontstyle_italic
@ eAttlist_fontweight_bold
@ eAttlist_fontweight_normal
@ eAttlist_mathvariant_sans_serif
@ eAttlist_mathvariant_sans_serif_bold_italic
@ eAttlist_mathvariant_italic
@ eAttlist_mathvariant_looped
@ eAttlist_mathvariant_bold_italic
@ eAttlist_mathvariant_bold
@ eAttlist_mathvariant_double_struck
@ eAttlist_mathvariant_bold_fraktur
@ eAttlist_mathvariant_stretched
@ eAttlist_mathvariant_tailed
@ eAttlist_mathvariant_normal
@ eAttlist_mathvariant_initial
@ eAttlist_mathvariant_monospace
@ eAttlist_mathvariant_script
@ eAttlist_mathvariant_sans_serif_italic
@ eAttlist_mathvariant_bold_script
@ eAttlist_mathvariant_fraktur
@ eAttlist_mathvariant_bold_sans_serif
@ e_MaxChoice
== e_Token_content+1
const GenericPointer< typename T::ValueType > T2 value