adjust values api to vector-esque interface
Signed-off-by: Folling <mail@folling.io>
This commit is contained in:
parent
733b52575b
commit
3395eba331
13 changed files with 297 additions and 220 deletions
|
|
@ -1,13 +1,13 @@
|
|||
#pragma once
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include <boost/container/vector.hpp>
|
||||
|
||||
#include <values/value.hpp>
|
||||
|
||||
struct IkarusTextValue final : IkarusValue {
|
||||
public:
|
||||
using data_type = std::string;
|
||||
|
||||
public:
|
||||
explicit IkarusTextValue();
|
||||
|
||||
|
|
@ -20,9 +20,5 @@ public:
|
|||
~IkarusTextValue() override = default;
|
||||
|
||||
public:
|
||||
[[nodiscard]] boost::container::vector<char const *>& get_value();
|
||||
[[nodiscard]] boost::container::vector<char const *> const& get_value() const;
|
||||
|
||||
private:
|
||||
boost::container::vector<char const *> _value{};
|
||||
boost::container::vector<data_type> value{};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue