Geometrize  1.0
An application for geometrizing images into geometric primitives
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Friends Macros
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 }
The StringVectorData struct represents a vector of strings (as might be used for a history of termina...
Definition: stringvectordata.h:18
std::vector< std::string > strings
The vector of strings.
Definition: stringvectordata.h:20
void load(Archive &archive)
Definition: stringvectordata.h:29
void save(Archive &archive)
Definition: stringvectordata.h:23