NCBI C++ ToolKit
Public Member Functions | Private Types | List of all members
CRealDataType Class Reference

Search Toolkit Book for CRealDataType

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

+ Inheritance diagram for CRealDataType:
+ Collaboration diagram for CRealDataType:

Public Member Functions

 CRealDataType (void)
 
virtual bool CheckValue (const CDataValue &value) const override
 
virtual TObjectPtr CreateDefault (const CDataValue &value) const override
 
virtual string GetDefaultString (const CDataValue &value) const override
 
virtual const CTypeInfoGetRealTypeInfo (void) override
 
virtual const char * GetDefaultCType (void) const override
 
virtual const char * GetASNKeyword (void) const override
 
virtual const char * GetDEFKeyword (void) const override
 
virtual const char * GetXMLContents (void) const override
 
virtual string GetSchemaTypeString (void) const override
 
- Public Member Functions inherited from CStaticDataType
virtual void PrintASN (CNcbiOstream &out, int indent) const override
 
virtual void PrintJSONSchema (CNcbiOstream &out, int indent, list< string > &required, bool contents_only=false) const override
 
virtual void PrintXMLSchema (CNcbiOstream &out, int indent, bool contents_only=false) const override
 
virtual void PrintDTDElement (CNcbiOstream &out, bool contents_only=false) const override
 
virtual AutoPtr< CTypeStringsGetFullCType (void) const override
 
virtual bool PrintXMLSchemaContents (CNcbiOstream &out, int indent, const CDataMember *mem) const
 
- Public Member Functions inherited from CDataType
 CDataType (void)
 
virtual ~CDataType (void)
 
const CDataTypeGetParentType (void) const
 
const CDataTypeModuleGetModule (void) const
 
bool HaveModuleName (void) const
 
const stringGetSourceFileName (void) const
 
int GetSourceLine (void) const
 
void SetSourceLine (int line)
 
string LocationString (void) const
 
string GetKeyPrefix (void) const
 
string IdName (void) const
 
string XmlTagName (void) const
 
const stringGlobalName (void) const
 
bool Skipped (void) const
 
string DefClassMemberName (void) const
 
string ClassName (void) const
 
string FileName (void) const
 
const CNamespaceNamespace (void) const
 
string InheritFromClass (void) const
 
const CDataTypeInheritFromType (void) const
 
const string GetVar (const string &value, int collect=0) const
 
bool GetBoolVar (const string &value, bool default_value=false) const
 
void ForbidVar (const string &var, const string &value)
 
void AllowVar (const string &var, const string &value)
 
const string GetAndVerifyVar (const string &value) const
 
bool InChoice (void) const
 
void PrintASNTypeComments (CNcbiOstream &out, int indent, int flags=0) const
 
void PrintDTDTypeComments (CNcbiOstream &out, int indent) const
 
virtual void PrintSpecDump (CNcbiOstream &out, int indent) const
 
virtual void PrintSpecDumpExtra (CNcbiOstream &out, int indent) const
 
virtual string GetSpecKeyword (void) const
 
void PrintDTD (CNcbiOstream &out) const
 
void PrintDTD (CNcbiOstream &out, const CComments &extra) const
 
virtual void PrintDTDExtra (CNcbiOstream &out) const
 
virtual CTypeRef GetTypeInfo (void)
 
virtual const CTypeInfoGetAnyTypeInfo (void)
 
virtual bool NeedAutoPointer (const CTypeInfo *typeInfo) const
 
virtual CTypeInfoCreateTypeInfo (void)
 
CTypeInfoUpdateModuleName (CTypeInfo *typeInfo) const
 
void Warning (const string &mess, int err_subcode=0) const
 
virtual AutoPtr< CTypeStringsGenerateCode (void) const
 
void SetParentClassTo (CClassTypeStrings &code) const
 
virtual AutoPtr< CTypeStringsGetRefCType (void) const
 
virtual const CDataTypeResolve (void) const
 
virtual CDataTypeResolve (void)
 
CDataTypeResolveGlobal (const string &name) const
 
CDataTypeResolveLocal (const string &name) const
 
bool IsInSet (void) const
 
const CUniSequenceDataTypeGetInSet (void) const
 
void SetInSet (const CUniSequenceDataType *sequence)
 
bool IsInChoice (void) const
 
const CChoiceDataTypeGetInChoice (void) const
 
void SetInChoice (const CChoiceDataType *choice)
 
bool IsReferenced (void) const
 
void AddReference (const CReferenceDataType *reference)
 
const TReferencesGetReferences (void) const
 
bool IsInUniSeq (void) const
 
bool IsUniSeq (void) const
 
bool IsContainer (void) const
 
bool IsEnumType (void) const
 
void SetParent (const CDataType *parent, const string &memberName, string xmlName=kEmptyStr)
 
void SetParent (const CDataTypeModule *module, const string &typeName)
 
virtual void FixTypeTree (void) const
 
bool Check (void)
 
