#include "global.h"
#include "../external/debug/simple_logger.hpp"
#include <numeric>
Namespaces | |
namespace | moose |
Functions | |
int | checkPath (const string &path) |
Checks if given path is correct. If not, return false and error-code as well. | |
string | joinPath (string pathA, string pathB) |
Append pathB to pathA and return the result. | |
string | fixPath (string path) |
Fix a path. For testing purpose. | |
string | dumpStats (int) |
int | moose::checkPath (const string &path) |
Checks if given path is correct. If not, return false and error-code as well. | |
string | moose::joinPath (string pathA, string pathB) |
Append pathB to pathA and return the result. | |
string | moose::fixPath (string path) |
Fix a path. For testing purpose. | |
Variables | |
unsigned int | totalTests = 0 |
Keep tracks of how many tests have been executed in moose. | |
stringstream | errorSS |
Global stringstream for message printing. | |
clock_t | simClock = clock() |
SimpleLogger | logger |
int checkPath | ( | const string & | path | ) |
Checks if given path is correct. If not, return false and error-code as well.
path | Path name. |
string dumpStats | ( | int | ) |
string fixPath | ( | string | path | ) |
Fix a path. For testing purpose.
path | Path as string. |
Referenced by HSolveUtils::gates().
string joinPath | ( | string | pathA, | |
string | pathB | |||
) |
Append pathB to pathA and return the result.
If pathA does not have [indexs] at the end, append "[0]" to pathA and then add pathB to it. This version does not care if the result has '[0]' at its end.
pathA | First path. | |
pathB | Second path. |
stringstream errorSS |
Global stringstream for message printing.
Referenced by HSolveUtils::gates().
SimpleLogger logger |
Referenced by Shell::doQuit(), Shell::doReinit(), Shell::doStart(), and Shell::initCinfo().
clock_t simClock = clock() |
unsigned int totalTests = 0 |
Keep tracks of how many tests have been executed in moose.