Adapt to typesafe ghoul::Boolean parameters

This commit is contained in:
Alexander Bock
2018-03-30 13:03:17 -04:00
parent 9177f5f432
commit ae7e22dfe0
27 changed files with 45 additions and 41 deletions

View File

@@ -36,7 +36,7 @@ namespace ghoul { class Dictionary; }
namespace openspace::documentation {
using Optional = ghoul::Boolean;
BooleanType(Optional);
/**
* The TestResult structure returns the information from the #testSpecification method. It

View File

@@ -42,7 +42,7 @@ class Syncable;
*/
class SyncEngine {
public:
using IsMaster = ghoul::Boolean;
BooleanType(IsMaster);
/**
* Creates a new SyncEngine which a buffer size of \p syncBufferSize

View File

@@ -40,8 +40,8 @@ namespace openspace::interaction {
class KeyBindingManager : public DocumentationGenerator {
public:
using IsLocalBind = ghoul::Boolean;
using IsSynchronized = ghoul::Boolean;
BooleanType(IsLocalBind);
BooleanType(IsSynchronized);
struct KeyInformation {
std::string command;

View File

@@ -33,7 +33,8 @@ class Deferredcaster;
class DeferredcasterListener {
public:
using isAttached = ghoul::Boolean;
BooleanType(isAttached);
virtual ~DeferredcasterListener() = default;
virtual void deferredcastersChanged(Deferredcaster& deferredcaster,

View File

@@ -91,7 +91,7 @@ public:
virtual void raycastersChanged(VolumeRaycaster& raycaster, bool attached) override;
virtual void deferredcastersChanged(Deferredcaster& deferredcaster,
ghoul::Boolean isAttached) override;
isAttached isAttached) override;
private:
std::map<VolumeRaycaster*, RaycastData> _raycastData;

View File

@@ -49,10 +49,10 @@ namespace openspace {
class LoadingScreen {
public:
using ShowMessage = ghoul::Boolean;
using ShowNodeNames = ghoul::Boolean;
using ShowProgressbar = ghoul::Boolean;
using CatastrophicError = ghoul::Boolean;
BooleanType(ShowMessage);
BooleanType(ShowNodeNames);
BooleanType(ShowProgressbar);
BooleanType(CatastrophicError);
LoadingScreen(ShowMessage showMessage, ShowNodeNames showNodeNames,
ShowProgressbar showProgressbar);

View File

@@ -54,7 +54,7 @@ class Scene
: public properties::PropertyOwner
{
public:
using UpdateDependencies = ghoul::Boolean;
BooleanType(UpdateDependencies);
struct InvalidSceneError : ghoul::RuntimeError {
/**

View File

@@ -61,7 +61,7 @@ public:
GLInitialized
};
using UpdateScene = ghoul::Boolean;
BooleanType(UpdateScene);
struct PerformanceRecord {
long long renderTime; // time in ns

View File

@@ -52,7 +52,7 @@ namespace openspace::scripting {
*/
class ScriptEngine : public Syncable, public DocumentationGenerator {
public:
using RemoteScripting = ghoul::Boolean;
BooleanType(RemoteScripting);
ScriptEngine();

View File

@@ -222,7 +222,7 @@ private:
class HttpFileDownload : public virtual HttpDownload {
public:
using Overwrite = ghoul::Boolean;
BooleanType(Overwrite);
HttpFileDownload() = default;
HttpFileDownload(std::string destination, Overwrite = Overwrite::No);

View File

@@ -45,7 +45,7 @@ class SpiceManager : public ghoul::Singleton<SpiceManager> {
friend class ghoul::Singleton<SpiceManager>;
public:
using TransformMatrix = std::array<double, 36>;
using UseException = ghoul::Boolean;
BooleanType(UseException);
using KernelHandle = unsigned int;
struct SpiceException : public ghoul::RuntimeError {