27 #ifndef ARCHIVE_NUM_HPP
28 #define ARCHIVE_NUM_HPP
30 #include "../my_config.h"
60 operator U_16()
const {
return val; };
61 U_16 operator = (U_16 arg) { set(arg);
return arg; };
62 archive_num & operator++() { set(val+1);
return *
this; };
68 void read_from_file(generic_file &f);
69 void write_to_file(generic_file &f)
const;
72 static constexpr U_I val_size =
sizeof(U_16);
73 static constexpr U_I MAX = 65534;
77 inline void set(U_16 arg)