00001 #ifndef TRIGNAVSTRUCTURE_STRINGSERIALIZER_H
00002 #define TRIGNAVSTRUCTURE_STRINGSERIALIZER_H
00003 #include <vector>
00004 #include <string>
00005 #include <stdint.h>
00006 namespace HLT {
00007 namespace StringSerializer {
00008 void serialize (const std::string& str, std::vector<uint32_t>& storage);
00009 void serialize (const std::vector<std::string>& strings, std::vector<uint32_t>& storage );
00010
00011 size_t deserialize (std::vector<uint32_t>::const_iterator first,
00012 std::vector<uint32_t>::const_iterator last,
00013 std::string& str);
00014
00015 size_t deserialize (std::vector<uint32_t>::const_iterator first,
00016 std::vector<uint32_t>::const_iterator last,
00017 std::vector<std::string>& strings);
00018
00019 }
00020 }
00021 #endif