OpenLexocad  27.0
FileInfo.h
Go to the documentation of this file.
1 #ifndef _CA_FILEINFO_H_
2 #define _CA_FILEINFO_H_
3 
4 #include <Base/String.h>
5 #include <Base/base_defines.h>
6 
7 #include <string>
8 
9 
14 namespace Base
15 {
17 {
18 public:
20  FileInfo(const Base::String& FileName = L"");
22  void makeTemp(const char* Template);
24  void setFile(const Base::String& name);
26  bool exists() const;
28  Base::String filePath() const;
30  Base::String dirPath() const;
32  Base::String fileName() const;
34  Base::String fileNamePure() const;
46  Base::String extension(bool complete = false) const;
48  bool hasExtension(const Base::String& Ext) const;
49 
51  bool isReadable() const;
53  bool isWritable() const;
54  bool isFile() const;
55  bool isDir() const;
56  unsigned int size() const;
57 
61  bool createDirectory(const char*) const;
62 
64  static Base::String getTempPath(void);
66  static Base::String getTempFileName(void);
67 
68 protected:
70 };
71 } // namespace Base
72 
73 #endif // _CA_FILEINFO_H_
Definition: FileInfo.h:16
#define BASE_EXPORT
Definition: base_defines.h:12
Core::PropertyText name
Definition: CoreDocument.h:143
Base::String FileName
Definition: FileInfo.h:69
A Utf-16 (windows) or ucs4 (unix) encoded string class.
Definition: String.h:29
Definition: AbstractXMLReader.h:8
Base::String fileName
Definition: CoreDocument.h:161