OpenLexocad  27.1
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 
6 #include <string>
7 
8 
13 namespace Base
14 {
15 class LX_BASE_EXPORT FileInfo
16 {
17 public:
19  FileInfo(const Base::String& FileName = L"");
21  void makeTemp(const char* Template);
23  void setFile(const Base::String& name);
25  bool exists() const;
27  Base::String filePath() const;
29  Base::String dirPath() const;
31  Base::String fileName() const;
33  Base::String fileNamePure() const;
45  Base::String extension(bool complete = false) const;
47  bool hasExtension(const Base::String& Ext) const;
48 
50  bool isReadable() const;
52  bool isWritable() const;
53  bool isFile() const;
54  bool isDir() const;
55  unsigned int size() const;
56 
60  bool createDirectory(const char*) const;
61 
63  static Base::String getTempPath(void);
65  static Base::String getTempFileName(void);
66 
67 protected:
69 };
70 } // namespace Base
71 
72 #endif // _CA_FILEINFO_H_
Definition: FileInfo.h:15
Core::PropertyText name
Definition: CoreDocument.h:167
Base::String FileName
Definition: FileInfo.h:68
A Utf-16 (windows) or ucs4 (unix) encoded string class.
Definition: String.h:23
Definition: AbstractXMLReader.h:5
Base::String fileName
Definition: CoreDocument.h:186