blob: 1960e9090e173cc5ccdb6768fef898fcc5dfeafd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
#ifndef __HYPERNEAT_LOADFILE_HPP__
#define __HYPERNEAT_LOADFILE_HPP__
#include <iostream>
#include <HyperNeat/Utils/String.hpp>
#include <HyperNeat/Utils/Vector.hpp>
namespace hyperneat
{
using Istream = std::istream;
class Genome;
class Organism;
class Population;
class NoveltyMetric;
class PopulationPrms;
class NoveltyMetricPrms;
class LoadFile
{
public:
LoadFile(Istream& stream);
void loadPopulation(Population& population);
void loadPopulationPrms(PopulationPrms& prms);
void loadNeuralNetPrms(NeuralNetPrms& prms);
void loadNoveltyMetric(NoveltyMetric& noveltyMetric);
void loadNoveltyMetricPrms(NoveltyMetricPrms& prms);
void loadOrganism(Organism& organism);
void loadGenome(Genome& genome);
private:
Istream& nextPrm(bool arrayVal = false);
Istream& nextArrayValue();
Istream& _stream;
};
}
#endif
|