aboutsummaryrefslogtreecommitdiff
path: root/extension/src/openvic2/Types.hpp
blob: b20db10333e22f7d741c2a1225b2cdd76ac1fbb7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#pragma once

#include <string>
#include <vector>

#include "openvic2/Logger.hpp"

namespace OpenVic2 {
   using return_t = bool;
   // This mirrors godot::Error, where `OK = 0` and `FAILED = 1`.
   static constexpr return_t SUCCESS = false, FAILURE = true;

   class HasIdentifier {
      std::string identifier;
   protected:
      HasIdentifier(std::string const& new_identifier);
   public:
      std::string const& get_identifier() const;
   };
}