IODA Bundle
odc::tool::ODA2RequestTool Class Reference

#include <ODA2RequestTool.h>

Inheritance diagram for odc::tool::ODA2RequestTool:
[legend]
Collaboration diagram for odc::tool::ODA2RequestTool:
[legend]

Public Member Functions

 ODA2RequestTool ()
 
 ODA2RequestTool (int argc, char **argv)
 
 ~ODA2RequestTool ()
 
virtual void run ()
 
void readConfig ()
 
void readConfig (const eckit::PathName &)
 
void parseConfig (const std::string &)
 
std::string generateMarsRequest (const eckit::PathName &inputFile, bool fast=false)
 
- Public Member Functions inherited from odc::tool::Tool
virtual ~Tool ()
 
std::string name ()
 
void name (const std::string &s)
 
- Public Member Functions inherited from odc::tool::CommandLineParser
 CommandLineParser (int argc, char **argv)
 
 CommandLineParser (const CommandLineParser &)
 
CommandLineParseroperator= (const CommandLineParser &)
 
virtual ~CommandLineParser ()
 
void registerOptionWithArgument (const std::string &)
 
const std::vector< std::string > parameters ()
 
std::string parameters (size_t i)
 
bool optionIsSet (const std::string &)
 
template<typename T >
optionArgument (const std::string &, T defaultValue)
 
int argc ()
 
std::string argv (int i)
 
char ** argv ()
 

Static Public Member Functions

static void help (std::ostream &o)
 
static void usage (const std::string &name, std::ostream &o)
 
- Static Public Member Functions inherited from odc::tool::Tool
static void registerTools ()
 
- Static Public Member Functions inherited from odc::StringTool
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 &)
 

Protected Member Functions

std::vector< Values > & values ()
 
void gatherStats (const eckit::PathName &inputFile)
 
std::string gatherStatsFast (const eckit::PathName &inputFile)
 
eckit::PathName config ()
 
- Protected Member Functions inherited from odc::tool::Tool
 Tool (int argc, char **argv)
 
 Tool (const CommandLineParser &)
 

Private Types

typedef std::string Value
 
typedef std::set< ValueValues
 

Private Attributes

std::map< std::string, std::string > columnName2requestKey_
 
std::vector< Valuesvalues_
 

Detailed Description

Definition at line 19 of file ODA2RequestTool.h.

Member Typedef Documentation

◆ Value

typedef std::string odc::tool::ODA2RequestTool::Value
private

Definition at line 20 of file ODA2RequestTool.h.

◆ Values

typedef std::set<Value> odc::tool::ODA2RequestTool::Values
private

Definition at line 21 of file ODA2RequestTool.h.

Constructor & Destructor Documentation

◆ ODA2RequestTool() [1/2]

odc::tool::ODA2RequestTool::ODA2RequestTool ( )

Definition at line 38 of file ODA2RequestTool.cc.

Here is the call graph for this function:

◆ ODA2RequestTool() [2/2]

odc::tool::ODA2RequestTool::ODA2RequestTool ( int  argc,
char **  argv 
)

Definition at line 31 of file ODA2RequestTool.cc.

Here is the call graph for this function:

◆ ~ODA2RequestTool()

odc::tool::ODA2RequestTool::~ODA2RequestTool ( )

Definition at line 45 of file ODA2RequestTool.cc.

Member Function Documentation

◆ config()

PathName odc::tool::ODA2RequestTool::config ( )
protected

Definition at line 90 of file ODA2RequestTool.cc.

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

◆ gatherStats()

void odc::tool::ODA2RequestTool::gatherStats ( const eckit::PathName &  inputFile)
protected

Definition at line 146 of file ODA2RequestTool.cc.

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

◆ gatherStatsFast()

string odc::tool::ODA2RequestTool::gatherStatsFast ( const eckit::PathName &  inputFile)
protected

Definition at line 138 of file ODA2RequestTool.cc.

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

◆ generateMarsRequest()

string odc::tool::ODA2RequestTool::generateMarsRequest ( const eckit::PathName &  inputFile,
bool  fast = false 
)

Definition at line 178 of file ODA2RequestTool.cc.

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

◆ help()

void odc::tool::ODA2RequestTool::help ( std::ostream &  o)
static

Definition at line 47 of file ODA2RequestTool.cc.

◆ parseConfig()

void odc::tool::ODA2RequestTool::parseConfig ( const std::string &  s)

Definition at line 109 of file ODA2RequestTool.cc.

◆ readConfig() [1/2]

void odc::tool::ODA2RequestTool::readConfig ( )

Definition at line 95 of file ODA2RequestTool.cc.

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

◆ readConfig() [2/2]

void odc::tool::ODA2RequestTool::readConfig ( const eckit::PathName &  )

◆ run()

void odc::tool::ODA2RequestTool::run ( )
virtual

Implements odc::tool::Tool.

Definition at line 54 of file ODA2RequestTool.cc.

Here is the call graph for this function:

◆ usage()

void odc::tool::ODA2RequestTool::usage ( const std::string &  name,
std::ostream &  o 
)
static

Definition at line 49 of file ODA2RequestTool.cc.

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

◆ values()

std::vector<Values>& odc::tool::ODA2RequestTool::values ( )
inlineprotected

Definition at line 40 of file ODA2RequestTool.h.

Member Data Documentation

◆ columnName2requestKey_

std::map<std::string, std::string> odc::tool::ODA2RequestTool::columnName2requestKey_
private

Definition at line 48 of file ODA2RequestTool.h.

◆ values_

std::vector<Values> odc::tool::ODA2RequestTool::values_
private

Definition at line 49 of file ODA2RequestTool.h.


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