Skip to content
Snippets Groups Projects
Commit d000fb03 authored by Rainer Kartmann's avatar Rainer Kartmann
Browse files

Tweak checkPaths()

parent 4545eec4
No related branches found
No related tags found
No related merge requests found
......@@ -51,19 +51,20 @@ namespace armarx
bool ObjectInfo::checkPaths()
{
namespace fs = std::filesystem;
bool result = true;
if (!fs::is_regular_file(getSimoxXML()))
{
ARMARX_WARNING << "Expected simox object file for object '" << *this << "': " << getSimoxXML();
return false;
result = false;
}
if (!fs::is_regular_file(getWavefrontObj()))
{
ARMARX_WARNING << "Expected wavefront object file (.obj) for object '" << *this << "': " << getWavefrontObj();
return false;
result = false;
}
return true;
return result;
}
......
......@@ -24,6 +24,11 @@ namespace armarx
path getSimoxXML() const;
path getWavefrontObj() const;
/**
* @brief Checks the existence of expected files.
* If a file is does not exist, emits a warning returns false.
* @return True if all existing files are found, false otherwise.
*/
virtual bool checkPaths();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment