29 #include "../my_config.h"
44 label(
const label & ref) { copy_from(ref); };
45 const label & operator = (
const label & ref) { copy_from(ref);
return *
this; };
47 bool operator == (
const label & ref)
const;
48 bool operator != (
const label & ref)
const {
return ! ((*this) == ref); };
51 bool is_cleared()
const;
53 void generate_internal_filename();
55 void read(generic_file & f);
56 void dump(generic_file & f)
const;
58 void invert_first_byte() { val[0] = ~val[0]; };
63 U_I size()
const {
return LABEL_SIZE; };
64 char *data() {
return (
char *)&val; };
65 const char *data()
const {
return (
char *)&val; };
67 static U_I common_size() {
return LABEL_SIZE; };
69 #ifdef LIBDAR_SPECIAL_ALLOC
70 USE_SPECIAL_ALLOC(label);
73 static const U_I LABEL_SIZE = 10;
77 void copy_from(
const label & ref);
81 extern const label label_zero;
are defined here basic integer types that tend to be portable
class generic_file is defined here as well as class fichierthe generic_file interface is widely used ...
libdar namespace encapsulate all libdar symbols