1 #ifndef DBALLE_CMDLINE_PROCESSOR_H 2 #define DBALLE_CMDLINE_PROCESSOR_H 9 #define DBALLE_JSON_VERSION "0.1" 43 const std::string& filename,
45 const std::string& msg)
47 initmsg(filename, index, msg.c_str());
51 const std::string& filename,
53 const std::exception& original)
55 initmsg(filename, index, original.what());
59 const std::string& filename,
61 const std::string& msg,
62 const std::exception& original)
64 initmsg(filename, index, msg.c_str());
66 this->msg += original.what();
71 virtual const char* what()
const throw ()
77 void initmsg(
const std::string& fname,
unsigned index,
const char* msg);
84 wreport::Bulletin* bulletin;
100 virtual bool operator()(
const Item& item) = 0;
118 void matcher_reset();
121 void matcher_from_record(
const Query& query);
123 bool match_index(
int idx)
const;
125 bool match_msgs(
const Messages& msgs)
const;
126 bool match_bufrex(
const BinaryMessage& rmsg,
const wreport::Bulletin* rm,
const Messages* msgs)
const;
130 bool match_item(
const Item& item)
const;
136 void read_csv(
const std::list<std::string>& fnames,
Action& action);
137 void read_json(
const std::list<std::string>& fnames,
Action& action);
138 void read_file(
const std::list<std::string>& fnames,
Action& action);
141 const char* input_type;
145 const char* fail_file_name;
149 void read(
const std::list<std::string>& fnames,
Action& action);
Definition: processor.h:97
Definition: processor.h:133
Message importer.
Definition: codec.h:32
Copyright (C) 2008–2010 ARPA-SIM urpsim@smr.arpa.emr.it
Definition: cmdline.h:17
Definition: processor.h:103
Definition: processor.h:80
Match DB-All.e objects using the same queries that can be made on DB-All.e databases.
Definition: matcher.h:92
Binary message.
Definition: file.h:131
Ordered collection of messages.
Definition: message.h:64
Definition: conversion.h:6
Query used to filter DB-All.e data.
Definition: query.h:14
Exception used to embed processing issues that mean that processing of the current element can safely...
Definition: processor.h:29
ProcessingException(const std::string &filename, unsigned index, const std::string &msg)
Create a new exception.
Definition: processor.h:42