mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Add missing API decorators
This commit is contained in:
@@ -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_;
|
||||
|
||||
Reference in New Issue
Block a user