OmniSciDB  b28c0d5765
 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 415 of file Logger.cpp.

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

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

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

+ Here is the caller graph for this function:

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

Definition at line 356 of file Logger.cpp.

Referenced by logger::operator>>().

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

+ Here is the caller graph for this function: