UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
hds_batch_module.hpp
1 /* hds_packet_module.hpp */
2 /* $Id$ */
3 #ifndef __hds_batch_module_hpp
4 #define __hds_batch_module_hpp
5 
6 #include <hds_batch/hds_module.hpp>
7 #include <hds_batch/defines.hpp>
8 #include <hds_batch/hds_batch_module_context.hpp>
9 #include <hds_batch/hds_messenger.hpp>
10 #include <hds_batch/hds_module_progress.hpp>
11 
13 namespace hds
14 {
16  class BatchModule : public Module
17  {
18  Q_OBJECT
19 
20  public:
21 
23  BatchModule(QObject *pParrent = 0x0);
24 
26  virtual ~BatchModule();
27 
28 
30  void setContext(const hds::BatchModuleContext &context) {m_context = context;}
31 
33  const hds::BatchModuleContext& context() const {return m_context;}
34 
35 
37  void infoMsg(const QString &str) const;
38 
40  void warningMsg(const QString &str) const;
41 
43  void errorMsg(const QString &str) const;
44 
46  void debugMsg(const QString &str) const;
47 
49  const hds::ModuleProgress& progress() const {return m_progress;}
50 
51 
53  void attachMessenger(const hds::Messenger &messenger);
54 
56  void removeMessengers();
57 
58  private:
59 
61  QVector<const hds::Messenger*> m_messengers_ptrs;
62 
64  BatchModuleContext m_context;
65 
67  hds::ModuleProgress m_progress;
68  };
69 };
70 
71 #endif /* hds_batch_module.hpp */
void infoMsg(const QString &str) const
const hds::ModuleProgress & progress() const
Definition: hds_batch_module.hpp:49
const hds::BatchModuleContext & context() const
Definition: hds_batch_module.hpp:33
void warningMsg(const QString &str) const
virtual ~BatchModule()
Definition: hds_batch_module.hpp:16
void attachMessenger(const hds::Messenger &messenger)
BatchModule(QObject *pParrent=0x0)
void setContext(const hds::BatchModuleContext &context)
Definition: hds_batch_module.hpp:30
Definition: hds_module_progress.hpp:15
Definition: hds_messenger.hpp:16
void debugMsg(const QString &str) const
void errorMsg(const QString &str) const
Definition: hds_batch_module_context.hpp:18
Definition: hds_module.hpp:14
void removeMessengers()