1 #ifndef BASICFILEINFO_H 2 #define BASICFILEINFO_H 6 #include <c++utilities/conversion/types.h> 7 #include <c++utilities/io/nativefilestream.h> 23 void open(
bool readOnly =
false);
24 void reopen(
bool readonly =
false);
26 bool isReadOnly()
const;
29 IoUtilities::NativeFileStream &stream();
30 const IoUtilities::NativeFileStream &stream()
const;
33 const std::string &path()
const;
34 void setPath(
const std::string &path);
35 static std::string fileName(
const std::string &path,
bool cutExtension =
false);
36 std::string fileName(
bool cutExtension =
false)
const;
37 static std::string extension(
const std::string &path);
38 std::string extension()
const;
39 static std::string pathWithoutExtension(
const std::string &fullPath);
40 std::string pathWithoutExtension()
const;
41 static std::string containingDirectory(
const std::string &path);
42 std::string containingDirectory()
const;
46 void reportSizeChanged(uint64 newSize);
47 void reportPathChanged(
const std::string &newPath);
50 virtual void invalidated();
54 IoUtilities::NativeFileStream m_file;
66 return m_file.is_open();
135 #endif // BASICFILEINFO_H
#define TAG_PARSER_EXPORT
Marks the symbol to be exported by the tagparser library.