Disk ARchive  2.7.15
Full featured and portable backup and archiving tool
Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
libdar::archive_num Class Reference

class archive_num stores the position of an archive inside a dar_manager database More...

#include <archive_num.hpp>

+ Collaboration diagram for libdar::archive_num:

Public Member Functions

 archive_num (U_16 arg=0)
 
 archive_num (const archive_num &ref)=default
 
 archive_num (archive_num &&ref) noexcept=default
 
archive_numoperator= (const archive_num &ref)=default
 
archive_numoperator= (archive_num &&ref)=default
 
 operator U_16 () const
 this operator makes an object of that class convertible to an 16 bits integer More...
 
U_16 operator= (U_16 arg)
 
archive_numoperator++ ()
 
void read_from_file (generic_file &f)
 
void write_to_file (generic_file &f) const
 

Private Member Functions

void set (U_16 arg)
 

Private Attributes

U_16 val
 

Static Private Attributes

static constexpr U_I val_size = sizeof(U_16)
 
static constexpr U_I MAX = 65534
 

Detailed Description

class archive_num stores the position of an archive inside a dar_manager database

Definition at line 46 of file archive_num.hpp.

Member Function Documentation

◆ operator U_16()

libdar::archive_num::operator U_16 ( ) const
inline

this operator makes an object of that class convertible to an 16 bits integer

Note
this is the only call you should need, just use an archive_num implictely of explicitely as an integer

Definition at line 60 of file archive_num.hpp.


The documentation for this class was generated from the following file: