add support to SDLBackend for rendering 24bit data
[openc2e.git] / ser / s_genome.h
blobf11df7a1dfbc2efa17afb9c86136e49185741c1c
1 #ifndef S_GENOME_H
2 #define S_GENOME_H 1
4 #include "genome.h"
5 #include "serialization.h"
6 #include <sstream>
8 SAVE(genomeFile) {
9 std::ostringstream genes, notes;
10 genes << obj;
11 obj.writeNotes(notes);
12 std::string genestr = genes.str();
13 std::string notestr = notes.str();
14 ar & genestr & notestr;
17 LOAD(genomeFile) {
18 std::string genes, notes;
19 ar & genes & notes;
20 std::istringstream genestream(genes), notestream(notes);
21 genestream >> std::noskipws >> obj;
22 // obj.readNotes(notestream);
25 #endif