UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
hds_batch_module_file_parameter.hpp
1 /* hds_batch_module_file_parameter.hpp */
2 /* $Id$ */
3 #ifndef __hds_batch_module_file_parameter_hpp
4 #define __hds_batch_module_file_parameter_hpp
5 
6 #include <hds_batch/hds_batch_module_parameter.hpp>
7 
9 namespace hds
10 {
13  {
14  public:
15 
17  enum OpenMode
18  {
19  ReadWrite = 0,
20  ReadOnly,
21  WriteOnly
22  };
23 
25  BatchModuleFileParameter(OpenMode mode = ReadWrite);
26 
28  BatchModuleFileParameter(const QVariant &value,
29  const QString &comment,
30  OpenMode mode = ReadWrite);
31 
33  virtual BatchModuleParameter* clone() const;
34 
36  virtual ~BatchModuleFileParameter();
37 
38 
40  virtual const QVariant& value() const;
41 
43  virtual void setValue(const QVariant &value);
44 
45 
47  OpenMode openMode() const {return m_open_mode;}
48 
50  void setOpenMode(OpenMode mode) {m_open_mode = mode;}
51 
52 
54  virtual BatchModuleParameter::Type type() const;
55 
56 
58  virtual void info() const;
59 
60  protected:
61 
64  };
65 };
66 
67 #endif /* hds_batch_module_file_parameter.hpp */
virtual BatchModuleParameter * clone() const
OpenMode m_open_mode
Definition: hds_batch_module_file_parameter.hpp:63
BatchModuleFileParameter(OpenMode mode=ReadWrite)
OpenMode openMode() const
Definition: hds_batch_module_file_parameter.hpp:47
virtual void info() const
OpenMode
Definition: hds_batch_module_file_parameter.hpp:17
void setOpenMode(OpenMode mode)
Definition: hds_batch_module_file_parameter.hpp:50
Type
Definition: hds_batch_module_parameter.hpp:18
virtual void setValue(const QVariant &value)
Definition: hds_batch_module_parameter.hpp:13
const QString & comment() const
Definition: hds_batch_module_parameter.hpp:57
virtual BatchModuleParameter::Type type() const
virtual const QVariant & value() const
Definition: hds_batch_module_file_parameter.hpp:12