eof_item.hpp (476B)
1 #ifndef UUID_2E2EE447_59EF_4611_B8B5_40180CC6FBCC 2 #define UUID_2E2EE447_59EF_4611_B8B5_40180CC6FBCC 3 #pragma once 4 5 #include "item.hpp" 6 7 namespace Neptools 8 { 9 10 class EofItem final : public Item 11 { 12 LIBSHIT_DYNAMIC_OBJECT; 13 public: 14 EofItem(Key k, Context& ctx) : Item{k, ctx} {} 15 16 void Dump_(Sink&) const override {} 17 void Inspect_(std::ostream& os, unsigned indent) const override; 18 FilePosition GetSize() const noexcept override { return 0; } 19 }; 20 21 } 22 #endif