27#ifndef ARCHIVE_NUM_HPP
28#define ARCHIVE_NUM_HPP
49 archive_num(U_16 arg = 0) { set(arg); };
50 archive_num(
const archive_num & ref) =
default;
51 archive_num(archive_num && ref)
noexcept =
default;
52 archive_num & operator = (
const archive_num & ref) =
default;
53 archive_num & operator = (archive_num && ref) =
default;
54 ~archive_num() =
default;
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)
include macro defined by the configure script and some specific additional ones
libdar namespace encapsulate all libdar symbols
contains all the excetion class thrown by libdar
are defined here basic integer types that tend to be portable