NCBI C++ ToolKit
Public Member Functions | Private Attributes | List of all members
CDataMember Class Reference

Search Toolkit Book for CDataMember

#include "blocktype.hpp"
(Private to src/serial/datatool.)

+ Collaboration diagram for CDataMember:

Public Member Functions

 CDataMember (const string &name, const AutoPtr< CDataType > &type)
 ~CDataMember (void)
void PrintASN (CNcbiOstream &out, int indent, bool last) const
void PrintSpecDump (CNcbiOstream &out, int indent, const char *tag) const
void PrintJSONSchema (CNcbiOstream &out, int indent, list< string > &required, bool contents_only=false) const
void PrintXMLSchema (CNcbiOstream &out, int indent, bool contents_only=false) const
void PrintDTD (CNcbiOstream &out) const
bool Check (void) const
const stringGetName (void) const
CDataTypeGetType (void)
const CDataTypeGetType (void) const
bool Optional (void) const
bool NoPrefix (void) const
bool Attlist (void) const
bool Notag (void) const
bool SimpleType (void) const
const CDataValueGetDefault (void) const
bool Nillable (void) const
void SetOptional (void)
void SetNoPrefix (void)
void SetAttlist (void)
void SetNotag (void)
void SetSimpleType (void)
void SetDefault (const AutoPtr< CDataValue > &value)
void SetNillable (void)
CCommentsComments (void)
const CCommentsGetComments (void) const
void SetRestrictions (const list< CMemberFacet > &c)
const list< CMemberFacet > & GetRestrictions (void) const

Private Attributes

string m_Name
AutoPtr< CDataTypem_Type
bool m_Optional
bool m_NoPrefix
bool m_Attlist
bool m_Notag
bool m_SimpleType
bool m_Nillable
AutoPtr< CDataValuem_Default
CComments m_Comments
list< CMemberFacetm_Restrictions

Detailed Description

Definition at line 43 of file blocktype.hpp.

Constructor & Destructor Documentation

◆ CDataMember()

