OmniSciDB  471d68cefb
 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 396 of file Logger.cpp.

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

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

396  {
397  switch (channel) {
398  default:
399  case IR:
400  return gChannelLogger_IR::get();
401  case PTX:
402  return gChannelLogger_PTX::get();
403  case ASM:
404  return gChannelLogger_ASM::get();
405  }
406 }

+ Here is the caller graph for this function:

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

Definition at line 337 of file Logger.cpp.

Referenced by logger::operator>>().

337  {
338  if (1 < str.size() && (str.front() == '\'' || str.front() == '"') &&
339  str.front() == str.back()) {
340  str.erase(str.size() - 1, 1);
341  str.erase(0, 1);
342  }
343 }

+ Here is the caller graph for this function: