Started switching OpenSpace projects to nested namespaces

Various cleanups
This commit is contained in:
Alexander Bock
2017-07-15 20:01:55 -04:00
parent 9d4215695d
commit 4dba552fd1
331 changed files with 1126 additions and 1917 deletions

View File

@@ -1,4 +1,4 @@
/*****************************************************************************************
/*****************************************************************************************
* *
* OpenSpace *
* *
@@ -34,8 +34,7 @@
namespace ghoul { class Dictionary; }
namespace openspace {
namespace documentation {
namespace openspace::documentation {
using Optional = ghoul::Boolean;
using Exhaustive = ghoul::Boolean;
@@ -303,9 +302,7 @@ TestResult testSpecification(const Documentation& documentation,
void testSpecificationAndThrow(const Documentation& documentation,
const ghoul::Dictionary& dictionary, std::string component);
} // namespace documentation
} // namespace openspace
} // namespace openspace::documentation
// Make the overload for std::to_string available for the Offense::Reason for easier
// error logging

View File

@@ -1,4 +1,4 @@
/*****************************************************************************************
/*****************************************************************************************
* *
* OpenSpace *
* *
@@ -31,8 +31,7 @@
#include <ghoul/misc/exception.h>
namespace openspace {
namespace documentation {
namespace openspace::documentation {
/**
* The DocumentationEngine has the ability to collect all Documentation%s that are
@@ -92,8 +91,7 @@ private:
static DocumentationEngine* _instance;
};
} // namespace documentation
} // namespace openspace
} // namespace openspace::documentation
#define DocEng (openspace::documentation::DocumentationEngine::ref())

View File

@@ -1,4 +1,4 @@
/*****************************************************************************************
/*****************************************************************************************
* *
* OpenSpace *
* *
@@ -32,8 +32,7 @@
#include <functional>
#include <type_traits>
namespace openspace {
namespace documentation {
namespace openspace::documentation {
/**
* The base class of all Verifier%s. Each object must have an Verifier::operator()
@@ -1153,8 +1152,7 @@ extern template struct DeprecatedVerifier<BoolVector4Verifier>;
extern template struct DeprecatedVerifier<IntVector4Verifier>;
extern template struct DeprecatedVerifier<DoubleVector4Verifier>;
} // namespace documentation
} // namespace openspace
} // namespace openspace::documentation
#include "verifier.inl"

View File

@@ -1,4 +1,4 @@
/*****************************************************************************************
/*****************************************************************************************
* *
* OpenSpace *
* *
@@ -29,10 +29,9 @@
namespace std {
std::string to_string(std::string value);
}
} // namespace std
namespace openspace {
namespace documentation {
namespace openspace::documentation {
template <typename T>
TestResult TemplateVerifier<T>::operator()(const ghoul::Dictionary& dict,
@@ -355,5 +354,4 @@ std::string DeprecatedVerifier<T>::documentation() const {
return T::documentation() + " (deprecated)";
}
} // namespace documentation
} // namespace openspace
} // namespace openspace::documentation