Add missing API decorators

This commit is contained in:
Oliver Hamlet
2018-10-20 12:48:24 +01:00
parent 6264b8fa6d
commit 64c25faaef
2 changed files with 7 additions and 4 deletions
@@ -28,6 +28,7 @@
#include <stdexcept>
#include <vector>
#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<Vertex> cycle);
LOOT_API CyclicInteractionError(std::vector<Vertex> 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<Vertex> GetCycle();
LOOT_API std::vector<Vertex> GetCycle();
private:
const std::vector<Vertex> cycle_;
@@ -27,6 +27,8 @@
#include <stdexcept>
#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_;