virtual bool CheckType (void) const
 
CCommentsComments (void)
 
const CCommentsComments (void) const
 
void SetDataMember (CDataMember *dm)
 
const CDataMemberGetDataMember (void) const
 
void SetTag (CAsnBinaryDefs::TLongTag tag)
 
CAsnBinaryDefs::TLongTag GetTag (void) const
 
bool HasTag (void) const
 
void SetTagClass (CAsnBinaryDefs::ETagClass tclass)
 
CAsnBinaryDefs::ETagClass GetTagClass (void) const
 
void SetTagType (CAsnBinaryDefs::ETagType ttype)
 
CAsnBinaryDefs::ETagType GetTagType (void) const
 
CNcbiOstreamPrintASNTag (CNcbiOstream &out) const
 
void SetTypeStr (CClassTypeStrings *TypeStr) const
 
CClassTypeStringsGetTypeStr (void) const
 
bool IsPrimitive (void) const
 
bool IsStdType (void) const
 
bool IsReference (void) const
 
void SetIsAlias (bool value)
 
bool IsAlias (void) const
 
void SetIsTypeAlias (bool value) const
 
bool IsTypeAlias (void) const
 
const stringGetMemberName (void) const
 
void SetNamespaceName (const string &name)
 
const stringGetNamespaceName (void) const
 
void SetNsQualified (bool qualified)
 
ENsQualifiedMode IsNsQualified (void) const
 
void SetNillable (void)
 
bool IsNillable (void) const
 
void SetGlobalType (EGlobalType type)
 
EGlobalType GetGlobalType (void) const
 
void SetEmptyExternalName (bool set)
 
bool HasExternalName (void) const
 
string GetFullName (void) const
 
void SetRestrictions (const list< CMemberFacet > &c)
 
const list< CMemberFacet > & GetRestrictions (void) const
 

Private Types

typedef CStaticDataType CParent
 

Additional Inherited Members

- Public Types inherited from CDataType
enum  { eNoExplicitTag = -1 }
 
enum  EGlobalType { eElement = 0 , eType , eGroup }
 
typedef void * TObjectPtr
 
typedef list< const CReferenceDataType * > TReferences
 
- Static Public Member Functions inherited from CDataType
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 inherited from CDataType
void x_SetMemberAndClassName (const string &memberName)
 
- Static Protected Member Functions inherited from CDataType
static bool x_IsSavedName (const string &name)
 
static void x_AddSavedName (const string &name)
 

Detailed Description

Definition at line 90 of file statictype.hpp.

Member Typedef Documentation

◆ CParent

Definition at line 91 of file statictype.hpp.

Constructor & Destructor Documentation

◆ CRealDataType()

CRealDataType::CRealDataType ( void  )

Definition at line 503 of file statictype.cpp.

References CDataType::ForbidVar().

Member Function Documentation

◆ CheckValue()

bool CRealDataType::CheckValue ( const CDataValue value) const
overridevirtual

Implements CDataType.

Definition at line 528 of file statictype.cpp.

References CheckValueType, CBlockDataValue::GetValues(), i, and rapidjson::value.

◆ CreateDefault()

TObjectPtr CRealDataType::CreateDefault ( const CDataValue value) const
overridevirtual

Reimplemented from CStaticDataType.

Definition at line 546 of file statictype.cpp.

References CDataValueTmpl< Type >::GetValue(), i, and rapidjson::value.

◆ GetASNKeyword()

const char * CRealDataType::GetASNKeyword ( void  ) const
overridevirtual

Reimplemented from CDataType.

Definition at line 508 of file statictype.cpp.

◆ GetDefaultCType()

const char * CRealDataType::GetDefaultCType ( void  ) const
overridevirtual

Implements CStaticDataType.

Definition at line 585 of file statictype.cpp.

◆ GetDefaultString()

string CRealDataType::GetDefaultString ( const CDataValue value) const
overridevirtual

◆ GetDEFKeyword()

const char * CRealDataType::GetDEFKeyword ( void  ) const
overridevirtual

Reimplemented from CDataType.

Definition at line 513 of file statictype.cpp.

◆ GetRealTypeInfo()

TTypeInfo CRealDataType::GetRealTypeInfo ( void  )
overridevirtual

Reimplemented from CDataType.

Definition at line 578 of file statictype.cpp.

References CDataType::HaveModuleName(), and CDataType::UpdateModuleName().

◆ GetSchemaTypeString()

string CRealDataType::GetSchemaTypeString ( void  ) const
overridevirtual

Reimplemented from CDataType.

Definition at line 523 of file statictype.cpp.

◆ GetXMLContents()

const char * CRealDataType::GetXMLContents ( void  ) const
overridevirtual

Implements CStaticDataType.

Definition at line 518 of file statictype.cpp.

References CDataType::DTDEntitiesEnabled().


The documentation for this class was generated from the following files:
Modified on Sun Jul 14 04:54:54 2024 by modify_doxy.py rev. 669887