29 #include "Exception.h" 31 #include "JobPreset.h" 45 class BaseMessageList;
70 void import(
const std::string &,
unsigned int);
71 void fetch_channels();
73 std::list<Channel> &channels() {
return _channels; }
75 Channel *find_channel(
unsigned int);
76 std::set<Channel *> find_channels_by_name(
const std::string &);
78 const std::string &path()
const {
return _path; }
79 unsigned int id()
const {
return _preset.id(); }
80 const JobPreset &preset()
const {
return _preset; }
87 type(Unknown), index(-1) {}
104 bool operator<(
const Message &other)
const {
105 return time < other.time;
107 bool operator==(
const Message &other)
const {
108 return time == other.time and
109 type == other.type and
110 text == other.text and
111 index == other.index;
114 const std::string &type_str()
const;
117 std::list<Message> load_msg(
Time,
Time,
118 std::string = std::string())
const;
119 std::list<Message> load_msg_filtered(
Time,
Time,
120 const std::string &, std::string = std::string())
const;
122 void set_job_info(DlsProto::JobInfo *,
bool =
true)
const;
129 std::list<Channel> _channels;
130 BaseMessageList *_messages;
132 void _fetch_channels_local();
133 void _fetch_channels_network();
135 void _load_msg_local(std::list<Message> &,
Time,
Time,
136 const std::string &, std::string = std::string())
const;
137 void _load_msg_network(std::list<Message> &,
Time,
Time,
138 const std::string &, std::string = std::string())
const;
Base class for all LibDLS exceptions.
Darstellung eines Kanals in der Anzeige.
Auftragsvorgaben mit Liste der Kanalvorgaben.
Global data structures and functions.
Datentyp zur Speicherung der Zeit in Mikrosekunden.
DLS_PUBLIC bool operator<(const RealChannel &a, const RealChannel &b)
Less operator for sorting RealChannel lists.
#define DLS_PUBLIC
Macro for public method definitions (empty on non-win32).