20 #include "SheafSystem/sheaf.h" 22 #include "SheafSystem/error_message.h" 23 #include "SheafSystem/std_cstdlib.h" 24 #include "SheafSystem/std_cmath.h" 25 #include "SheafSystem/std_iostream.h" 42 if(getenv(
"LPS_SCRIPT_HAS_RUN") == 0)
44 post_fatal_error_message(
"LPS script has not been executed.");
58 string::size_type bslash = xargv.rfind(key);
59 if (bslash!=string::npos)
60 xargv.replace (bslash,key.length(),
"/");
63 string::size_type slash = xargv.rfind(
'/');
66 if (slash == string::npos)
72 result = xargv.substr(slash+1);
112 bool result = (x1 != x1) || (x2 != x2) || (x1 == x2);
133 bool result = (x1 != x1) || (x2 != x2) || (x1 == x2);
154 bool result = (x1 != x1) || (x2 != x2) || (x1 == x2);
SHEAF_DLL_SPEC void check_lps_script_has_run()
Function to test for whether the LPS script has been executed.
const std::string RELEASE_TAG
The CVS branch tag this file is part of.
SHEAF_DLL_SPEC std::string get_release_tag()
Returns the CVS branch tag for this codebase. .
SHEAF_DLL_SPEC std::string filename_from_cmdline(std::string xargv)
Method to strip any command line down to it's rightmost delimited element . Used in unit test routine...
SHEAF_DLL_SPEC bool isunordered_or_equals(float x1, float x2)
True if isunordered(x1, x2) or x1 == x2.