29 #include "../my_config.h" 41 class label :
public on_pool
45 label(
const label & ref) { copy_from(ref); };
46 const label & operator = (
const label & ref) { copy_from(ref);
return *
this; };
48 bool operator == (
const label & ref)
const;
49 bool operator != (
const label & ref)
const {
return ! ((*this) == ref); };
52 bool is_cleared()
const;
54 void generate_internal_filename();
56 void read(generic_file & f);
57 void dump(generic_file & f)
const;
59 void invert_first_byte() { val[0] = ~val[0]; };
64 U_I size()
const {
return LABEL_SIZE; };
65 char *data() {
return (
char *)&val; };
66 const char *data()
const {
return (
char *)&val; };
68 static U_I common_size() {
return LABEL_SIZE; };
71 static const U_I LABEL_SIZE = 10;
75 void copy_from(
const label & ref);
79 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 ...
this is the base class of object that can be allocated on a memory pool
libdar namespace encapsulate all libdar symbols