top | up | prev | next

ProjectFileTokens Namespace

Classes

struct Initializer

Functions

int GetTokenId(const std::u32string& tokenName)
const char* GetTokenInfo(int tokenId)
const char* GetTokenName(int tokenId)
void InitTokenIdMap()

Variables

const int DOT
const int END
const int FILEPATH
const int ID
const int PROJECT
const int SEMICOLON
const int SOURCE
Initializer initializer
std::map<std::u32string, int> tokenIdMap

Function Details

GetTokenId Function

int ProjectFileTokens::GetTokenId(const std::u32string& tokenName)

Definition at line 21 of ProjectFileTokens.cpp
Declaration at line 20 of ProjectFileTokens.hpp


GetTokenInfo Function

const char * ProjectFileTokens::GetTokenInfo(int tokenId)

Definition at line 61 of ProjectFileTokens.cpp :
62 {
63     return tokenInfo[tokenId];
64 }


Declaration at line 22 of ProjectFileTokens.hpp

Called by: ProjectFileParser::ProjectFile , ProjectFileParser::SourceFile


GetTokenName Function

const char * ProjectFileTokens::GetTokenName(int tokenId)

Definition at line 45 of ProjectFileTokens.cpp :
46 {
47     return tokenName[tokenId];
48 }


Declaration at line 21 of ProjectFileTokens.hpp


InitTokenIdMap Function

void ProjectFileTokens::InitTokenIdMap()

Definition at line 11 of ProjectFileTokens.cpp :
12 {
13     tokenIdMap[U"DOT"] = 5;
14     tokenIdMap[U"FILEPATH"] = 4;
15     tokenIdMap[U"ID"] = 3;
16     tokenIdMap[U"PROJECT"] = 1;
17     tokenIdMap[U"SEMICOLON"] = 6;
18     tokenIdMap[U"SOURCE"] = 2;
19 }


Declaration at line 19 of ProjectFileTokens.hpp


top | up | prev | next