IODA Bundle
odc::tool::MergeTool Class Reference

#include <MergeTool.h>

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

Public Member Functions

 MergeTool (int argc, char *argv[])
 
void run ()
 
- 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 void merge (const std::vector< eckit::PathName > &inputFiles, const eckit::PathName &outputFileName)
 
static void merge (const std::vector< eckit::PathName > &inputFiles, const std::vector< std::string > &sqls, const eckit::PathName &outputFileName)
 
- 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 &)
 

Private Member Functions

 MergeTool (const MergeTool &)
 
MergeTooloperator= (const MergeTool &)
 

Private Attributes

std::vector< eckit::PathName > inputFiles_
 
std::vector< std::string > sql_
 
eckit::PathName outputFile_
 
bool sqlFiltering_
 

Static Private Attributes

static char * dummyArgv_ []
 

Additional Inherited Members

- Protected Member Functions inherited from odc::tool::Tool
 Tool (int argc, char **argv)
 
 Tool (const CommandLineParser &)
 

Detailed Description

Definition at line 20 of file MergeTool.h.

Constructor & Destructor Documentation

◆ MergeTool() [1/2]

odc::tool::MergeTool::MergeTool ( int  argc,
char *  argv[] 
)

Definition at line 37 of file MergeTool.cc.

Here is the call graph for this function:

◆ MergeTool() [2/2]

odc::tool::MergeTool::MergeTool ( const MergeTool )
private

Member Function Documentation

◆ help()

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

Definition at line 24 of file MergeTool.cc.

◆ merge() [1/2]

static void odc::tool::MergeTool::merge ( const std::vector< eckit::PathName > &  inputFiles,
const eckit::PathName &  outputFileName 
)
static
Here is the caller graph for this function:

◆ merge() [2/2]

static void odc::tool::MergeTool::merge ( const std::vector< eckit::PathName > &  inputFiles,
const std::vector< std::string > &  sqls,
const eckit::PathName &  outputFileName 
)
static

◆ operator=()

MergeTool& odc::tool::MergeTool::operator= ( const MergeTool )
private

◆ run()

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

Implements odc::tool::Tool.

Definition at line 69 of file MergeTool.cc.

Here is the call graph for this function:

◆ usage()

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

Definition at line 28 of file MergeTool.cc.

Here is the caller graph for this function:

Member Data Documentation

◆ dummyArgv_

char* odc::tool::MergeTool::dummyArgv_[]
staticprivate

Definition at line 38 of file MergeTool.h.

◆ inputFiles_

std::vector<eckit::PathName> odc::tool::MergeTool::inputFiles_
private

Definition at line 40 of file MergeTool.h.

◆ outputFile_

eckit::PathName odc::tool::MergeTool::outputFile_
private

Definition at line 42 of file MergeTool.h.

◆ sql_

std::vector<std::string> odc::tool::MergeTool::sql_
private

Definition at line 41 of file MergeTool.h.

◆ sqlFiltering_

bool odc::tool::MergeTool::sqlFiltering_
private

Definition at line 43 of file MergeTool.h.


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