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

Search Toolkit Book for CFileModules

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

+ Inheritance diagram for CFileModules:
+ Collaboration diagram for CFileModules:

Public Types

typedef list< AutoPtr< CDataTypeModule > > TModules
 
typedef map< string, CDataTypeModule * > TModulesByName
 

Public Member Functions

 CFileModules (const string &fileName)
 
bool Check (void) const
 
bool CheckNames (void) const
 
void PrintSampleDEF (const string &rootdir) const
 
void PrintASN (CNcbiOstream &out) const
 
void PrintSpecDump (CNcbiOstream &out) const
 
void PrintJSONSchema (CNcbiOstream &out) const
 
void PrintXMLSchema (CNcbiOstream &out) const
 
void GetRefInfo (list< string > &info) const
 
void PrintASNRefInfo (CNcbiOstream &out) const
 
void PrintXMLRefInfo (CNcbiOstream &out) const
 
void PrintDTD (CNcbiOstream &out) const
 
void PrintDTDModular (void) const
 
void PrintXMLSchemaModular (void) const
 
void BeginXMLSchema (CNcbiOstream &out) const
 
void EndXMLSchema (CNcbiOstream &out) const
 
virtual const stringGetSourceFileName (void) const override
 
virtual string GetFileNamePrefix (void) const override
 
void AddModule (const AutoPtr< CDataTypeModule > &module)
 
const TModulesGetModules (void) const
 
CDataTypeExternalResolve (const string &moduleName, const string &typeName, bool allowInternal=false) const
 
CDataTypeResolveInAnyModule (const string &fullName, bool allowInternal=false) const
 
void CollectAllTypeinfo (set< TTypeInfo > &types) const
 
CCommentsLastComments (void)
 
- Public Member Functions inherited from CModuleContainer
 CModuleContainer (void)
 
virtual ~CModuleContainer (void)
 
virtual const CMemoryRegistryGetConfig (void) const
 
virtual EFileNamePrefixSource GetFileNamePrefixSource (void) const
 
bool MakeFileNamePrefixFromSourceFileName (void) const
 
bool MakeFileNamePrefixFromModuleName (void) const
 
bool UseAllFileNamePrefixes (void) const
 
virtual CDataTypeInternalResolve (const string &moduleName, const string &typeName) const
 
virtual const CNamespaceGetNamespace (void) const
 
virtual string GetNamespaceRef (const CNamespace &ns) const
 
void SetModuleContainer (const CModuleContainer *parent)
 
const CModuleContainerGetModuleContainer (void) const
 

Private Attributes

TModules m_Modules
 
TModulesByName m_ModulesByName
 
string m_SourceFileName
 
CComments m_LastComments
 
string m_PrefixFromSourceFileName
 

Friends

class CFileSet
 

Detailed Description

Definition at line 52 of file moduleset.hpp.

Member Typedef Documentation

◆ TModules

Definition at line 55 of file moduleset.hpp.

◆ TModulesByName

Definition at line 56 of file moduleset.hpp.

Constructor & Destructor Documentation

◆ CFileModules()

CFileModules::CFileModules ( const string fileName)

Definition at line 50 of file moduleset.cpp.

Member Function Documentation

◆ AddModule()

void CFileModules::AddModule ( const AutoPtr< CDataTypeModule > &  module)

◆ BeginXMLSchema()

void CFileModules::BeginXMLSchema ( CNcbiOstream out) const

◆ Check()

bool CFileModules::Check ( void  ) const

Definition at line 69 of file moduleset.cpp.

References ITERATE, m_Modules, and ok.

◆ CheckNames()

bool CFileModules::CheckNames ( void  ) const

Definition at line 79 of file moduleset.cpp.

References ITERATE, m_Modules, and ok.

◆ CollectAllTypeinfo()

void CFileModules::CollectAllTypeinfo ( set< TTypeInfo > &  types) const

Definition at line 333 of file moduleset.cpp.

References i, ITERATE, m_Modules, and types.

◆ EndXMLSchema()

void CFileModules::EndXMLSchema ( CNcbiOstream out) const

Definition at line 269 of file moduleset.cpp.

References out().

