C++ main module for emicrom Package  1.0
EMM_IO.h
Go to the documentation of this file.
1 #ifndef EMM_IO_H
2 #define EMM_IO_H
3 
4 #include "EMM_Object.h"
5 
6 #include "CORE_IO.h"
7 
16 class EMM_IO : public virtual EMM_Object {
17 
19  // ATTRIBUTES
20 
21 public:
22 
23 
24 private:
25 
26  //I/O path
28 
29 
30  //prefix path
32 
34 
35 protected:
36  // METHODS
37 
38  // CONSTRUCTORS
39 
42  EMM_IO(void);
43 
44 
45 
46  // DESTRUCTORS
47 
48 
51  virtual ~EMM_IO(void);
52 
53 
54 private:
55  // SET methods
56 public:
60  inline void setPath(const tString& path) {
61  mPath=path;
62  }
63 
67  inline void setPrefix(const tString& prefix) {
68  mPrefix=prefix;
69  }
74  inline void setFileName(const tString& name) {
75  CORE_IO::getPathAndFileName(name,mPath,mPrefix);
76  }
80  inline void setFileDigitsNumber(const tUSInt& n) {
81  mFileDigitsNumber=n;
82  }
83 
84  // GET methods
88  inline const tString& getPath() const {
89  return mPath;
90  }
91 
95  inline const tString& getPrefix() const {
96  return mPrefix;
97  }
98 
102  inline const tUSInt& getFileDigitsNumber() const {
103  return mFileDigitsNumber;
104  }
105 
106 
107 public:
108  // OTHERS methods
109 
110 
111 
112 };
113 
114 #endif
This class is a base class of E-MicromM core package.
Definition: EMM_Object.h:21
virtual ~EMM_IO(void)
destroy
Definition: EMM_IO.cpp:10
EMM_IO(void)
create
Definition: EMM_IO.cpp:4
This class is a I/O class for E-MicroM core package.
Definition: EMM_IO.h:16
SP_OBJECT(EMM_IO)
tString mPath
Definition: EMM_IO.h:27
DEFINE_SPTR(EMM_IO)
#define tUSInt
Definition: types.h:28
static void getPathAndFileName(const tString &file, tString &path, tString &fileName)
get the path and file name
Definition: CORE_IO.cpp:83
void setPrefix(const tString &prefix)
set the prefix
Definition: EMM_IO.h:67
const tUSInt & getFileDigitsNumber() const
get the file digits number
Definition: EMM_IO.h:102
void setFileDigitsNumber(const tUSInt &n)
get the file digits number for backup file
Definition: EMM_IO.h:80
tString mPrefix
Definition: EMM_IO.h:31
const tString & getPath() const
get the path
Definition: EMM_IO.h:88
void setFileName(const tString &name)
set the file name
Definition: EMM_IO.h:74
#define tString
Definition: types.h:135
const tString & getPrefix() const
get the prefix
Definition: EMM_IO.h:95
tUSInt mFileDigitsNumber
Definition: EMM_IO.h:33
void setPath(const tString &path)
set the path
Definition: EMM_IO.h:60