]> git.tdb.fi Git - libs/core.git/blobdiff - source/fs/stat.h
Add move semantics to Variant
[libs/core.git] / source / fs / stat.h
index 00e3eb939dc5000b5d99299a40d8b4bd0e745a3a..fd6a2f75ba6092e7f72181b95b7c8fb332428fe8 100644 (file)
@@ -3,6 +3,7 @@
 
 #include <cstdint>
 #include <string>
+#include <msp/core/mspcore_api.h>
 #include <msp/time/timestamp.h>
 #include "path.h"
 
@@ -22,7 +23,7 @@ typedef uint64_t FileSize;
 /**
 Holds file information.
 */
-class Stat
+class MSPCORE_API Stat
 {
 private:
        struct Private;
@@ -39,10 +40,10 @@ private:
        FileSize alloc_size = 0;
        Time::TimeStamp mtime;
        mutable OwnerInfo owner_info;
-       Private *priv = 0;
+       Private *priv = nullptr;
 
 public:
-       Stat() { }
+       Stat() = default;
        Stat(const Stat &);
        Stat &operator=(const Stat &);
        ~Stat();
@@ -73,7 +74,7 @@ inline Stat lstat(const Path &path)
 { return Stat::lstat(path); }
 
 /// Tests for existence of a file
-bool exists(const Path &path);
+MSPCORE_API bool exists(const Path &path);
 
 /// Tests whether a path refers to an existing regular file
 inline bool is_reg(const Path &path)