2016-08-23 02:03:45 +08:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "import/element_skeleton.hpp"
|
|
|
|
#include "utils/option.hpp"
|
|
|
|
|
2016-09-19 06:22:36 +08:00
|
|
|
// Common class for varius classes which accept one part from data line in
|
|
|
|
// import, parses it and adds it into element skelleton.
|
2016-08-23 02:03:45 +08:00
|
|
|
class Filler
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
// Fills skeleton with data from str. Returns error description if
|
|
|
|
// error occurs.
|
|
|
|
virtual Option<std::string> fill(ElementSkeleton &data, char *str) = 0;
|
|
|
|
};
|