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
inline

◆ Check()

bool CDataMember::Check ( void  ) const

Definition at line 1152 of file blocktype.cpp.

◆ Comments()

CComments& CDataMember::Comments ( void  )
inline

Definition at line 105 of file blocktype.hpp.

References m_Comments.

Referenced by ASNParser::TypesBlock().

◆ GetComments()

const CComments& CDataMember::GetComments ( void  ) const
inline

Definition at line 109 of file blocktype.hpp.

References m_Comments.

Referenced by CStaticDataType::PrintXMLSchemaContents().

◆ GetDefault()

const CDataValue* CDataMember::GetDefault ( void  ) const
inline

◆ GetName()

const string& CDataMember::GetName ( void  ) const
inline

◆ GetRestrictions()

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

◆ GetType() [1/2]

CDataType* CDataMember::GetType ( void  )
inline

◆ GetType() [2/2]

const CDataType* CDataMember::GetType ( void  ) const
inline

Definition at line 64 of file blocktype.hpp.

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

◆ Nillable()

bool CDataMember::Nillable ( void  ) const
inline

◆ NoPrefix()

bool CDataMember::NoPrefix ( void  ) const
inline

Definition at line 72 of file blocktype.hpp.

References m_NoPrefix.

◆ Notag()

bool CDataMember::Notag ( void  ) const
inline

◆ Optional()

bool CDataMember::Optional ( void  ) const
inline

◆ 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)
inline

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
inline

Definition at line 84 of file blocktype.hpp.

References m_SimpleType.

Referenced by CStaticDataType::PrintJSONSchema().

Member Data Documentation

◆ m_Attlist

bool CDataMember::m_Attlist
private

Definition at line 125 of file blocktype.hpp.

Referenced by Attlist().

◆ m_Comments

CComments CDataMember::m_Comments
private

Definition at line 130 of file blocktype.hpp.

Referenced by Comments(), and GetComments().

◆ m_Default

AutoPtr<CDataValue> CDataMember::m_Default
private

Definition at line 129 of file blocktype.hpp.

Referenced by GetDefault(), and Optional().

◆ m_Name

string CDataMember::m_Name
private

Definition at line 121 of file blocktype.hpp.

Referenced by GetName().

◆ m_Nillable

bool CDataMember::m_Nillable
private

Definition at line 128 of file blocktype.hpp.

Referenced by Nillable().

◆ m_NoPrefix

bool CDataMember::m_NoPrefix
private

Definition at line 124 of file blocktype.hpp.

Referenced by NoPrefix(), and Optional().

◆ m_Notag

bool CDataMember::m_Notag
private

Definition at line 126 of file blocktype.hpp.

Referenced by Notag().

◆ m_Optional

bool CDataMember::m_Optional
private

Definition at line 123 of file blocktype.hpp.

Referenced by Optional().

◆ m_Restrictions

list<CMemberFacet> CDataMember::m_Restrictions
private

Definition at line 131 of file blocktype.hpp.

Referenced by GetRestrictions(), and SetRestrictions().

◆ m_SimpleType

bool CDataMember::m_SimpleType
private

Definition at line 127 of file blocktype.hpp.

Referenced by SimpleType().

◆ m_Type

AutoPtr<CDataType> CDataMember::m_Type
private

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 modify_doxy.py rev. 669887