• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ParadoxGameConverters / Vic3ToHoI4 / 4189923376

pending completion
4189923376

Pull #265

github

GitHub
Merge e4a325e0a into eb87403de
Pull Request #265: Convert technology

154 of 154 new or added lines in 16 files covered. (100.0%)

1607 of 1796 relevant lines covered (89.48%)

86692.45 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

11.11
/src/vic3_world/states/vic3_state.h
1
#ifndef SRC_VIC3WORLD_STATES_VIC3STATE_H
2
#define SRC_VIC3WORLD_STATES_VIC3STATE_H
3

4

5

6
#include <set>
7

8

9

10
namespace vic3
11
{
12

13
struct StateOptions
14
{
15
   std::optional<int> owner_number;
16
   std::optional<std::string> owner_tag;
17
   std::set<int> provinces;
18
};
19

20

21
class State
22
{
23
  public:
24
   explicit State(StateOptions state_options):
×
25
       owner_number_(std::move(state_options.owner_number)),
×
26
       owner_tag_(std::move(state_options.owner_tag)),
×
27
       provinces_(std::move(state_options.provinces))
×
28
   {
29
   }
×
30

31
   [[nodiscard]] const std::optional<int>& GetOwnerNumber() const { return owner_number_; }
×
32
   [[nodiscard]] const std::optional<std::string>& GetOwnerTag() const { return owner_tag_; }
×
33
   [[nodiscard]] const std::set<int>& GetProvinces() const { return provinces_; }
×
34

35
   void SetOwnerTag(std::string_view owner_tag) { owner_tag_ = owner_tag; }
3✔
36

37
   bool operator==(const State&) const = default;
38

39
  private:
40
   std::optional<int> owner_number_;
41
   std::optional<std::string> owner_tag_;
42
   std::set<int> provinces_;
43
};
44

45
}  // namespace vic3
46

47

48

49
#endif  // SRC_VIC3WORLD_STATES_VIC3STATE_H
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc