Geometrize  1.0
An application for geometrizing images into geometric primitives
serializationutil.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <string>
4 #include <vector>
5 
6 namespace geometrize
7 {
8 
9 namespace util
10 {
11 
17 std::vector<std::string> readStringVector(const std::string& filePath);
18 
24 void writeStringVector(const std::vector<std::string>& vec, const std::string& filePath);
25 
26 }
27 
28 }
serializationutil.h
geometrize
Definition: commandlineparser.cpp:73
geometrize::util::writeStringVector
void writeStringVector(const std::vector< std::string > &vec, const std::string &filePath)
writeStringVector Writes the string vector to the given filepath as JSON. Will attempt to overwrite a...
Definition: serializationutil.cpp:37
util.h
geometrize::util::readStringVector
std::vector< std::string > readStringVector(const std::string &filePath)
readStringVector Reads the JSON file containing the vector of strings at the given filepath....
Definition: serializationutil.cpp:20
geometrize::util::stringEndsWith
bool stringEndsWith(const std::string &str, const std::string &suffix)
stringEndsWith Checks if a string ends with the given suffix.
Definition: util.cpp:309