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

Search Toolkit Book for CIntDataType

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

+ Inheritance diagram for CIntDataType:
+ Collaboration diagram for CIntDataType:

Public Member Functions

 CIntDataType (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 CTypeRef GetTypeInfo (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 const CTypeInfoGetAnyTypeInfo (void)
 
virtual bool NeedAutoPointer (const CTypeInfo *typeInfo) const
 
virtual const CTypeInfoGetRealTypeInfo (void)
 
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 193 of file statictype.hpp.

Member Typedef Documentation

◆ CParent

Definition at line 194 of file statictype.hpp.

Constructor & Destructor Documentation

◆ CIntDataType()

CIntDataType::CIntDataType ( void  )

Definition at line 906 of file statictype.cpp.

References CDataType::ForbidVar().

Member Function Documentation

◆ CheckValue()

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

Implements CDataType.

Reimplemented in CBigIntDataType.

Definition at line 931 of file statictype.cpp.

References CheckValueType, and rapidjson::value.

◆ CreateDefault()

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

Reimplemented from CStaticDataType.

Reimplemented in CBigIntDataType.

Definition at line 937 of file statictype.cpp.

References rapidjson::value.

◆ GetASNKeyword()

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

Reimplemented from CDataType.

Reimplemented in CBigIntDataType.

Definition at line 911 of file statictype.cpp.

◆ GetDefaultCType()

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

Implements CStaticDataType.

Reimplemented in CBigIntDataType.

Definition at line 954 of file statictype.cpp.

◆ GetDefaultString()

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

Reimplemented from CDataType.

Reimplemented in CBigIntDataType.

Definition at line 942 of file statictype.cpp.

References NStr::Int8ToString(), and rapidjson::value.

◆ GetDEFKeyword()

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

Reimplemented from CDataType.

Reimplemented in CBigIntDataType.

Definition at line 916 of file statictype.cpp.

◆ GetSchemaTypeString()

string CIntDataType::GetSchemaTypeString ( void  ) const
overridevirtual

Reimplemented from CDataType.

Reimplemented in CBigIntDataType.

Definition at line 926 of file statictype.cpp.

◆ GetTypeInfo()

CTypeRef CIntDataType::GetTypeInfo ( void  )
overridevirtual

Reimplemented from CDataType.

Reimplemented in CBigIntDataType.

Definition at line 947 of file statictype.cpp.

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

◆ GetXMLContents()

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

Implements CStaticDataType.

Reimplemented in CBigIntDataType.

Definition at line 921 of file statictype.cpp.

References CDataType::DTDEntitiesEnabled().


The documentation for this class was generated from the following files:
Modified on Thu Jun 13 17:29:34 2024 by modify_doxy.py rev. 669887