Geometrize  1.0
An application for geometrizing images into geometric primitives
stringvectordata.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <string>
4 #include <vector>
5 
6 #include "cereal/cereal.hpp"
7 #include "cereal/types/vector.hpp"
8 
9 namespace geometrize
10 {
11 
12 namespace serialization
13 {
14 
19 {
20  std::vector<std::string> strings;
21 
22  template<class Archive>
23  void save(Archive& archive)
24  {
25  archive(CEREAL_NVP(strings));
26  }
27 
28  template<class Archive>
29  void load(Archive& archive)
30  {
31  archive(strings);
32  }
33 };
34 
35 }
36 
37 }
geometrize::serialization::StringVectorData::load
void load(Archive &archive)
Definition: stringvectordata.h:29
geometrize::serialization::StringVectorData::strings
std::vector< std::string > strings
The vector of strings.
Definition: stringvectordata.h:20
geometrize::serialization::StringVectorData
The StringVectorData struct represents a vector of strings (as might be used for a history of termina...
Definition: stringvectordata.h:19
geometrize
Definition: commandlineparser.cpp:73
geometrize::serialization::StringVectorData::save
void save(Archive &archive)
Definition: stringvectordata.h:23