Skip to content

Commit 6b8633b

Browse files
committed
Add: Add declaration of OffsetConfig
1 parent af92695 commit 6b8633b

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

src/include/servoarray/user_config.h

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,22 @@ class MapConfig {
5353
MapConfig& merge(const MapConfig&);
5454
};
5555

56+
class OffsetConfig {
57+
std::vector<double> offsets_;
58+
59+
friend class UserConfig;
60+
61+
public:
62+
const std::vector<double>& offsets() const&;
63+
std::vector<double> offsets() &&;
64+
65+
OffsetConfig& merge(const OffsetConfig&);
66+
};
67+
5668
class UserConfig {
5769
DriverConfig driver_;
5870
MapConfig mapping_;
71+
OffsetConfig offset_;
5972

6073
public:
6174
UserConfig() = default;
@@ -68,6 +81,9 @@ class UserConfig {
6881
const MapConfig& mapping() const&;
6982
MapConfig mapping() &&;
7083

84+
const OffsetConfig& offset() const&;
85+
OffsetConfig offset() &&;
86+
7187
UserConfig& merge(const UserConfig&);
7288
};
7389

0 commit comments

Comments
 (0)