top | up | prev | next

SystemFileIndex Class

Definition at line 17 of SystemFileIndex.hpp

Constructors

SystemFileIndex()

Member Functions

std::string GetSystemSourceFilePath(uint32_t systemFileIndex) const
void Init() static
SystemFileIndex& Instance() static
void Read(const std::string& systemFileIndexFilePath)
uint32_t RegisterSystemSourceFile(const std::string& systemSourceFilePath)
void Write(const std::string& systemFileIndexFilePath)

Member Variables

std::string cmajorRootDir
std::unique_ptr<SystemFileIndex> instance static
uint32_t nextSystemFileIndex
std::map<uint32_t, std::string> systemFileMap

Constructor Details

SystemFileIndex Constructor

sngcm::ast::SystemFileIndex::SystemFileIndex()

Definition at line 24 of SystemFileIndex.cpp :
 24 : nextSystemFileIndex(firstSystemFileIndex)cmajorRootDir(GetFullPath(CmajorRootDir()))
 25 {
 26 }


Declaration at line 31 of SystemFileIndex.hpp


Member Function Details

GetSystemSourceFilePath Member Function

std::string sngcm::ast::SystemFileIndex::GetSystemSourceFilePath(uint32_t systemFileIndex) const

Definition at line 47 of SystemFileIndex.cpp
Declaration at line 23 of SystemFileIndex.hpp


Init Member Function

void sngcm::ast::SystemFileIndex::Init() static

Definition at line 19 of SystemFileIndex.cpp :
 20 {
 21     instance.reset(new SystemFileIndex());
 22 }


Declaration at line 20 of SystemFileIndex.hpp


Instance Member Function

SystemFileIndex & sngcm::ast::SystemFileIndex::Instance() static

Definition at line 21 of SystemFileIndex.hpp :
21 { Assert(instance"system file index not initialized");  return *instance; }


Read Member Function

void sngcm::ast::SystemFileIndex::Read(const std::string& systemFileIndexFilePath)

Definition at line 81 of SystemFileIndex.cpp
Declaration at line 25 of SystemFileIndex.hpp

Calls: soulng::util::BinaryReader::ReadUInt , soulng::util::BinaryReader::ReadUtf8String


RegisterSystemSourceFile Member Function

uint32_t sngcm::ast::SystemFileIndex::RegisterSystemSourceFile(const std::string& systemSourceFilePath)

Definition at line 30 of SystemFileIndex.cpp
Declaration at line 22 of SystemFileIndex.hpp


Write Member Function

void sngcm::ast::SystemFileIndex::Write(const std::string& systemFileIndexFilePath)

Definition at line 65 of SystemFileIndex.cpp
Declaration at line 24 of SystemFileIndex.hpp

Calls: soulng::util::BinaryWriter::Write , soulng::util::BinaryWriter::Write


top | up | prev | next