IODA Bundle
odc::tool::Tool Class Referenceabstract

#include <Tool.h>

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

Public Member Functions

virtual void run ()=0
 
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 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

 Tool (int argc, char **argv)
 
 Tool (const CommandLineParser &)
 

Private Attributes

std::string name_
 

Detailed Description

Definition at line 27 of file Tool.h.

Constructor & Destructor Documentation

◆ ~Tool()

odc::tool::Tool::~Tool ( )
virtual

Definition at line 38 of file Tool.cc.

◆ Tool() [1/2]

odc::tool::Tool::Tool ( int  argc,
char **  argv 
)
protected

Definition at line 40 of file Tool.cc.

◆ Tool() [2/2]

odc::tool::Tool::Tool ( const CommandLineParser clp)
protected

Definition at line 44 of file Tool.cc.

Member Function Documentation

◆ name() [1/2]

std::string odc::tool::Tool::name ( )
inline

Definition at line 34 of file Tool.h.

Here is the caller graph for this function:

◆ name() [2/2]

void odc::tool::Tool::name ( const std::string &  s)
inline

Definition at line 35 of file Tool.h.

Here is the caller graph for this function:

◆ registerTools()

void odc::tool::Tool::registerTools ( )
static

Definition at line 48 of file Tool.cc.

Here is the caller graph for this function:

◆ run()

virtual void odc::tool::Tool::run ( )
pure virtual

Member Data Documentation

◆ name_

std::string odc::tool::Tool::name_
private

Definition at line 45 of file Tool.h.


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