|
libdballe
7.7
|
Copyright (C) 2008–2010 ARPA-SIM urpsim@smr.arpa.emr.it More...
Data Structures | |
| struct | BinaryMessage |
| Binary message. More... | |
| struct | Coords |
| Coordinates. More... | |
| class | CSVReader |
| class | CSVWriter |
| struct | DataValues |
| struct | Date |
| Calendar date. More... | |
| struct | Datetime |
| Date and time. More... | |
| struct | DatetimeRange |
| Range of datetimes. More... | |
| class | DB |
| struct | File |
| File object for doing I/O on binary message streams. More... | |
| class | Ident |
| A station identifier, that can be any string (including the empty string) or a missing value. More... | |
| struct | LatRange |
| Range of latitudes. More... | |
| struct | Level |
| Vertical level or layer. More... | |
| struct | LonRange |
| Range of longitudes. More... | |
| struct | Matched |
| Common interface for things that are matched. More... | |
| struct | MatchedBulletin |
| Match all subsets in turn, returning true if at least one subset matches. More... | |
| struct | MatchedMessages |
| Match adapter for Messages. More... | |
| struct | MatchedMsg |
| Match adapter for Msg. More... | |
| struct | MatchedSubset |
| struct | Matcher |
| Match DB-All.e objects using the same queries that can be made on DB-All.e databases. More... | |
| struct | Memdb |
| In-memory database backend. More... | |
| struct | Message |
| A bulletin that has been decoded and physically interpreted. More... | |
| class | Messages |
| Ordered collection of messages. More... | |
| class | Msg |
| Storage for related physical data. More... | |
| struct | MsgVarShortcut |
| Full data corresponding to a shortcut ID. More... | |
| struct | Query |
| Query used to filter DB-All.e data. More... | |
| struct | Querybuf |
| String buffer for composing database queries. More... | |
| struct | Record |
| Key/value store where keys are strings and values are wreport variables. More... | |
| struct | Sampling |
| struct | Station |
| struct | StationValues |
| class | Structbuf |
| Buffer of simple structures that becomes file backed if it grows beyond a certain size. More... | |
| struct | Time |
| Time of the day. More... | |
| struct | Trange |
| Information on how a value has been sampled or computed with regards to time. More... | |
| struct | Values |
| struct | Varmatch |
Enumerations | |
| enum | MsgType { MSG_GENERIC, MSG_SYNOP, MSG_PILOT, MSG_TEMP, MSG_TEMP_SHIP, MSG_AIREP, MSG_AMDAR, MSG_ACARS, MSG_SHIP, MSG_BUOY, MSG_METAR, MSG_SAT, MSG_POLLUTION } |
| Source of the data. More... | |
Functions | |
| wreport::Varcode | varcode_alias_resolve (const char *alias) |
| Resolve a variable alias. More... | |
| wreport::Varcode | varcode_alias_resolve_substring (const char *alias, int len) |
| Resolve a variable alias. More... | |
| wreport::Varcode | varcode_alias_resolve (const std::string &alias) |
| Resolve a variable alias. More... | |
| const char * | varcode_alias_resolve_reverse (wreport::Varcode code) |
| Look for the aliase for a Varcode. More... | |
| bool | csv_read_next (FILE *in, std::vector< std::string > &cols) |
| Parse a CSV line. More... | |
| void | csv_output_quoted_string (std::ostream &out, const std::string &str) |
| Output a string value, quoted if needed according to CSV rules. | |
| std::ostream & | operator<< (std::ostream &out, const Coords &c) |
| std::ostream & | operator<< (std::ostream &out, const Date &dt) |
| std::ostream & | operator<< (std::ostream &out, const Time &t) |
| std::ostream & | operator<< (std::ostream &out, const Datetime &dt) |
| std::ostream & | operator<< (std::ostream &out, const DatetimeRange &dtr) |
| std::ostream & | operator<< (std::ostream &out, const LatRange &lr) |
| std::ostream & | operator<< (std::ostream &out, const LonRange &lr) |
| std::ostream & | operator<< (std::ostream &out, const Level &l) |
| std::ostream & | operator<< (std::ostream &out, const Trange &l) |
| std::ostream & | operator<< (std::ostream &out, const Ident &i) |
| void | resolve_varlist (const std::string &varlist, std::set< wreport::Varcode > &out) |
| Convenience functions to quickly create variables from the local B table. More... | |
| void | resolve_varlist (const std::string &varlist, std::function< void(wreport::Varcode)> out) |
| Resolve a comma-separated varcode list performing careful validation, calling dest on each result. | |
| std::unique_ptr< wreport::Var > | var_copy_without_unset_attrs (const wreport::Var &var) |
| Create a new Var, copying var and all its attributes except the unset ones. | |
| std::unique_ptr< wreport::Var > | var_copy_without_unset_attrs (const wreport::Var &var, wreport::Varcode code) |
| Create a new Var with code code, copying the value from var and all its attributes except the unset ones. | |
| void | format_code (wreport::Varcode code, char *buf) |
| Format the code to its string representation. More... | |
| wreport::Varcode | map_code_to_dballe (wreport::Varcode code) |
| Return code, or its DB-All.e equivalent. | |
| const char * | msg_type_name (MsgType type) |
| Return a string with the name of a dba_msg_type. More... | |
| int | resolve_var (const char *name) |
| Resolve a var name to a var ID. | |
| int | resolve_var_substring (const char *name, int len) |
| Resolve a var name to a var ID, avoiding to compute the length of name. | |
| wreport::Varinfo | varinfo (wreport::Varcode code) |
| Return a Varinfo entry from the DB-All.e B table. | |
| wreport::Varinfo | varinfo (const char *code) |
| Return a Varinfo entry from the DB-All.e B table. | |
| wreport::Varinfo | varinfo (const std::string &code) |
| Return a Varinfo entry from the DB-All.e B table. | |
| wreport::Varcode | resolve_varcode (const char *name) |
| Resolve a variable name to a varcode proper, dealing with aliases and validation. | |
| wreport::Varcode | resolve_varcode (const std::string &name) |
| Resolve a variable name to a varcode proper, dealing with aliases and validation. | |
| template<typename C , typename T > | |
| std::unique_ptr< wreport::Var > | newvar (C code, const T &val) |
| Create a new Var, from the DB-All.e B table, with value. | |
Variables | |
| struct MsgVarShortcut | shortcutTable [] |
| Array with all the full expansions of the shortcut IDs, indexed by shortcut ID. | |
Copyright (C) 2008–2010 ARPA-SIM urpsim@smr.arpa.emr.it
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
Author: Enrico Zini enrico@enricozini.com
| enum dballe::MsgType |
Source of the data.
| bool dballe::csv_read_next | ( | FILE * | in, |
| std::vector< std::string > & | cols | ||
| ) |
Parse a CSV line.
| in | The file where to read from |
| cols | The parsed columns. |
| void dballe::format_code | ( | wreport::Varcode | code, |
| char * | buf | ||
| ) |
Format the code to its string representation.
The string will be written to buf, which must be at least 7 bytes long
| const char* dballe::msg_type_name | ( | MsgType | type | ) |
Return a string with the name of a dba_msg_type.
| type | The dba_msg_type value to name |
| void dballe::resolve_varlist | ( | const std::string & | varlist, |
| std::set< wreport::Varcode > & | out | ||
| ) |
Convenience functions to quickly create variables from the local B table.
Resolve a comma-separated varcode list performing careful validation, inserting results in out
| wreport::Varcode dballe::varcode_alias_resolve | ( | const char * | alias | ) |
Resolve a variable alias.
| alias | The alias to resolve |
| wreport::Varcode dballe::varcode_alias_resolve | ( | const std::string & | alias | ) |
Resolve a variable alias.
| alias | The alias to resolve |
| const char* dballe::varcode_alias_resolve_reverse | ( | wreport::Varcode | code | ) |
Look for the aliase for a Varcode.
| wreport::Varcode dballe::varcode_alias_resolve_substring | ( | const char * | alias, |
| int | len | ||
| ) |
Resolve a variable alias.
| alias | The alias to resolve (does not need to be null-terminated) |
| len | The length of the string |
1.8.9.1