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

Search Toolkit Book for CClassRefTypeStrings

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

+ Inheritance diagram for CClassRefTypeStrings:
+ Collaboration diagram for CClassRefTypeStrings:

Public Member Functions

 CClassRefTypeStrings (const string &className, const CNamespace &ns, const string &fileName, const CComments &comments)
 
string GetClassName (void) const
 
virtual string GetCType (const CNamespace &ns) const override
 
virtual string GetPrefixedCType (const CNamespace &ns, const string &methodPrefix) const override
 
virtual string GetRef (const CNamespace &ns) const override
 
virtual EKind GetKind (void) const override
 
virtual const CNamespaceGetNamespace (void) const override
 
virtual string GetResetCode (const string &var) const override
 
virtual void GenerateTypeCode (CClassContext &ctx) const override
 
virtual void GeneratePointerTypeCode (CClassContext &ctx) const override
 
- Public Member Functions inherited from CTypeStrings
 CTypeStrings (void)
 
 CTypeStrings (const CComments &comments)
 
 CTypeStrings (const string &namespaceName, const CDataType *dataType)
 
 CTypeStrings (const string &namespaceName, const CDataType *dataType, const CComments &comments)
 
virtual ~CTypeStrings (void)
 
const stringGetModuleName (void) const
 
string GetModuleName (SInternalNames *names) const
 
string GetDoxygenModuleName (void) const
 
void SetModuleName (const string &name)
 
void SetNamespaceName (const string &name)
 
const stringGetNamespaceName (void) const
 
virtual bool HaveSpecialRef (void) const
 
virtual const stringGetEnumName (void) const
 
virtual bool CanBeKey (void) const
 
virtual bool CanBeCopied (void) const
 
virtual bool NeedSetFlag (void) const
 
virtual string NewInstance (const string &init, const string &place=kEmptyStr) const
 
virtual string GetInitializer (void) const
 
virtual string GetDestructionCode (const string &expr) const
 
virtual string GetIsSetCode (const string &var) const
 
virtual string GetDefaultCode (const string &var) const
 
virtual void GenerateCode (CClassContext &ctx) const
 
virtual void GenerateUserHPPCode (CNcbiOstream &out) const
 
virtual void GenerateUserCPPCode (CNcbiOstream &out) const
 
void BeginClassDeclaration (CClassContext &ctx) const
 
void PrintHPPComments (CNcbiOstream &out) const
 
const CCommentsComments (void) const
 
const CDataTypeDataType (void) const
 
void SetDataType (const CDataType *type)
 
virtual void SetStorageType (const string &storage)
 
virtual string GetStorageType (const CNamespace &ns) const
 
void SetSpecialRef (const string &ref)
 

Private Attributes

string m_ClassName
 
CNamespace m_Namespace
 
string m_FileName
 

Additional Inherited Members

- Public Types inherited from CTypeStrings
enum  EKind {
  eKindStd , eKindEnum , eKindString , eKindPointer ,
  eKindRef , eKindObject , eKindClass , eKindContainer ,
  eKindOther
}
 
- Static Public Member Functions inherited from CTypeStrings
static void AdaptForSTL (AutoPtr< CTypeStrings > &type)
 
static const char * GetFacetString (ESerialFacet c)
 

Detailed Description

Definition at line 181 of file classstr.hpp.

Constructor & Destructor Documentation

◆ CClassRefTypeStrings()

CClassRefTypeStrings::CClassRefTypeStrings ( const string className,
const CNamespace ns,
const string fileName,
const CComments comments 
)

Definition at line 1813 of file classstr.cpp.

Member Function Documentation

◆ GeneratePointerTypeCode()

void CClassRefTypeStrings::GeneratePointerTypeCode ( CClassContext ctx) const
overridevirtual

◆ GenerateTypeCode()

void CClassRefTypeStrings::GenerateTypeCode ( CClassContext ctx) const
overridevirtual

◆ GetClassName()

string CClassRefTypeStrings::GetClassName ( void  ) const

Definition at line 1860 of file classstr.cpp.

References m_ClassName.

Referenced by CAliasTypeStrings::GenerateCode().

◆ GetCType()

string CClassRefTypeStrings::GetCType ( const CNamespace ns) const
overridevirtual

Implements CTypeStrings.

Definition at line 1865 of file classstr.cpp.

References CNamespace::GetNamespaceRef(), m_ClassName, and m_Namespace.

Referenced by GetPrefixedCType(), and GetRef().

◆ GetKind()

CTypeStrings::EKind CClassRefTypeStrings::GetKind ( void  ) const
overridevirtual

Implements CTypeStrings.

Definition at line 1824 of file classstr.cpp.

References CTypeStrings::eKindObject.

◆ GetNamespace()

const CNamespace & CClassRefTypeStrings::GetNamespace ( void  ) const
overridevirtual

Reimplemented from CTypeStrings.

Definition at line 1829 of file classstr.cpp.

References m_Namespace.

◆ GetPrefixedCType()

string CClassRefTypeStrings::GetPrefixedCType ( const CNamespace ns,
const string methodPrefix 
) const
overridevirtual

Implements CTypeStrings.

Definition at line 1870 of file classstr.cpp.

References GetCType().

◆ GetRef()

string CClassRefTypeStrings::GetRef ( const CNamespace ns) const
overridevirtual

Reimplemented from CTypeStrings.

Definition at line 1876 of file classstr.cpp.

References GetCType().

◆ GetResetCode()

string CClassRefTypeStrings::GetResetCode ( const string var) const
overridevirtual

Reimplemented from CTypeStrings.

Definition at line 1881 of file classstr.cpp.

Member Data Documentation

◆ m_ClassName

string CClassRefTypeStrings::m_ClassName
private

Definition at line 203 of file classstr.hpp.

Referenced by GeneratePointerTypeCode(), GenerateTypeCode(), GetClassName(), and GetCType().

◆ m_FileName

string CClassRefTypeStrings::m_FileName
private

Definition at line 205 of file classstr.hpp.

Referenced by GeneratePointerTypeCode(), and GenerateTypeCode().

◆ m_Namespace

CNamespace CClassRefTypeStrings::m_Namespace
private

Definition at line 204 of file classstr.hpp.

Referenced by GeneratePointerTypeCode(), GenerateTypeCode(), GetCType(), and GetNamespace().


The documentation for this class was generated from the following files:
Modified on Thu Jul 18 16:02:37 2024 by modify_doxy.py rev. 669887