From 64c25faaefbeef2f7e86f640db165981b6fe8c7e Mon Sep 17 00:00:00 2001 From: Oliver Hamlet Date: Sat, 22 Sep 2018 08:48:16 +0100 Subject: [PATCH] Add missing API decorators --- include/loot/exception/cyclic_interaction_error.h | 5 +++-- include/loot/exception/undefined_group_error.h | 6 ++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/include/loot/exception/cyclic_interaction_error.h b/include/loot/exception/cyclic_interaction_error.h index 93ae95e5..10b56d83 100644 --- a/include/loot/exception/cyclic_interaction_error.h +++ b/include/loot/exception/cyclic_interaction_error.h @@ -28,6 +28,7 @@ #include #include +#include "loot/api_decorator.h" #include "loot/vertex.h" namespace loot { @@ -41,7 +42,7 @@ public: * @brief Construct an exception detailing a plugin or group graph cycle. * @param cycle A representation of the cyclic path. */ - CyclicInteractionError(std::vector cycle); + LOOT_API CyclicInteractionError(std::vector cycle); /** * @brief Get a representation of the cyclic path. @@ -50,7 +51,7 @@ public: * has an edge going to the first Vertex. * @return A vector of Vertex elements representing the cyclic path. */ - std::vector GetCycle(); + LOOT_API std::vector GetCycle(); private: const std::vector cycle_; diff --git a/include/loot/exception/undefined_group_error.h b/include/loot/exception/undefined_group_error.h index f0b63194..f43b36a4 100644 --- a/include/loot/exception/undefined_group_error.h +++ b/include/loot/exception/undefined_group_error.h @@ -27,6 +27,8 @@ #include +#include "loot/api_decorator.h" + namespace loot { /** * @brief An exception class thrown if group is referenced but is undefined. @@ -37,7 +39,7 @@ public: * @brief Construct an exception for an undefined group. * @param groupName The name of the group that is undefined. */ - UndefinedGroupError(const std::string& groupName) : + LOOT_API UndefinedGroupError(const std::string& groupName) : std::runtime_error("The group \"" + groupName + "\" does not exist"), groupName_(groupName) {} @@ -45,7 +47,7 @@ public: * Get the name of the undefined group. * @return A group name. */ - std::string GetGroupName() { return groupName_; } + LOOT_API std::string GetGroupName() { return groupName_; } private: const std::string groupName_;