12 #ifndef UTILS_BACKUP_FOSSOLOGYDBMIGRATE_HPP_
13 #define UTILS_BACKUP_FOSSOLOGYDBMIGRATE_HPP_
18 #include <boost/program_options.hpp>
25 #define MAX_BUFFER_LEN 1024
34 std::ifstream sourceFile;
35 std::ofstream destinationFile;
36 std::vector<icu::UnicodeString> buffer;
41 void write(
const icu::UnicodeString &output);
FossologyUnicodeClean(std::string &source, std::string &destination)
const std::string dirtyRead()
void flush()
Flush the buffers and reset the internal buffer.
virtual ~FossologyUnicodeClean()
void write(const icu::UnicodeString &output)
Write the string to file/stream.
General utility functions for CPP.