diff --git a/src/data_format/bound_symbol_list.h b/src/data_format/bound_symbol_list.h index a04f02d..7194270 100644 --- a/src/data_format/bound_symbol_list.h +++ b/src/data_format/bound_symbol_list.h @@ -1,6 +1,6 @@ #pragma once -#include "data_format/io_base.h" +#include "data_format/io/io_base.h" #include "data_format/type/bound_symbol.h" namespace di::data_format { diff --git a/src/data_format/io/io_base.h b/src/data_format/io/io_base.h new file mode 100644 index 0000000..2fb5215 --- /dev/null +++ b/src/data_format/io/io_base.h @@ -0,0 +1,13 @@ +#pragma once + +namespace di { + +class IOBase { +public: + virtual ~IOBase() = default; + + virtual void read(const fs::path& path) = 0; + virtual void write(const fs::path& path) const = 0; +}; + +} // namespace di diff --git a/src/data_format/io_base.h b/src/data_format/io_base.h deleted file mode 100644 index 6bcb283..0000000 --- a/src/data_format/io_base.h +++ /dev/null @@ -1,13 +0,0 @@ -#pragma once - -namespace di::data_format { - -class IOBase { -public: - virtual ~IOBase() = default; - - virtual void read(const std::filesystem::path& path) = 0; - virtual void write(const std::filesystem::path& path) const = 0; -}; - -} // namespace di::data_format diff --git a/src/data_format/raw_text.h b/src/data_format/raw_text.h index 861a735..9948a53 100644 --- a/src/data_format/raw_text.h +++ b/src/data_format/raw_text.h @@ -1,6 +1,6 @@ #pragma once -#include "data_format/io_base.h" +#include "data_format/io/io_base.h" namespace di::data_format { diff --git a/src/data_format/raw_type_data.h b/src/data_format/raw_type_data.h index 0623d84..bf1cedf 100644 --- a/src/data_format/raw_type_data.h +++ b/src/data_format/raw_type_data.h @@ -1,6 +1,6 @@ #pragma once -#include "data_format/io_base.h" +#include "data_format/io/io_base.h" #include diff --git a/src/data_format/typed_symbol_list.h b/src/data_format/typed_symbol_list.h index c7bd58f..112a7ad 100644 --- a/src/data_format/typed_symbol_list.h +++ b/src/data_format/typed_symbol_list.h @@ -1,6 +1,6 @@ #pragma once -#include "data_format/io_base.h" +#include "data_format/io/io_base.h" #include "data_format/type/decl_type.h" #include "data_format/type/typed_symbol.h"