CDataMember::CDataMember ( const string name,
const AutoPtr< CDataType > &  type 

Definition at line 1034 of file blocktype.cpp.

◆ ~CDataMember()

CDataMember::~CDataMember ( void  )

Definition at line 1052 of file blocktype.cpp.

Member Function Documentation

◆ Attlist()

bool CDataMember::Attlist ( void  ) const

◆ Check()

bool CDataMember::Check ( void  ) const

Definition at line 1152 of file blocktype.cpp.

◆ Comments()

CComments& CDataMember::Comments ( void  )

Definition at line 105 of file blocktype.hpp.

References m_Comments.

Referenced by ASNParser::TypesBlock().

◆ GetComments()

const CComments& CDataMember::GetComments ( void  ) const

Definition at line 109 of file blocktype.hpp.

References m_Comments.

Referenced by CStaticDataType::PrintXMLSchemaContents().

◆ GetDefault()

const CDataValue* CDataMember::GetDefault ( void  ) const

◆ GetName()

const string& CDataMember::GetName ( void  ) const

◆ GetRestrictions()

const list<CMemberFacet>& CDataMember::GetRestrictions ( void  ) const

◆ GetType() [1/2]

CDataType* CDataMember::GetType ( void  )

◆ GetType() [2/2]

const CDataType* CDataMember::GetType ( void  ) const

Definition at line 64 of file blocktype.hpp.

References AutoPtr< X, Del >::get(), and m_Type.

◆ Nillable()

bool CDataMember::Nillable ( void  ) const

◆ NoPrefix()

bool CDataMember::NoPrefix ( void  ) const

Definition at line 72 of file blocktype.hpp.

References m_NoPrefix.

◆ Notag()

bool CDataMember::Notag ( void  ) const

◆ Optional()

bool CDataMember::Optional ( void  ) const

◆ PrintASN()

void CDataMember::PrintASN ( CNcbiOstream out,
int  indent,
bool  last 
) const

◆ PrintDTD()

void CDataMember::PrintDTD ( CNcbiOstream out) const

Definition at line 1147 of file blocktype.cpp.

◆ PrintJSONSchema()

void CDataMember::PrintJSONSchema ( CNcbiOstream out,
int  indent,
list< string > &  required,
bool  contents_only = false 
) const

◆ PrintSpecDump()

void CDataMember::PrintSpecDump ( CNcbiOstream out,
int  indent,
const char *  tag 
) const

Definition at line 1078 of file blocktype.cpp.

◆ PrintXMLSchema()

void CDataMember::PrintXMLSchema ( CNcbiOstream out,
int  indent,
bool  contents_only = false 
) const

Definition at line 1139 of file blocktype.cpp.

◆ SetAttlist()

void CDataMember::SetAttlist ( void  )

Definition at line 1176 of file blocktype.cpp.

◆ SetDefault()

void CDataMember::SetDefault ( const AutoPtr< CDataValue > &  value)

Definition at line 1161 of file blocktype.cpp.

◆ SetNillable()

void CDataMember::SetNillable ( void  )

Definition at line 1188 of file blocktype.cpp.

◆ SetNoPrefix()

void CDataMember::SetNoPrefix ( void  )

Definition at line 1171 of file blocktype.cpp.

◆ SetNotag()

void CDataMember::SetNotag ( void  )

Definition at line 1180 of file blocktype.cpp.

◆ SetOptional()

void CDataMember::SetOptional ( void  )

Definition at line 1166 of file blocktype.cpp.

◆ SetRestrictions()

void CDataMember::SetRestrictions ( const list< CMemberFacet > &  c)

Definition at line 113 of file blocktype.hpp.

References m_Restrictions.

◆ SetSimpleType()

void CDataMember::SetSimpleType ( void  )

Definition at line 1184 of file blocktype.cpp.

◆ SimpleType()

bool CDataMember::SimpleType ( void  ) const

Definition at line 84 of file blocktype.hpp.

References m_SimpleType.

Referenced by CStaticDataType::PrintJSONSchema().

Member Data Documentation

◆ m_Attlist

bool CDataMember::m_Attlist

Definition at line 125 of file blocktype.hpp.

Referenced by Attlist().

◆ m_Comments

CComments CDataMember::m_Comments

Definition at line 130 of file blocktype.hpp.

Referenced by Comments(), and GetComments().

◆ m_Default

AutoPtr<CDataValue> CDataMember::m_Default

Definition at line 129 of file blocktype.hpp.

Referenced by GetDefault(), and Optional().

◆ m_Name

string CDataMember::m_Name

Definition at line 121 of file blocktype.hpp.

Referenced by GetName().

◆ m_Nillable

bool CDataMember::m_Nillable

Definition at line 128 of file blocktype.hpp.

Referenced by Nillable().

◆ m_NoPrefix

bool CDataMember::m_NoPrefix

Definition at line 124 of file blocktype.hpp.

Referenced by NoPrefix(), and Optional().

◆ m_Notag

bool CDataMember::m_Notag

Definition at line 126 of file blocktype.hpp.

Referenced by Notag().

◆ m_Optional

bool CDataMember::m_Optional

Definition at line 123 of file blocktype.hpp.

Referenced by Optional().

◆ m_Restrictions

list<CMemberFacet> CDataMember::m_Restrictions

Definition at line 131 of file blocktype.hpp.

Referenced by GetRestrictions(), and SetRestrictions().

◆ m_SimpleType

bool CDataMember::m_SimpleType

Definition at line 127 of file blocktype.hpp.

Referenced by SimpleType().

◆ m_Type

AutoPtr<CDataType> CDataMember::m_Type

Definition at line 122 of file blocktype.hpp.

Referenced by GetType().

The documentation for this class was generated from the following files:
Modified on Wed Jun 19 17:03:27 2024 by rev. 669887