IODA Bundle
SetTool.h
Go to the documentation of this file.
1
/*
2
* (C) Copyright 1996-2012 ECMWF.
3
*
4
* This software is licensed under the terms of the Apache Licence Version 2.0
5
* which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
6
* In applying this licence, ECMWF does not waive the privileges and immunities
7
* granted to it by virtue of its status as an intergovernmental organisation nor
8
* does it submit to any jurisdiction.
9
*/
10
11
#ifndef SetTool_H
12
#define SetTool_H
13
14
#include "
Tool.h
"
15
16
namespace
odc
{
17
namespace
tool {
18
19
class
SetTool
:
public
Tool
{
20
public
:
21
SetTool
(
int
argc
,
char
*
argv
[]);
22
23
void
run
();
24
25
static
void
help
(std::ostream &o)
26
{ o <<
"Creates a new file setting columns to given values"
; }
27
28
static
void
usage
(
const
std::string&
name
, std::ostream &o)
29
{ o <<
name
<<
" <update-list> <input.odb> <output.odb>"
; }
30
31
private
:
32
// No copy allowed
33
34
SetTool
(
const
SetTool
&);
35
SetTool
&
operator=
(
const
SetTool
&);
36
37
void
parseUpdateList
(std::string s, std::vector<std::string>&
columns
, std::vector<double>& values);
38
};
39
40
}
// namespace tool
41
}
// namespace odc
42
43
#endif
44
Tool.h
odc::tool::CommandLineParser::argv
char ** argv()
Definition:
CommandLineParser.h:53
odc::tool::CommandLineParser::argc
int argc()
Definition:
CommandLineParser.cc:64
odc::tool::SetTool
Definition:
SetTool.h:19
odc::tool::SetTool::help
static void help(std::ostream &o)
Definition:
SetTool.h:25
odc::tool::SetTool::SetTool
SetTool(const SetTool &)
odc::tool::SetTool::usage
static void usage(const std::string &name, std::ostream &o)
Definition:
SetTool.h:28
odc::tool::SetTool::run
void run()
Definition:
SetTool.cc:31
odc::tool::SetTool::SetTool
SetTool(int argc, char *argv[])
Definition:
SetTool.cc:29
odc::tool::SetTool::parseUpdateList
void parseUpdateList(std::string s, std::vector< std::string > &columns, std::vector< double > &values)
Definition:
SetTool.cc:64
odc::tool::SetTool::operator=
SetTool & operator=(const SetTool &)
odc::tool::Tool
Definition:
Tool.h:27
odc::tool::Tool::name
std::string name()
Definition:
Tool.h:34
airnow2ioda-nc.columns
columns
Definition:
airnow2ioda-nc.py:114
odc
Definition:
ColumnInfo.h:23
odc
src
odc
tools
SetTool.h
Generated on Fri Aug 20 2021 11:49:10 for IODA Bundle by
1.9.1