Sha256: eaec79cc9a2cd2255aff2f211cf1ac67a89ed4a66729b02059d0fd33fd44e9c3

Contents?: true

Size: 514 Bytes

Versions: 8

Compression:

Stored size: 514 Bytes

Contents

#ifndef __storage_h__
#define __storage_h__
#include "data_set/data_set.h"
#include "model/model.h"

namespace Storage {
  class Storage {
  public:
    // all storage implementations must be able to read and write data sets
    virtual DataSet::DataSet *read() = 0;
    virtual void write(DataSet::DataSet *data_set) = 0;
    
    // some implementations can read and write trained models
    virtual Model::Model *read_model() { return NULL; }
    virtual void write_model(Model::Model *model) {}
  };
}

#endif

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
thera-0.0.8 lib/quarry/src/storage/storage.h
thera-0.0.7 lib/quarry/src/storage/storage.h
thera-0.0.6 lib/quarry/src/storage/storage.h
thera-0.0.5 lib/quarry/src/storage/storage.h
thera-0.0.4 lib/quarry/src/storage/storage.h
thera-0.0.3 lib/quarry/src/storage/storage.h
thera-0.0.2 lib/quarry/src/storage/storage.h
thera-0.0.1 lib/quarry/src/storage/storage.h