Skip to content
Snippets Groups Projects
SubConfig.hpp 650 B
Newer Older
#ifndef SUBCONFIG__H
#define SUBCONFIG__H

#include "Config.hpp"
#include "BaseConfig.hpp"

class SubConfig : public Config
{
  private :

Franck Dary's avatar
Franck Dary committed
  static constexpr std::size_t spanSize = 200;
  std::size_t firstLineIndex{0};
  SubConfig(BaseConfig & model);
  bool update();
  std::size_t getNbColumns() const override;
  std::size_t getColIndex(const std::string & colName) const override;
  bool hasColIndex(const std::string & colName) const override;
  const std::string & getColName(int colIndex) const override;
  std::size_t getFirstLineIndex() const override;
};

#endif