NCBI C++ ToolKit
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes
CAnyContentObject Class Reference

Search Toolkit Book for CAnyContentObject

Serializable object that stores any combination of parsable data. More...

#include <serial/serialbase.hpp>

+ Inheritance diagram for CAnyContentObject:
+ Collaboration diagram for CAnyContentObject:

List of all members.

Public Member Functions

 CAnyContentObject (void)
 CAnyContentObject (const CAnyContentObject &other)
virtual ~CAnyContentObject (void)
virtual const CTypeInfoGetThisTypeInfo (void) const
void Reset (void)
CAnyContentObjectoperator= (const CAnyContentObject &other)
bool operator== (const CAnyContentObject &other) const
void SetName (const string &name)
 Set local name.
const stringGetName (void) const
 Get local name.
void SetValue (const CStringUTF8 &value)
 Set normalized value.
const CStringUTF8GetValue (void) const
 Get normalized value.
void SetNamespaceName (const string &ns_name)
 Set namespace name.
const stringGetNamespaceName (void) const
 Get namespace name.
void SetNamespacePrefix (const string &ns_prefix)
 Set namespace prefix.
const stringGetNamespacePrefix (void) const
 Get namespace prefix.
void AddAttribute (const string &name, const string &ns_name, const CStringUTF8 &value)
 Add attribute.
const vector
< CSerialAttribInfoItem > & 
GetAttributes (void) const
 Get object attributes.

Static Public Member Functions

static const CTypeInfoGetTypeInfo (void)

Private Member Functions

void x_Copy (const CAnyContentObject &other)
void x_Decode (const CStringUTF8 &value)

Private Attributes

string m_Name
CStringUTF8 m_Value
string m_NsName
string m_NsPrefix
vector< CSerialAttribInfoItemm_Attlist

Detailed Description

Serializable object that stores any combination of parsable data.

In DTD - elements with category ANY In XML schema - element of an unspecified type ('any')

Definition at line 223 of file serialbase.hpp.


Constructor & Destructor Documentation

Definition at line 366 of file serialobject.cpp.

Definition at line 370 of file serialobject.cpp.

References x_Copy().

Definition at line 375 of file serialobject.cpp.


Member Function Documentation

void CAnyContentObject::AddAttribute ( const string name,
const string ns_name,
const CStringUTF8 value 
)

Get namespace prefix.

Reimplemented from CSerialObject.

Definition at line 446 of file serialobject.cpp.

References m_NsPrefix.

Referenced by s_SetFieldsFromAnyContent(), and CObjectOStreamXml::WriteAnyContentObject().

virtual const CTypeInfo* CAnyContentObject::GetThisTypeInfo ( void  ) const [inline, virtual]

Implements CSerialObject.

Definition at line 230 of file serialbase.hpp.

Definition at line 379 of file serialobject.cpp.

Referenced by CSoapReadHook::ReadObject().

CAnyContentObject & CAnyContentObject::operator= ( const CAnyContentObject other)

Definition at line 405 of file serialobject.cpp.

References x_Copy().

bool CAnyContentObject::operator== ( const CAnyContentObject other) const

Definition at line 411 of file serialobject.cpp.

References GetName(), GetValue(), m_Name, m_NsName, and m_Value.

void CAnyContentObject::Reset ( void  )

Set namespace name.

Definition at line 434 of file serialobject.cpp.

References m_NsName.

Referenced by CSoapMessage::AddObject(), CObjectIStreamXml::ReadAnyContentObject(), and s_SetAnyContentFromFields().

Set namespace prefix.

Definition at line 442 of file serialobject.cpp.

References m_NsPrefix.

Referenced by CObjectIStreamXml::ReadAnyContentObject(), and s_SetAnyContentFromFields().

void CAnyContentObject::x_Copy ( const CAnyContentObject other) [private]

Definition at line 393 of file serialobject.cpp.

References m_Attlist, m_Name, m_NsName, m_NsPrefix, and m_Value.

Referenced by CAnyContentObject(), and operator=().

void CAnyContentObject::x_Decode ( const CStringUTF8 value) [private]

Definition at line 450 of file serialobject.cpp.

References m_Value.

Referenced by SetValue().


Member Data Documentation

Definition at line 269 of file serialbase.hpp.

Referenced by AddAttribute(), GetAttributes(), Reset(), and x_Copy().

Definition at line 265 of file serialbase.hpp.

Referenced by GetName(), operator==(), Reset(), SetName(), and x_Copy().

Definition at line 267 of file serialbase.hpp.

Referenced by GetNamespaceName(), operator==(), Reset(), SetNamespaceName(), and x_Copy().

Definition at line 268 of file serialbase.hpp.

Referenced by GetNamespacePrefix(), Reset(), SetNamespacePrefix(), and x_Copy().

Definition at line 266 of file serialbase.hpp.

Referenced by GetValue(), operator==(), Reset(), x_Copy(), and x_Decode().


The documentation for this class was generated from the following files:
Modified on Sat May 02 10:57:54 2015 by modify_doxy.py rev. 426318