top | up | prev | next

TraceTable Class

Definition at line 60 of Trace.cpp

Constructors

TraceTable()

Member Functions

void Done() static
int32_t GetTraceFunctionId(const std::string& functionFullName)
const std::string& GetTraceFunctionName(int32_t traceFunctionId) const
const std::string& GetTraceMessageName(int32_t traceMessageId) const
void Init() static
TraceTable& Instance() static
void Read()
void Write()

Member Variables

std::unique_ptr<TraceTable> instance static
std::mutex mtx
std::map<std::string, int32_t> traceFunctionMap
std::vector<std::string> traceFunctions
std::map<int32_t, std::string> traceMessageMap
std::string unknownMessage

Constructor Details

TraceTable Constructor

soulng::util::TraceTable::TraceTable()

Definition at line 98 of Trace.cpp :
 98 : unknownMessage("<UNKNOWN_WINDOWS_MESSSAGE>")
 99 {
100 }


Declaration at line 78 of Trace.cpp


Member Function Details

Done Member Function

void soulng::util::TraceTable::Done() static

Definition at line 93 of Trace.cpp :
 94 {
 95     instance.reset();
 96 }


Declaration at line 64 of Trace.cpp


GetTraceFunctionId Member Function

int32_t soulng::util::TraceTable::GetTraceFunctionId(const std::string& functionFullName)

Definition at line 102 of Trace.cpp
Declaration at line 66 of Trace.cpp


GetTraceFunctionName Member Function

const std::string& soulng::util::TraceTable::GetTraceFunctionName(int32_t traceFunctionId) const

Definition at line 116 of Trace.cpp :
117 {
118     Assert(traceFunctionId >= 0 && traceFunctionId < traceFunctions.size()"invalid trace function id");
119     return traceFunctions[traceFunctionId];
120 }


Declaration at line 67 of Trace.cpp


GetTraceMessageName Member Function

const std::string& soulng::util::TraceTable::GetTraceMessageName(int32_t traceMessageId) const

Definition at line 122 of Trace.cpp
Declaration at line 68 of Trace.cpp


Init Member Function

void soulng::util::TraceTable::Init() static

Definition at line 88 of Trace.cpp :
 89 {
 90     instance.reset(new TraceTable());
 91 }


Declaration at line 63 of Trace.cpp


Instance Member Function

TraceTable & soulng::util::TraceTable::Instance() static

Definition at line 65 of Trace.cpp :
 65 { return *instance; }


Read Member Function

void soulng::util::TraceTable::Read()

Definition at line 135 of Trace.cpp
Declaration at line 69 of Trace.cpp


Write Member Function

void soulng::util::TraceTable::Write()

Definition at line 168 of Trace.cpp
Declaration at line 70 of Trace.cpp


top | up | prev | next