Referenced by PrintXMLSchema(), and PrintXMLSchemaModular().

◆ ExternalResolve()

CDataType * CFileModules::ExternalResolve ( const string moduleName,
const string typeName,
bool  allowInternal = false 
) const

◆ GetFileNamePrefix()

string CFileModules::GetFileNamePrefix ( void  ) const
overridevirtual

◆ GetModules()

const TModules& CFileModules::GetModules ( void  ) const
inline

Definition at line 85 of file moduleset.hpp.

References m_Modules.

◆ GetRefInfo()

void CFileModules::GetRefInfo ( list< string > &  info) const

◆ GetSourceFileName()

const string & CFileModules::GetSourceFileName ( void  ) const
overridevirtual

Reimplemented from CModuleContainer.

Definition at line 274 of file moduleset.cpp.

References m_SourceFileName.

Referenced by AddModule(), and GetRefInfo().

◆ LastComments()

CComments& CFileModules::LastComments ( void  )
inline

Definition at line 97 of file moduleset.hpp.

References m_LastComments.

◆ PrintASN()

void CFileModules::PrintASN ( CNcbiOstream out) const

◆ PrintASNRefInfo()

void CFileModules::PrintASNRefInfo ( CNcbiOstream out) const

Definition at line 152 of file moduleset.cpp.

References GetRefInfo(), i, info, ITERATE, and out().

Referenced by PrintASN().

◆ PrintDTD()

void CFileModules::PrintDTD ( CNcbiOstream out) const

◆ PrintDTDModular()

void CFileModules::PrintDTDModular ( void  ) const

Definition at line 183 of file moduleset.cpp.

References ERR_POST_X, Fatal(), ITERATE, m_Modules, MakeAbsolutePath(), out(), and PrintXMLRefInfo().

◆ PrintJSONSchema()

void CFileModules::PrintJSONSchema ( CNcbiOstream out) const

Definition at line 120 of file moduleset.cpp.

References ITERATE, m_Modules, and out().

◆ PrintSampleDEF()

void CFileModules::PrintSampleDEF ( const string rootdir) const

◆ PrintSpecDump()

void CFileModules::PrintSpecDump ( CNcbiOstream out) const

Definition at line 110 of file moduleset.cpp.

References CDirEntry::GetName(), ITERATE, m_Modules, m_SourceFileName, and out().

◆ PrintXMLRefInfo()

void CFileModules::PrintXMLRefInfo ( CNcbiOstream out) const

Definition at line 163 of file moduleset.cpp.

References GetRefInfo(), i, info, ITERATE, and out().

Referenced by BeginXMLSchema(), PrintDTD(), and PrintDTDModular().

◆ PrintXMLSchema()

void CFileModules::PrintXMLSchema ( CNcbiOstream out) const

◆ PrintXMLSchemaModular()

void CFileModules::PrintXMLSchemaModular ( void  ) const

◆ ResolveInAnyModule()

CDataType * CFileModules::ResolveInAnyModule ( const string fullName,
bool  allowInternal = false 
) const

Definition at line 316 of file moduleset.cpp.

References i, ITERATE, m_Modules, and types.

Friends And Related Function Documentation

◆ CFileSet

friend class CFileSet
friend

Definition at line 109 of file moduleset.hpp.

Member Data Documentation

◆ m_LastComments

CComments CFileModules::m_LastComments
private

Definition at line 106 of file moduleset.hpp.

Referenced by LastComments(), PrintASN(), PrintDTD(), and PrintXMLSchema().

◆ m_Modules

TModules CFileModules::m_Modules
private

◆ m_ModulesByName

TModulesByName CFileModules::m_ModulesByName
private

Definition at line 104 of file moduleset.hpp.

Referenced by AddModule(), and ExternalResolve().

◆ m_PrefixFromSourceFileName

string CFileModules::m_PrefixFromSourceFileName
mutableprivate

Definition at line 107 of file moduleset.hpp.

Referenced by GetFileNamePrefix().

◆ m_SourceFileName

string CFileModules::m_SourceFileName
private

Definition at line 105 of file moduleset.hpp.

Referenced by GetFileNamePrefix(), GetSourceFileName(), and PrintSpecDump().


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