OmniSciDB  085a039ca4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
logger::anonymous_namespace{Logger.cpp} Namespace Reference

Functions

void unquote (std::string &str)
 
ChannelLoggerget_channel_logger (Channel const channel)
 

Function Documentation

ChannelLogger& logger::anonymous_namespace{Logger.cpp}::get_channel_logger ( Channel const  channel)

Definition at line 412 of file Logger.cpp.

References logger::ASM, logger::IR, and logger::PTX.

Referenced by logger::Logger::~Logger().

412  {
413  switch (channel) {
414  default:
415  case IR:
416  return gChannelLogger_IR::get();
417  case PTX:
418  return gChannelLogger_PTX::get();
419  case ASM:
420  return gChannelLogger_ASM::get();
421  }
422 }

+ Here is the caller graph for this function:

void logger::anonymous_namespace{Logger.cpp}::unquote ( std::string &  str)

Definition at line 353 of file Logger.cpp.

Referenced by logger::operator>>().

353  {
354  if (1 < str.size() && (str.front() == '\'' || str.front() == '"') &&
355  str.front() == str.back()) {
356  str.erase(str.size() - 1, 1);
357  str.erase(0, 1);
358  }
359 }

+ Here is the caller graph for this function: