NCBI C++ ToolKit
|
Search Toolkit Book for CDataType
#include "type.hpp"
(Private to src/serial/datatool
.)
Public Types | |
enum | { eNoExplicitTag = -1 } |
enum | EGlobalType { eElement = 0 , eType , eGroup } |
typedef void * | TObjectPtr |
typedef list< const CReferenceDataType * > | TReferences |
Static Public Member Functions | |
static string | GetTagClassString (CAsnBinaryDefs::ETagClass tclass) |
static string | GetTagTypeString (CAsnBinaryDefs::ETagType ttype) |
static void | EnableDTDEntities (bool enable=true) |
static bool | DTDEntitiesEnabled (void) |
static void | SetEnforcedStdXml (bool set=true) |
static bool | GetEnforcedStdXml (void) |
static void | SetSourceDataSpec (EDataSpec spec) |
static EDataSpec | GetSourceDataSpec (void) |
static string | GetSourceDataSpecString (void) |
static bool | IsASNDataSpec (void) |
static bool | IsXMLDataSpec (void) |
Protected Member Functions | |
void | x_SetMemberAndClassName (const string &memberName) |
Static Protected Member Functions | |
static bool | x_IsSavedName (const string &name) |
static void | x_AddSavedName (const string &name) |
Private Member Functions | |
CDataType (const CDataType &) | |
CDataType & | operator= (const CDataType &) |
Static Private Attributes | |
static set< string, PNocase > | sm_AllFileNames |
static bool | sm_EnableDTDEntities = false |
static bool | sm_EnforcedStdXml = false |
static EDataSpec | sm_SourceDataSpec = EDataSpec::eUnknown |
static set< string > | sm_SavedNames |
static map< string, string > | sm_ClassToMember |
typedef void* CDataType::TObjectPtr |
typedef list<const CReferenceDataType*> CDataType::TReferences |
void CDataType::AddReference | ( | const CReferenceDataType * | reference | ) |
Definition at line 268 of file type.cpp.
References _ASSERT, GetParentType(), CReferenceDataType::IsRefToParent(), and m_References.
Referenced by CReferenceDataType::FixTypeTree().
Definition at line 406 of file type.cpp.
References multimap_checker< Container >::end(), multimap_checker< Container >::erase(), multimap_checker< Container >::find(), m_ForbidVar, and rapidjson::value.
bool CDataType::Check | ( | void | ) |
Definition at line 326 of file type.cpp.
References _ASSERT, CheckType(), m_Checked, and m_Module.
Referenced by CUniSequenceDataType::CheckType().
|
virtual |
Reimplemented in CUniSequenceDataType, CReferenceDataType, and CDataMemberContainerType.
Definition at line 335 of file type.cpp.
Referenced by Check().
|
pure virtual |
Implemented in CUniSequenceDataType, CAnyContentDataType, CBigIntDataType, CIntDataType, COctetStringDataType, CBitStringDataType, CStringDataType, CRealDataType, CBoolDataType, CNullDataType, CReferenceDataType, CEnumDataType, CChoiceDataType, CDataSequenceType, CDataSetType, CClientPseudoDataType, and CWsdlDataType.
Referenced by CReferenceDataType::CheckValue(), and CUniSequenceDataType::CheckValue().
string CDataType::ClassName | ( | void | ) | const |
Definition at line 582 of file type.cpp.
References map_checker< Container >::end(), map_checker< Container >::find(), g(), GetParentType(), GetVar(), i, Identifier(), m_ClassName, m_MemberName, and sm_ClassToMember.
Referenced by CClassTypeStrings::GenerateClassCode(), CClientPseudoTypeStrings::GenerateClassCode(), GenerateCode(), CChoiceDataType::GenerateCode(), CChoiceDataType::GetFullCType(), GetRefCType(), CChoiceDataType::GetRefCType(), s_QualClassName(), and SetParentClassTo().
|
inline |
Definition at line 294 of file type.hpp.
References m_Comments.
Referenced by GenerateCode(), CChoiceDataType::GenerateCode(), CChoiceDataType::GetFullCType(), CStaticDataType::GetFullCType(), CNullDataType::GetFullCType(), CStringDataType::GetFullCType(), CStringStoreDataType::GetFullCType(), CBitStringDataType::GetFullCType(), COctetStringDataType::GetFullCType(), CAnyContentDataType::GetFullCType(), GetRefCType(), CChoiceDataType::GetRefCType(), CUniSequenceDataType::PrintSpecDumpExtra(), CDataMemberContainerType::PrintXMLSchema(), CEnumDataType::PrintXMLSchema(), CStaticDataType::PrintXMLSchemaContents(), and ASNParser::x_Type().
Definition at line 298 of file type.hpp.
References m_Comments.
|
pure virtual |
Implemented in CUniSequenceDataType, CAnyContentDataType, CBigIntDataType, CIntDataType, CStringDataType, CRealDataType, CBoolDataType, CNullDataType, CStaticDataType, CReferenceDataType, CEnumDataType, CDataMemberContainerType, CClientPseudoDataType, and CWsdlDataType.
Referenced by CReferenceDataType::CreateDefault(), and CUniSequenceDataType::CreateDefault().
|
virtual |
Reimplemented in CUniSetDataType, CUniSequenceDataType, CReferenceDataType, CEnumDataType, CChoiceDataType, and CDataContainerType.
Definition at line 780 of file type.cpp.
References IdName(), and NCBI_THROW.
Referenced by GetRealTypeInfo(), and COctetStringDataType::GetRealTypeInfo().
string CDataType::DefClassMemberName | ( | void | ) | const |
Definition at line 530 of file type.cpp.
References GetParentType(), and GetVar().
Definition at line 370 of file type.hpp.
References sm_EnableDTDEntities.
Referenced by CRealDataType::GetXMLContents(), CBitStringDataType::GetXMLContents(), COctetStringDataType::GetXMLContents(), CIntDataType::GetXMLContents(), and CBigIntDataType::GetXMLContents().
Definition at line 367 of file type.hpp.
References sm_EnableDTDEntities.
Referenced by CDataTool::ProcessModules().
string CDataType::FileName | ( | void | ) | const |
Definition at line 613 of file type.cpp.
References _ASSERT, set< Key, Compare >::end(), file, FileName(), set< Key, Compare >::find(), CDataTypeModule::GetFileNamePrefix(), GetModule(), GetParentType(), GetVar(), set< Key, Compare >::insert(), IsPrimitive(), m_CachedFileName, m_MemberName, MakeFileName(), Path(), prefix, sm_AllFileNames, and tmp.
Referenced by FileName(), CClientPseudoTypeStrings::GenerateClassCode(), GetRefCType(), CChoiceDataType::GetRefCType(), and SetParentClassTo().
|
virtual |
Reimplemented in CUniSequenceDataType, CBitStringDataType, CReferenceDataType, CChoiceDataType, and CDataMemberContainerType.
Definition at line 322 of file type.cpp.
Referenced by CReferenceDataType::FixTypeTree(), CUniSequenceDataType::FixTypeTree(), and SetParent().
Definition at line 392 of file type.cpp.
References multimap_checker< Container >::end(), multimap_checker< Container >::find(), multimap_checker< Container >::insert(), m_ForbidVar, and rapidjson::value.
Referenced by CIntDataType::CIntDataType(), CRealDataType::CRealDataType(), CStringDataType::CStringDataType(), and CUniSequenceDataType::CUniSequenceDataType().
|
virtual |
Reimplemented in CClientPseudoDataType, CReferenceDataType, CEnumDataType, CChoiceDataType, and CDataContainerType.
Definition at line 793 of file type.cpp.
References ClassName(), Comments(), GetFullCType(), GetNamespaceName(), GetTag(), GetVar(), GlobalName(), IsAlias(), IsASNDataSpec(), CUniSequenceDataType::IsNonEmpty(), IsTypeAlias(), AutoPtr< X, Del >::release(), and SetParentClassTo().
Referenced by CReferenceDataType::GenerateCode(), CAliasTypeStrings::GenerateUserHPPCode(), and CReferenceDataType::GetFullCType().
Definition at line 419 of file type.cpp.
References eForbidden, multimap_checker< Container >::end(), multimap_checker< Container >::find(), GetVar(), IdName(), m_ForbidVar, NCBI_THROW, and tmp.
Referenced by CStaticDataType::GetFullCType(), CStringDataType::GetFullCType(), CStringStoreDataType::GetFullCType(), CAnyContentDataType::GetFullCType(), CUniSequenceDataType::GetFullCType(), and CUniSetDataType::GetFullCType().
|
virtual |
Definition at line 741 of file type.cpp.
References CTypeInfo::DataSpec(), DataSpec(), AutoPtr< X, Del >::get(), CTypeInfo::GetModuleName(), GetRealTypeInfo(), GetSourceDataSpec(), GlobalName(), IsAlias(), IsStdType(), IsTypeAlias(), m_AnyTypeInfo, NeedAutoPointer(), AutoPtr< X, Del >::reset(), CAliasTypeInfo::SetFullAlias(), and CTypeInfo::SetModuleName().
Referenced by CAnyTypeSource::GetTypeInfo().
|
virtual |
Reimplemented in CUniSetDataType, CUniSequenceDataType, CAnyContentDataType, CBigIntDataType, CIntDataType, COctetStringDataType, CBitStringDataType, CStringStoreDataType, CStringDataType, CRealDataType, CBoolDataType, CNullDataType, CBigIntEnumDataType, CIntEnumDataType, CEnumDataType, CChoiceDataType, CDataSequenceType, and CDataSetType.
Definition at line 183 of file type.cpp.
Referenced by CStaticDataType::CreateDefault(), GetSpecKeyword(), CDataMemberContainerType::PrintASN(), CStaticDataType::PrintASN(), CStaticDataType::PrintJSONSchema(), CDataMemberContainerType::PrintXMLSchema(), and CUniSequenceDataType::PrintXMLSchema().
Definition at line 372 of file type.cpp.
References GetVar(), NStr::StringToBool(), NStr::StringToInt(), NStr::TruncateSpacesInPlace(), and rapidjson::value.
Referenced by CChoiceDataType::GetFullCType(), and CChoiceDataType::GetRefCType().
|
inline |
Definition at line 307 of file type.hpp.
References m_DataMember.
Referenced by CReferenceDataType::CreateTypeInfo(), CChoiceTypeStrings::GenerateClassCode(), CWsdlTypeStrings::GenerateClassCode(), GetFullName(), CBoolDataType::GetSchemaTypeString(), GetVar(), GlobalName(), CStaticDataType::PrintDTDElement(), CBoolDataType::PrintDTDExtra(), CDataMemberContainerType::PrintJSONSchema(), CEnumDataType::PrintJSONSchema(), CReferenceDataType::PrintJSONSchema(), CStaticDataType::PrintJSONSchema(), CUniSequenceDataType::PrintJSONSchema(), CDataMemberContainerType::PrintSpecDumpExtra(), CDataMemberContainerType::PrintXMLSchema(), CEnumDataType::PrintXMLSchema(), CReferenceDataType::PrintXMLSchema(), CStaticDataType::PrintXMLSchema(), CAnyContentDataType::PrintXMLSchema(), CUniSequenceDataType::PrintXMLSchema(), CBoolDataType::PrintXMLSchemaContents(), and CClassTypeStrings::SMemberInfo::SMemberInfo().
|
virtual |
Reimplemented in CUniSequenceDataType, CBigIntDataType, CIntDataType, CStringDataType, CRealDataType, CBoolDataType, CReferenceDataType, and CEnumDataType.
Definition at line 878 of file type.cpp.
References Warning().
Referenced by CReferenceDataType::GetDefaultString(), and CUniSequenceDataType::GetDefaultString().
|
virtual |
Reimplemented in CUniSetDataType, CUniSequenceDataType, CAnyContentDataType, CBigIntDataType, CIntDataType, COctetStringDataType, CBitStringDataType, CStringStoreDataType, CStringDataType, CRealDataType, CBoolDataType, CNullDataType, CBigIntEnumDataType, CIntEnumDataType, CEnumDataType, CChoiceDataType, CDataSequenceType, and CDataSetType.
Definition at line 956 of file type.cpp.
Referenced by GetVar().
Definition at line 376 of file type.hpp.
References sm_EnforcedStdXml.
Referenced by CReferenceDataType::PrintDTDElement(), CUniSequenceDataType::PrintDTDElement(), CReferenceDataType::PrintDTDExtra(), CUniSequenceDataType::PrintDTDExtra(), CDataMemberContainerType::PrintXMLSchema(), CEnumDataType::PrintXMLSchema(), CReferenceDataType::PrintXMLSchema(), CUniSequenceDataType::PrintXMLSchema(), and XmlTagName().
|
virtual |
Reimplemented in CUniSetDataType, CUniSequenceDataType, CAnyContentDataType, CBigIntDataType, COctetStringDataType, CBitStringDataType, CStringStoreDataType, CStringDataType, CNullDataType, CStaticDataType, CReferenceDataType, CEnumDataType, CChoiceDataType, CWsdlDataType, and CDataContainerType.
Definition at line 872 of file type.cpp.
References LocationString(), and NCBI_THROW.
Referenced by CClientPseudoTypeStrings::GenerateClassCode(), GenerateCode(), CReferenceDataType::GetFullCType(), CBitStringDataType::GetFullCType(), CUniSequenceDataType::GetFullCType(), CUniSetDataType::GetFullCType(), GetRefCType(), and CTraversalNode::x_LoadDataFromASNNode().
string CDataType::GetFullName | ( | void | ) | const |
Definition at line 973 of file type.cpp.
References CDataMember::Attlist(), GetDataMember(), GetFullName(), GetMemberName(), CDataMemberContainerType::GetMembers(), GetParentType(), CDataMember::GetType(), IsContainer(), IsInUniSeq(), IsUniSeq(), and CDataMember::Notag().
Referenced by GetFullName(), PrintSpecDump(), CEnumDataType::PrintSpecDumpExtra(), CTraversalCodeGenerator::x_BuildNameToASNMap(), and CTraversalNode::x_LoadDataFromASNNode().
|
inline |
Definition at line 431 of file type.hpp.
References m_GlobalType.
Referenced by CDataMemberContainerType::PrintXMLSchema(), CEnumDataType::PrintXMLSchema(), CReferenceDataType::PrintXMLSchema(), CStaticDataType::PrintXMLSchema(), CUniSequenceDataType::PrintXMLSchema(), and CNullDataType::PrintXMLSchemaContents().
|
inline |
|
inline |
string CDataType::GetKeyPrefix | ( | void | ) | const |
Definition at line 508 of file type.cpp.
References GetKeyPrefix(), GetParentType(), m_MemberName, and NcbiEmptyString.
Referenced by GetKeyPrefix().
Definition at line 394 of file type.hpp.
References m_MemberName.
Referenced by CBitStringDataType::FixTypeTree(), CClassTypeStrings::GenerateClassCode(), CWsdlTypeStrings::GenerateClassCode(), GetFullName(), GetVar(), CChoiceDataType::PrintASN(), CDataMemberContainerType::PrintJSONSchema(), CChoiceDataType::PrintJSONSchema(), CDataMemberContainerType::PrintXMLSchema(), CReferenceDataType::PrintXMLSchema(), and CTraversalCodeGenerator::x_CreateNode().
|
inline |
Definition at line 168 of file type.hpp.
References _ASSERT, and m_Module.
Referenced by CReferenceDataType::CreateTypeInfo(), FileName(), CBitStringDataType::FixTypeTree(), CTypeStrings::GetModuleName(), GetSourceFileName(), GetVar(), Namespace(), PrintASNTag(), ResolveGlobal(), ResolveLocal(), SetParent(), and UpdateModuleName().
Definition at line 403 of file type.hpp.
References m_Namespace.
Referenced by CUniSequenceDataType::CUniSequenceDataType(), GenerateCode(), CChoiceDataType::GenerateCode(), CChoiceDataType::GetFullCType(), COctetStringDataType::GetFullCType(), CUniSequenceDataType::GetFullCType(), CUniSetDataType::GetFullCType(), CAnyContentDataType::PrintXMLSchema(), and CUniSequenceDataType::PrintXMLSchema().
Definition at line 164 of file type.hpp.
References m_ParentType.
Referenced by AddReference(), ClassName(), CReferenceDataType::CreateTypeInfo(), DefClassMemberName(), FileName(), CClientPseudoTypeStrings::GenerateClassCode(), CClassRefTypeStrings::GenerateTypeCode(), CChoiceDataType::GetFullCType(), GetFullName(), GetKeyPrefix(), CBoolDataType::GetSchemaTypeString(), GetVar(), GlobalName(), IdName(), IsInUniSeq(), Namespace(), CReferenceDataType::PrintDTDElement(), CStaticDataType::PrintDTDElement(), CUniSequenceDataType::PrintDTDElement(), CReferenceDataType::PrintDTDExtra(), CUniSequenceDataType::PrintDTDExtra(), PrintSpecDump(), CDataMemberContainerType::PrintSpecDumpExtra(), CDataMemberContainerType::PrintXMLSchema(), CEnumDataType::PrintXMLSchema(), CReferenceDataType::PrintXMLSchema(), CStaticDataType::PrintXMLSchema(), CUniSequenceDataType::PrintXMLSchema(), CBoolDataType::PrintXMLSchemaContents(), CReferenceDataType::ResolveLocalOrParent(), s_QualClassName(), SetInChoice(), SetInSet(), CTraversalNode::x_LoadDataFromASNNode(), x_SetMemberAndClassName(), and XmlTagName().
|
virtual |
Reimplemented in COctetStringDataType, CBitStringDataType, CStringStoreDataType, CStringDataType, CRealDataType, and CReferenceDataType.
Definition at line 770 of file type.cpp.
References CreateTypeInfo(), AutoPtr< X, Del >::get(), m_RealTypeInfo, and AutoPtr< X, Del >::reset().
Referenced by GetAnyTypeInfo(), and CReferenceDataType::GetRealTypeInfo().
|
virtual |
Reimplemented in CReferenceDataType, CEnumDataType, CChoiceDataType, and CDataContainerType.
Definition at line 853 of file type.cpp.
References ClassName(), Comments(), FileName(), GetFullCType(), IsAlias(), Namespace(), and AutoPtr< X, Del >::release().
Referenced by CChoiceDataType::GenerateCode(), CReferenceDataType::GetFullCType(), and CReferenceDataType::GetRefCType().
|
inline |
Definition at line 269 of file type.hpp.
References m_References.
Referenced by CDataMemberContainerType::PrintXMLSchema().
|
inline |
Definition at line 444 of file type.hpp.
References m_Restrictions.
Referenced by CClassTypeStrings::GenerateClassCode(), and CStaticDataType::PrintXMLSchema().
|
virtual |
Reimplemented in CBigIntDataType, CIntDataType, CBase64BinaryDataType, COctetStringDataType, CStringDataType, CRealDataType, and CBoolDataType.
Definition at line 212 of file type.cpp.
References kEmptyStr.
Referenced by CStaticDataType::PrintXMLSchema(), and CUniSequenceDataType::PrintXMLSchema().
Definition at line 382 of file type.hpp.
References sm_SourceDataSpec.
Referenced by GetAnyTypeInfo(), CDataTypeModule::PrintJSONSchema(), and CDataTool::ProcessData().
|
static |
Definition at line 961 of file type.cpp.
References eASN, eDTD, eJSON, eXSD, and sm_SourceDataSpec.
Referenced by CClassTypeStrings::GenerateClassCode(), CChoicePtrTypeStrings::GenerateClassCode(), CChoiceTypeStrings::GenerateClassCode(), and CAliasTypeStrings::GenerateCode().
Definition at line 434 of file type.cpp.
References GetModule(), CModuleContainer::GetSourceFileName(), kEmptyStr, and m_Module.
Referenced by LocationString(), and CTraversalNode::x_LoadDataFromASNNode().
|
inline |
Definition at line 179 of file type.hpp.
References m_SourceLine.
Referenced by LocationString(), PrintSpecDump(), and ASNParser::TypesBlock().
|
virtual |
Reimplemented in CUniSequenceDataType, CReferenceDataType, CChoiceDataType, and CDataContainerType.
Definition at line 207 of file type.cpp.
References GetASNKeyword().
Referenced by CUniSequenceDataType::GetSpecKeyword(), and PrintSpecDump().
|
inline |
Definition at line 318 of file type.hpp.
References m_Tag.
Referenced by CClassTypeStrings::GenerateClassCode(), CChoiceTypeStrings::GenerateClassCode(), CAliasTypeStrings::GenerateCode(), GenerateCode(), and PrintASNTag().
|
inline |
Definition at line 329 of file type.hpp.
References m_TagClass.
Referenced by CClassTypeStrings::GenerateClassCode(), CChoiceTypeStrings::GenerateClassCode(), CAliasTypeStrings::GenerateCode(), and PrintASNTag().
|
static |
Definition at line 147 of file type.cpp.
References CAsnBinaryDefs::eApplication, CAsnBinaryDefs::eContextSpecific, CAsnBinaryDefs::ePrivate, and CAsnBinaryDefs::eUniversal.
Referenced by CClassTypeStrings::GenerateClassCode(), CChoiceTypeStrings::GenerateClassCode(), and CAliasTypeStrings::GenerateCode().
|
inline |
Definition at line 335 of file type.hpp.
References m_TagType.
Referenced by CClassTypeStrings::GenerateClassCode(), CChoiceTypeStrings::GenerateClassCode(), CAliasTypeStrings::GenerateCode(), and PrintASNTag().
|
static |
Definition at line 160 of file type.cpp.
References CAsnBinaryDefs::eExplicit, and CAsnBinaryDefs::eImplicit.
Referenced by CClassTypeStrings::GenerateClassCode(), CChoiceTypeStrings::GenerateClassCode(), and CAliasTypeStrings::GenerateCode().
|
virtual |
Reimplemented in CBigIntDataType, CIntDataType, CBoolDataType, and CNullDataType.
Definition at line 734 of file type.cpp.
References m_TypeRef.
Referenced by CChoiceDataType::CreateTypeInfo(), CReferenceDataType::CreateTypeInfo(), CUniSequenceDataType::CreateTypeInfo(), CUniSetDataType::CreateTypeInfo(), and COctetStringDataType::GetRealTypeInfo().
|
inline |
Definition at line 345 of file type.hpp.
References m_TypeStr.
Referenced by CClassTypeStrings::GenerateClassCode(), CChoiceTypeStrings::GenerateClassCode(), CAliasTypeStrings::GenerateCode(), CClassRefTypeStrings::GenerateTypeCode(), CAliasTypeStrings::GenerateUserHPPCode(), CClassTypeStrings::x_IsNullWithAttlist(), and CChoiceTypeStrings::x_IsNullWithAttlist().
Definition at line 340 of file type.cpp.
References GetArgs, GetDataMember(), GetDEFKeyword(), GetMemberName(), GetModule(), GetParentType(), CDataMember::GetType(), CDataTypeModule::GetVar(), GetVar(), CNcbiApplication::Instance(), IsPrimitive(), IsUniSeq(), kEmptyStr, m_MemberName, CDataMember::Notag(), and string.
Referenced by ClassName(), DefClassMemberName(), FileName(), GenerateCode(), CChoiceDataType::GenerateCode(), GetAndVerifyVar(), GetBoolVar(), CStaticDataType::GetFullCType(), COctetStringDataType::GetFullCType(), GetVar(), InheritFromClass(), InheritFromType(), Namespace(), Skipped(), and COctetStringDataType::x_AsBitString().
Definition at line 479 of file type.cpp.
References CDataMember::Attlist(), GetDataMember(), CDataMember::GetName(), GetParentType(), IsASNDataSpec(), IsInUniSeq(), m_MemberName, NcbiEmptyString, and CDataMember::Notag().
Referenced by CChoiceDataType::CreateTypeInfo(), CUniSequenceDataType::CreateTypeInfo(), CUniSetDataType::CreateTypeInfo(), CClientPseudoTypeStrings::GenerateClassCode(), GenerateCode(), CChoiceDataType::GenerateCode(), GetAnyTypeInfo(), CChoiceDataType::GetFullCType(), and s_ChoiceType().
|
inline |
Definition at line 437 of file type.hpp.
References m_EmptyExternalName.
Referenced by CChoiceDataType::CreateTypeInfo().
|
inline |
Definition at line 322 of file type.hpp.
References eNoExplicitTag, and m_Tag.
Referenced by CClassTypeStrings::GenerateClassCode(), CChoiceTypeStrings::GenerateClassCode(), CAliasTypeStrings::GenerateCode(), and PrintASNTag().
|
inline |
Definition at line 173 of file type.hpp.
References m_ParentType.
Referenced by CRealDataType::GetRealTypeInfo(), CStringDataType::GetRealTypeInfo(), CBitStringDataType::GetRealTypeInfo(), COctetStringDataType::GetRealTypeInfo(), CNullDataType::GetTypeInfo(), CBoolDataType::GetTypeInfo(), CIntDataType::GetTypeInfo(), CBigIntDataType::GetTypeInfo(), and UpdateModuleName().
string CDataType::IdName | ( | void | ) | const |
Definition at line 449 of file type.cpp.
References GetParentType(), IdName(), and m_MemberName.
Referenced by CreateTypeInfo(), GetAndVerifyVar(), CTypeStrings::GetModuleName(), IdName(), and LocationString().
bool CDataType::InChoice | ( | void | ) | const |
string CDataType::InheritFromClass | ( | void | ) | const |
Definition at line 695 of file type.cpp.
References GetVar(), and ResolveGlobal().
Referenced by SetParentClassTo().
|
inline |
Definition at line 356 of file type.hpp.
References m_IsAlias.
Referenced by GenerateCode(), CAliasTypeStrings::GenerateUserHPPCode(), GetAnyTypeInfo(), CReferenceDataType::GetFullCType(), and GetRefCType().
Definition at line 386 of file type.hpp.
References eASN, and sm_SourceDataSpec.
Referenced by CUniSequenceDataType::CheckValue(), CUniSequenceDataType::CreateDefault(), CChoiceDataType::CreateTypeInfo(), CReferenceDataType::CreateTypeInfo(), CClassTypeStrings::GenerateClassCode(), CAliasTypeStrings::GenerateCode(), GenerateCode(), CUniSequenceDataType::GetDefaultString(), CChoiceDataType::GetFullCType(), CBoolDataType::GetSchemaTypeString(), GlobalName(), CStaticDataType::PrintXMLSchema(), CUniSequenceDataType::PrintXMLSchema(), and CBoolDataType::PrintXMLSchemaContents().
bool CDataType::IsContainer | ( | void | ) | const |
Definition at line 286 of file type.cpp.
Referenced by GetFullName(), CDataMemberContainerType::PrintJSONSchema(), CTraversalCodeGenerator::x_CreateNode(), and CTraversalNode::x_LoadDataFromASNNode().
bool CDataType::IsEnumType | ( | void | ) | const |
Definition at line 291 of file type.cpp.
Referenced by CTraversalNode::x_LoadDataFromASNNode().
|
inline |
|
inline |
bool CDataType::IsInUniSeq | ( | void | ) | const |
Definition at line 276 of file type.cpp.
References GetParentType().
Referenced by GetFullName(), and GlobalName().
|
inline |
Definition at line 419 of file type.hpp.
References m_IsNillable.
Referenced by CReferenceDataType::CreateTypeInfo(), CClassTypeStrings::GenerateClassCode(), CStaticDataType::PrintJSONSchema(), CDataMemberContainerType::PrintXMLSchema(), and CStaticDataType::PrintXMLSchema().
|
inline |
Definition at line 411 of file type.hpp.
References m_NsQualified.
Referenced by CUniSequenceDataType::CUniSequenceDataType(), CClassTypeStrings::GenerateClassCode(), CChoiceTypeStrings::GenerateClassCode(), CEnumDataType::PrintXMLSchema(), and CStaticDataType::PrintXMLSchema().
bool CDataType::IsPrimitive | ( | void | ) | const |
bool CDataType::IsReference | ( | void | ) | const |
Definition at line 938 of file type.cpp.
Referenced by CAliasTypeStrings::GenerateCode(), PrintDTD(), CTraversalCodeGenerator::x_CreateNode(), and CTraversalNode::x_LoadDataFromASNNode().
|
inline |
Definition at line 264 of file type.hpp.
References m_References.
Referenced by CDataMemberContainerType::PrintXMLSchema().
bool CDataType::IsStdType | ( | void | ) | const |
Definition at line 908 of file type.cpp.
Referenced by CClientPseudoTypeStrings::GenerateClassCode(), CWsdlTypeStrings::GenerateClassCode(), CAliasTypeStrings::GenerateUserHPPCode(), GetAnyTypeInfo(), and CTraversalNode::x_LoadDataFromASNNode().
|
inline |
Definition at line 363 of file type.hpp.
References m_IsTypeAlias.
Referenced by CAliasTypeStrings::GenerateCode(), GenerateCode(), CReferenceDataType::GenerateCode(), GetAnyTypeInfo(), CReferenceDataType::GetFullCType(), CReferenceDataType::GetRefCType(), CReferenceDataType::PrintXMLSchema(), and CUniSequenceDataType::PrintXMLSchema().
bool CDataType::IsUniSeq | ( | void | ) | const |
Definition at line 281 of file type.cpp.
Referenced by GetFullName(), GetVar(), CClassTypeStrings::SMemberInfo::SMemberInfo(), CTraversalCodeGenerator::x_CreateNode(), and x_SetMemberAndClassName().
Definition at line 389 of file type.hpp.
References eDTD, eXSD, and sm_SourceDataSpec.
Referenced by CReferenceDataType::GetFullCType().
string CDataType::LocationString | ( | void | ) | const |
Definition at line 443 of file type.cpp.
References GetSourceFileName(), GetSourceLine(), IdName(), and NStr::IntToString().
Referenced by CDataTypeModule::AddDefinition(), GetFullCType(), CReferenceDataType::ResolveOrThrow(), CUniSequenceDataType::SetElementType(), and Warning().
const CNamespace & CDataType::Namespace | ( | void | ) | const |
Definition at line 666 of file type.cpp.
References GetModule(), CDataTypeModule::GetNamespace(), GetParentType(), GetVar(), m_CachedNamespace, and Namespace().
Referenced by GetRefCType(), CChoiceDataType::GetRefCType(), Namespace(), and SetParentClassTo().
Reimplemented in CUniSequenceDataType, COctetStringDataType, CBitStringDataType, CStringStoreDataType, and CStringDataType.
Definition at line 765 of file type.cpp.
References CTypeInfo::GetSize().
Referenced by GetAnyTypeInfo().
|
pure virtual |
Implemented in CUniSequenceDataType, CAnyContentDataType, CStaticDataType, CReferenceDataType, CEnumDataType, CChoiceDataType, CDataMemberContainerType, CClientPseudoDataType, and CWsdlDataType.
Referenced by CUniSequenceDataType::PrintASN().
CNcbiOstream & CDataType::PrintASNTag | ( | CNcbiOstream & | out | ) | const |
Definition at line 123 of file type.cpp.
References CAsnBinaryDefs::eApplication, CAsnBinaryDefs::eExplicit, CAsnBinaryDefs::eImplicit, CAsnBinaryDefs::ePrivate, GetModule(), GetTag(), GetTagClass(), GetTagType(), HasTag(), NStr::NumericToString(), and out().
Referenced by CDataMemberContainerType::PrintASN(), CEnumDataType::PrintASN(), CReferenceDataType::PrintASN(), CStaticDataType::PrintASN(), CAnyContentDataType::PrintASN(), and CUniSequenceDataType::PrintASN().
void CDataType::PrintASNTypeComments | ( | CNcbiOstream & | out, |
int | indent, | ||
int | flags = 0 |
||
) | const |
Definition at line 172 of file type.cpp.
References flags, indent(), m_Comments, out(), and CComments::PrintASN().
Referenced by CUniSequenceDataType::PrintASN().
void CDataType::PrintDTD | ( | CNcbiOstream & | out | ) | const |
Definition at line 217 of file type.cpp.
References CComments::eOneLine, m_Comments, out(), CComments::PrintDTD(), PrintDTDElement(), PrintDTDExtra(), x_AddSavedName(), x_IsSavedName(), and XmlTagName().
Referenced by CUniSequenceDataType::PrintDTDExtra().
void CDataType::PrintDTD | ( | CNcbiOstream & | out, |
const CComments & | extra | ||
) | const |
Definition at line 229 of file type.cpp.
References CDataMember::Attlist(), CComments::Empty(), CComments::eNoEOL, CComments::eOneLine, IsReference(), m_Comments, m_DataMember, CDataMember::Notag(), out(), CComments::PrintDTD(), PrintDTDElement(), PrintDTDExtra(), Resolve(), x_AddSavedName(), x_IsSavedName(), and XmlTagName().
|
pure virtual |
Implemented in CUniSequenceDataType, CAnyContentDataType, CStaticDataType, CReferenceDataType, CEnumDataType, CDataMemberContainerType, CClientPseudoDataType, and CWsdlDataType.
Referenced by PrintDTD(), CReferenceDataType::PrintDTDElement(), and CUniSequenceDataType::PrintDTDElement().
|
virtual |
Reimplemented in CUniSequenceDataType, CBoolDataType, CReferenceDataType, CEnumDataType, and CDataMemberContainerType.
Definition at line 252 of file type.cpp.
Referenced by PrintDTD(), CReferenceDataType::PrintDTDExtra(), and CUniSequenceDataType::PrintDTDExtra().
void CDataType::PrintDTDTypeComments | ( | CNcbiOstream & | out, |
int | indent | ||
) | const |
Definition at line 178 of file type.cpp.
References CComments::eNoEOL, m_Comments, out(), and CComments::PrintDTD().
Referenced by CUniSequenceDataType::PrintDTDElement().
|
pure virtual |
Implemented in CUniSequenceDataType, CAnyContentDataType, CStaticDataType, CReferenceDataType, CEnumDataType, CChoiceDataType, CDataMemberContainerType, CClientPseudoDataType, and CWsdlDataType.
Referenced by CUniSequenceDataType::PrintJSONSchema().
|
virtual |
Definition at line 188 of file type.cpp.
References CComments::eNoEOL, GetFullName(), GetParentType(), GetSourceLine(), GetSpecKeyword(), indent(), m_Comments, out(), CComments::PrintASN(), PrintASNNewLine(), and PrintSpecDumpExtra().
Referenced by CUniSequenceDataType::PrintSpecDumpExtra().
|
virtual |
Reimplemented in CUniSequenceDataType, CEnumDataType, and CDataMemberContainerType.
Definition at line 203 of file type.cpp.
Referenced by PrintSpecDump().
|
pure virtual |
Implemented in CUniSequenceDataType, CAnyContentDataType, CStaticDataType, CReferenceDataType, CEnumDataType, CDataMemberContainerType, CClientPseudoDataType, and CWsdlDataType.
Referenced by CUniSequenceDataType::PrintXMLSchema().
|
virtual |
Reimplemented in CReferenceDataType.
Reimplemented in CReferenceDataType.
Definition at line 708 of file type.cpp.
Referenced by CClientPseudoTypeStrings::GenerateClassCode(), PrintDTD(), and s_ChoiceType().
Definition at line 718 of file type.cpp.
References GetModule(), CModuleContainer::GetModuleContainer(), CModuleContainer::InternalResolve(), NPOS, and CDataTypeModule::Resolve().
Referenced by CChoiceDataType::GenerateCode(), and InheritFromType().
Definition at line 713 of file type.cpp.
References GetModule(), and CDataTypeModule::Resolve().
Referenced by CReferenceDataType::ResolveLocalOrParent().
|
inline |
Definition at line 303 of file type.hpp.
References m_DataMember.
|
inline |
Definition at line 434 of file type.hpp.
References m_EmptyExternalName.
Definition at line 373 of file type.hpp.
References sm_EnforcedStdXml.
Referenced by CDataTool::ProcessModules().
|
inline |
Definition at line 428 of file type.hpp.
References m_GlobalType, and type.
void CDataType::SetInChoice | ( | const CChoiceDataType * | choice | ) |
Definition at line 262 of file type.cpp.
References _ASSERT, GetParentType(), and m_Choice.
void CDataType::SetInSet | ( | const CUniSequenceDataType * | sequence | ) |
Definition at line 256 of file type.cpp.
References _ASSERT, GetParentType(), and m_Set.
Referenced by CUniSequenceDataType::FixTypeTree().
|
inline |
Definition at line 353 of file type.hpp.
References m_IsAlias, and rapidjson::value.
|
inline |
Definition at line 360 of file type.hpp.
References m_IsTypeAlias, and rapidjson::value.
Referenced by CReferenceDataType::GenerateCode(), CReferenceDataType::GetFullCType(), and CReferenceDataType::GetRefCType().
Definition at line 399 of file type.hpp.
References m_Namespace.
Referenced by CUniSequenceDataType::CUniSequenceDataType().
|
inline |
Definition at line 415 of file type.hpp.
References m_IsNillable.
|
inline |
Definition at line 407 of file type.hpp.
References eNSQualified, eNSUnqualified, and m_NsQualified.
Referenced by CUniSequenceDataType::CUniSequenceDataType().
void CDataType::SetParent | ( | const CDataType * | parent, |
const string & | memberName, | ||
string | xmlName = kEmptyStr |
||
) |
Definition at line 296 of file type.cpp.
References _ASSERT, FixTypeTree(), CDataMember::GetDefault(), GetModule(), m_DataMember, m_MemberName, m_Module, m_ParentType, m_XmlName, CDataValue::SetModule(), and x_SetMemberAndClassName().
Referenced by CDataTypeModule::AddDefinition(), CClientPseudoDataType::CClientPseudoDataType(), CBitStringDataType::FixTypeTree(), and CUniSequenceDataType::FixTypeTree().
void CDataType::SetParent | ( | const CDataTypeModule * | module, |
const string & | typeName | ||
) |
Definition at line 312 of file type.cpp.
References _ASSERT, FixTypeTree(), m_MemberName, m_Module, m_ParentType, and x_SetMemberAndClassName().
void CDataType::SetParentClassTo | ( | CClassTypeStrings & | code | ) | const |
Definition at line 827 of file type.cpp.
References ClassName(), FileName(), InheritFromClass(), InheritFromType(), CNamespace::KEmptyNamespace, Namespace(), NcbiEmptyString, and NPOS.
Referenced by GenerateCode(), and CChoiceDataType::GetFullCType().
|
inline |
Definition at line 441 of file type.hpp.
References m_Restrictions.
Definition at line 379 of file type.hpp.
References sm_SourceDataSpec.
Referenced by CDataTool::LoadDefinitions().
void CDataType::SetSourceLine | ( | int | line | ) |
Definition at line 112 of file type.cpp.
References m_SourceLine.
Referenced by DTDParser::TypesBlock(), and DTDParser::x_Type().
|
inline |
Definition at line 314 of file type.hpp.
Referenced by ASNParser::x_Type().
|
inline |
|
inline |
|
inline |
Definition at line 342 of file type.hpp.
References m_TypeStr.
Referenced by CChoiceDataType::GetFullCType().
bool CDataType::Skipped | ( | void | ) | const |
Definition at line 525 of file type.cpp.
References GetVar().
Referenced by CCodeGenerator::CollectTypes(), and CReferenceDataType::GetFullCType().
Definition at line 786 of file type.cpp.
References GetModule(), HaveModuleName(), and CTypeInfo::SetModuleName().
Referenced by CChoiceDataType::CreateTypeInfo(), CUniSequenceDataType::CreateTypeInfo(), CUniSetDataType::CreateTypeInfo(), CRealDataType::GetRealTypeInfo(), CStringDataType::GetRealTypeInfo(), CBitStringDataType::GetRealTypeInfo(), COctetStringDataType::GetRealTypeInfo(), CNullDataType::GetTypeInfo(), CBoolDataType::GetTypeInfo(), CIntDataType::GetTypeInfo(), and CBigIntDataType::GetTypeInfo().
Definition at line 117 of file type.cpp.
References ErrCode, LocationString(), and NCBI_ERRCODE_X.
Referenced by CReferenceDataType::CheckType(), and GetDefaultString().
Definition at line 949 of file type.cpp.
References set< Key, Compare >::insert(), sm_EnforcedStdXml, and sm_SavedNames.
Referenced by PrintDTD().
Definition at line 943 of file type.cpp.
References set< Key, Compare >::end(), set< Key, Compare >::find(), sm_EnforcedStdXml, and sm_SavedNames.
Referenced by PrintDTD().
Definition at line 548 of file type.cpp.
References GetParentType(), Identifier(), IsUniSeq(), m_ClassName, m_MemberName, and type.
Referenced by SetParent().
string CDataType::XmlTagName | ( | void | ) | const |
Definition at line 462 of file type.cpp.
References GetEnforcedStdXml(), GetParentType(), m_MemberName, m_XmlName, and XmlTagName().
Referenced by PrintDTD(), CReferenceDataType::PrintDTDElement(), CStaticDataType::PrintDTDElement(), CAnyContentDataType::PrintDTDElement(), CUniSequenceDataType::PrintDTDElement(), CReferenceDataType::PrintDTDExtra(), CBoolDataType::PrintDTDExtra(), CUniSequenceDataType::PrintDTDExtra(), CDataMemberContainerType::PrintXMLSchema(), CEnumDataType::PrintXMLSchema(), CReferenceDataType::PrintXMLSchema(), CStaticDataType::PrintXMLSchema(), CAnyContentDataType::PrintXMLSchema(), CUniSequenceDataType::PrintXMLSchema(), and XmlTagName().
Definition at line 472 of file type.hpp.
Referenced by GetAnyTypeInfo().
|
mutableprivate |
Definition at line 475 of file type.hpp.
Referenced by FileName().
|
mutableprivate |
Definition at line 476 of file type.hpp.
Referenced by Namespace().
|
private |
Definition at line 466 of file type.hpp.
Referenced by GetInChoice(), IsInChoice(), and SetInChoice().
|
private |
Definition at line 457 of file type.hpp.
Referenced by ClassName(), and x_SetMemberAndClassName().
|
private |
Definition at line 460 of file type.hpp.
Referenced by Comments(), PrintASNTypeComments(), PrintDTD(), PrintDTDTypeComments(), and PrintSpecDump().
|
private |
Definition at line 461 of file type.hpp.
Referenced by GetDataMember(), PrintDTD(), SetDataMember(), and SetParent().
|
private |
Definition at line 487 of file type.hpp.
Referenced by HasExternalName(), and SetEmptyExternalName().
Definition at line 482 of file type.hpp.
Referenced by AllowVar(), ForbidVar(), and GetAndVerifyVar().
|
private |
Definition at line 486 of file type.hpp.
Referenced by GetGlobalType(), and SetGlobalType().
|
private |
Definition at line 480 of file type.hpp.
Referenced by IsAlias(), and SetIsAlias().
|
private |
Definition at line 485 of file type.hpp.
Referenced by IsNillable(), and SetNillable().
|
mutableprivate |
Definition at line 481 of file type.hpp.
Referenced by IsTypeAlias(), and SetIsTypeAlias().
|
private |
Definition at line 456 of file type.hpp.
Referenced by ClassName(), FileName(), GetKeyPrefix(), GetMemberName(), GetVar(), GlobalName(), IdName(), SetParent(), x_SetMemberAndClassName(), and XmlTagName().
|
private |
Definition at line 455 of file type.hpp.
Referenced by Check(), GetModule(), GetSourceFileName(), and SetParent().
|
private |
Definition at line 483 of file type.hpp.
Referenced by GetNamespaceName(), and SetNamespaceName().
|
private |
Definition at line 484 of file type.hpp.
Referenced by IsNsQualified(), and SetNsQualified().
Definition at line 454 of file type.hpp.
Referenced by GetParentType(), HaveModuleName(), and SetParent().
Definition at line 473 of file type.hpp.
Referenced by GetRealTypeInfo().
|
private |
Definition at line 467 of file type.hpp.
Referenced by AddReference(), GetReferences(), and IsReferenced().
|
private |
Definition at line 488 of file type.hpp.
Referenced by GetRestrictions(), and SetRestrictions().
|
private |
Definition at line 465 of file type.hpp.
Referenced by GetInSet(), IsInSet(), and SetInSet().
|
private |
Definition at line 459 of file type.hpp.
Referenced by GetSourceLine(), and SetSourceLine().
|
private |
|
private |
Definition at line 478 of file type.hpp.
Referenced by GetTagClass(), and SetTagClass().
|
private |
Definition at line 479 of file type.hpp.
Referenced by GetTagType(), and SetTagType().
|
private |
Definition at line 471 of file type.hpp.
Referenced by GetTypeInfo().
|
mutableprivate |
Definition at line 462 of file type.hpp.
Referenced by GetTypeStr(), and SetTypeStr().
|
private |
Definition at line 458 of file type.hpp.
Referenced by SetParent(), and XmlTagName().
Definition at line 474 of file type.hpp.
Referenced by FileName().
Definition at line 496 of file type.hpp.
Referenced by ClassName().
Definition at line 492 of file type.hpp.
Referenced by DTDEntitiesEnabled(), and EnableDTDEntities().
Definition at line 493 of file type.hpp.
Referenced by GetEnforcedStdXml(), SetEnforcedStdXml(), x_AddSavedName(), and x_IsSavedName().
Definition at line 495 of file type.hpp.
Referenced by x_AddSavedName(), and x_IsSavedName().
|
staticprivate |
Definition at line 494 of file type.hpp.
Referenced by GetSourceDataSpec(), GetSourceDataSpecString(), IsASNDataSpec(), IsXMLDataSpec(), and SetSourceDataSpec().