Skip to content

Commit

Permalink
MSVC DLL support
Browse files Browse the repository at this point in the history
  • Loading branch information
nyoungbq committed Dec 21, 2023
1 parent 61cdb9d commit 35f8d55
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/complex/Utilities/FileUtilities.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
#pragma once

#include "complex/Common/Result.hpp"
#include "complex/complex_export.hpp"

#include <filesystem>

Expand All @@ -40,23 +41,23 @@ namespace fs = std::filesystem;
namespace complex::FileUtilities
{
//-----------------------------------------------------------------------------
bool HasWriteAccess(const std::string& path);
bool COMPLEX_EXPORT HasWriteAccess(const std::string& path);

//-----------------------------------------------------------------------------
Result<> ValidateInputFile(const fs::path& path);
Result<> COMPLEX_EXPORT ValidateInputFile(const fs::path& path);

//-----------------------------------------------------------------------------
Result<> ValidateInputDir(const fs::path& path);
Result<> COMPLEX_EXPORT ValidateInputDir(const fs::path& path);

//-----------------------------------------------------------------------------
Result<> ValidateDirectoryWritePermission(const fs::path& path, bool isFile);
Result<> COMPLEX_EXPORT ValidateDirectoryWritePermission(const fs::path& path, bool isFile);

//-----------------------------------------------------------------------------
Result<> ValidateOutputFile(const fs::path& path);
Result<> COMPLEX_EXPORT ValidateOutputFile(const fs::path& path);

//-----------------------------------------------------------------------------
Result<> ValidateOutputDir(const fs::path& path);
Result<> COMPLEX_EXPORT ValidateOutputDir(const fs::path& path);

//-----------------------------------------------------------------------------
Result<> ValidateCSVFile(const std::string& filePath);
Result<> COMPLEX_EXPORT ValidateCSVFile(const std::string& filePath);
} // namespace complex::FileUtilities

0 comments on commit 35f8d55

Please sign in to comment.