IODA Bundle
odc::StringTool Class Reference

#include <StringTool.h>

Inheritance diagram for odc::StringTool:
[legend]

Static Public Member Functions

static std::string readFile (const eckit::PathName fileName, bool logging=false)
 
static std::vector< std::string > readLines (const eckit::PathName fileName, bool logging=false)
 
static void trimInPlace (std::string &)
 
static bool match (const std::string &regex, const std::string &)
 
static bool matchAny (const std::vector< std::string > &regs, const std::string &)
 
static bool check (const std::string &, ctypeFun)
 
static bool isInQuotes (const std::string &)
 
static std::string unQuote (const std::string &)
 
static double cast_as_double (const std::string &)
 
static std::string double_as_string (double)
 
static std::string int_as_double2string (double)
 
static int shell (std::string cmd, const eckit::CodeLocation &where, bool assertSuccess=true)
 
static double translate (const std::string &v)
 
static std::string valueAsString (double, api::ColumnType)
 
static std::string patchTimeForMars (const std::string &v)
 
static bool isSelectStatement (const std::string &)
 

Private Types

typedef int(* ctypeFun) (int)
 

Detailed Description

Definition at line 26 of file StringTool.h.

Member Typedef Documentation

◆ ctypeFun

typedef int(* odc::StringTool::ctypeFun) (int)
private

Definition at line 28 of file StringTool.h.

Member Function Documentation

◆ cast_as_double()

double odc::StringTool::cast_as_double ( const std::string &  value)
static

Definition at line 114 of file StringTool.cc.

◆ check()

bool odc::StringTool::check ( const std::string &  s,
ctypeFun  fun 
)
static

Definition at line 82 of file StringTool.cc.

Here is the caller graph for this function:

◆ double_as_string()

std::string odc::StringTool::double_as_string ( double  m)
static

Definition at line 106 of file StringTool.cc.

Here is the caller graph for this function:

◆ int_as_double2string()

std::string odc::StringTool::int_as_double2string ( double  v)
static

Definition at line 125 of file StringTool.cc.

Here is the caller graph for this function:

◆ isInQuotes()

bool odc::StringTool::isInQuotes ( const std::string &  value)
static

Definition at line 90 of file StringTool.cc.

◆ isSelectStatement()

bool odc::StringTool::isSelectStatement ( const std::string &  s)
static

Definition at line 196 of file StringTool.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ match()

bool odc::StringTool::match ( const std::string &  regex,
const std::string &  s 
)
static

Definition at line 140 of file StringTool.cc.

◆ matchAny()

bool odc::StringTool::matchAny ( const std::vector< std::string > &  regs,
const std::string &  s 
)
static

Definition at line 145 of file StringTool.cc.

◆ patchTimeForMars()

std::string odc::StringTool::patchTimeForMars ( const std::string &  v)
static

Definition at line 182 of file StringTool.cc.

Here is the caller graph for this function:

◆ readFile()

std::string odc::StringTool::readFile ( const eckit::PathName  fileName,
bool  logging = false 
)
static

Definition at line 40 of file StringTool.cc.

Here is the caller graph for this function:

◆ readLines()

std::vector< std::string > odc::StringTool::readLines ( const eckit::PathName  fileName,
bool  logging = false 
)
static

Definition at line 34 of file StringTool.cc.

Here is the caller graph for this function:

◆ shell()

int odc::StringTool::shell ( std::string  cmd,
const eckit::CodeLocation &  where,
bool  assertSuccess = true 
)
static

Definition at line 64 of file StringTool.cc.

Here is the caller graph for this function:

◆ translate()

double odc::StringTool::translate ( const std::string &  v)
static

Definition at line 133 of file StringTool.cc.

Here is the caller graph for this function:

◆ trimInPlace()

void odc::StringTool::trimInPlace ( std::string &  str)
static

Definition at line 138 of file StringTool.cc.

Here is the call graph for this function:

◆ unQuote()

std::string odc::StringTool::unQuote ( const std::string &  value)
static

Definition at line 97 of file StringTool.cc.

◆ valueAsString()

std::string odc::StringTool::valueAsString ( double  d,
api::ColumnType  t 
)
static

Definition at line 163 of file StringTool.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following files: