1 #ifndef DBALLE_CMDLINE_PROCESSOR_H 2 #define DBALLE_CMDLINE_PROCESSOR_H 9 #define DBALLE_JSON_VERSION "0.1" 41 const std::string& filename,
43 const std::string& msg)
45 initmsg(filename, index, msg.c_str());
57 const std::string& filename,
59 const std::exception& original)
61 initmsg(filename, index, original.what());
74 const std::string& filename,
76 const std::string& msg,
77 const std::exception& original)
79 initmsg(filename, index, msg.c_str());
81 this->msg += original.what();
86 virtual const char* what()
const throw ()
92 void initmsg(
const std::string& fname,
unsigned index,
const char* msg);
115 virtual bool operator()(
const Item& item) = 0;
133 void matcher_reset();
136 void matcher_from_record(
const Query& query);
138 bool match_index(
int idx)
const;
140 bool match_msgs(
const Messages& msgs)
const;
145 bool match_item(
const Item& item)
const;
151 void read_csv(
const std::list<std::string>& fnames,
Action& action);
152 void read_json(
const std::list<std::string>& fnames,
Action& action);
153 void read_file(
const std::list<std::string>& fnames,
Action& action);
156 const char* input_type;
160 const char* fail_file_name;
164 void read(
const std::list<std::string>& fnames,
Action& action);
Definition: processor.h:112
Definition: processor.h:148
Message importer.
Definition: codec.h:32
Copyright (C) 2008–2010 ARPA-SIM urpsim@smr.arpa.emr.it
Definition: cmdline.h:17
ProcessingException(const std::string &filename, unsigned index, const std::string &msg, const std::exception &original)
Create a new exception.
Definition: processor.h:73
Definition: processor.h:118
Definition: processor.h:95
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
ProcessingException(const std::string &filename, unsigned index, const std::exception &original)
Create a new exception.
Definition: processor.h:56
Ordered collection of messages.
Definition: message.h:67
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:40