archives.* Aggiunti metodi di compressione a 32 bit che emulano quelli a 16
array.cpp Aggiunte qua e la' delete [] doc.h Aggiunto DOC_DOCEVASO dongle.cpp Ripristinato case dongle_network erroneamente cancellato git-svn-id: svn://10.65.10.50/trunk@6774 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
9591797601
commit
feb451e50d
@ -993,3 +993,28 @@ bool TArchive::unzip(long firm, char floppy, bool temp)
|
|||||||
}
|
}
|
||||||
return ok;
|
return ok;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if XVT_OS == XVT_OS_WIN32
|
||||||
|
|
||||||
|
bool TArchive::backup(const char* dir, char floppy, const char* desc)
|
||||||
|
{
|
||||||
|
return zip(dir, floppy, desc);
|
||||||
|
}
|
||||||
|
|
||||||
|
bool TArchive::backup(long firm, char floppy, const char* desc)
|
||||||
|
{
|
||||||
|
return zip(firm, floppy, desc);
|
||||||
|
}
|
||||||
|
|
||||||
|
bool TArchive::restore(const char* dir, char floppy, bool tmp)
|
||||||
|
{
|
||||||
|
return unzip(dir, floppy, tmp);
|
||||||
|
}
|
||||||
|
|
||||||
|
bool TArchive::restore(long firm, char floppy, bool tmp)
|
||||||
|
{
|
||||||
|
return unzip(firm, floppy, tmp);
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
@ -65,7 +65,6 @@ protected:
|
|||||||
// @access Public Member
|
// @access Public Member
|
||||||
public:
|
public:
|
||||||
|
|
||||||
#if XVT_OS == XVT_OS_WIN
|
|
||||||
// @cmember Effettua il backup della directory
|
// @cmember Effettua il backup della directory
|
||||||
bool backup(const char* dir, char floppy, const char* desc);
|
bool backup(const char* dir, char floppy, const char* desc);
|
||||||
// @cmember Effettua il backup della ditta
|
// @cmember Effettua il backup della ditta
|
||||||
@ -76,6 +75,7 @@ public:
|
|||||||
// @cmember Effettua il restore della ditta
|
// @cmember Effettua il restore della ditta
|
||||||
bool restore(long firm, char floppy, bool temp);
|
bool restore(long firm, char floppy, bool temp);
|
||||||
|
|
||||||
|
#if XVT_OS == XVT_OS_WIN
|
||||||
// @cmember Interrompe le operazioni
|
// @cmember Interrompe le operazioni
|
||||||
void stop_job();
|
void stop_job();
|
||||||
#endif
|
#endif
|
||||||
|
@ -138,7 +138,7 @@ void TArray::resize(
|
|||||||
if (_data != NULL)
|
if (_data != NULL)
|
||||||
memcpy(newdata, _data, _size*sizeof(TObject*));
|
memcpy(newdata, _data, _size*sizeof(TObject*));
|
||||||
|
|
||||||
if (_data != NULL) delete _data;
|
if (_data != NULL) delete [] _data;
|
||||||
|
|
||||||
_size = arraysize;
|
_size = arraysize;
|
||||||
_data = newdata;
|
_data = newdata;
|
||||||
@ -640,7 +640,8 @@ int TPointer_array::insert(const TObject& object, int index, bool force)
|
|||||||
// TBit_array
|
// TBit_array
|
||||||
///////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////
|
||||||
|
|
||||||
TBit_array::TBit_array(long size) : _bit(NULL), _size(0)
|
TBit_array::TBit_array(long size)
|
||||||
|
: _bit(NULL), _size(0)
|
||||||
{
|
{
|
||||||
if (size)
|
if (size)
|
||||||
resize(index(size));
|
resize(index(size));
|
||||||
@ -676,7 +677,8 @@ TBit_array& TBit_array::operator=(const TBit_array& ba)
|
|||||||
|
|
||||||
TBit_array::~TBit_array()
|
TBit_array::~TBit_array()
|
||||||
{
|
{
|
||||||
if (_bit) delete _bit;
|
if (_bit)
|
||||||
|
delete [] _bit;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Certified 100%
|
// Certified 100%
|
||||||
@ -713,7 +715,7 @@ void TBit_array::resize(
|
|||||||
if (oldsize)
|
if (oldsize)
|
||||||
{
|
{
|
||||||
memcpy(_bit, oldbit, oldsize);
|
memcpy(_bit, oldbit, oldsize);
|
||||||
delete oldbit;
|
delete [] oldbit;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -727,7 +729,8 @@ bool TBit_array::operator[] (long n) const
|
|||||||
// Certified 99%
|
// Certified 99%
|
||||||
TBit_array& TBit_array::operator|= (const TBit_array& ba)
|
TBit_array& TBit_array::operator|= (const TBit_array& ba)
|
||||||
{
|
{
|
||||||
CHECK(_size >= ba._size, "TBit_array |=: right operand too big");
|
if (_size < ba._size)
|
||||||
|
resize(ba._size);
|
||||||
|
|
||||||
for (word i = 0; i < _size; i++)
|
for (word i = 0; i < _size; i++)
|
||||||
_bit[i] |= ba._bit[i];
|
_bit[i] |= ba._bit[i];
|
||||||
@ -739,7 +742,8 @@ TBit_array& TBit_array::operator|= (const TBit_array& ba)
|
|||||||
void TBit_array::set(long n)
|
void TBit_array::set(long n)
|
||||||
{
|
{
|
||||||
const word i = index(n);
|
const word i = index(n);
|
||||||
if (i >= _size) resize(i);
|
if (i >= _size)
|
||||||
|
resize(i);
|
||||||
_bit[i] |= mask(n);
|
_bit[i] |= mask(n);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -852,7 +856,6 @@ long TBit_array::first_one() const
|
|||||||
// @flag FALSE | Se l'array e' vuoto
|
// @flag FALSE | Se l'array e' vuoto
|
||||||
bool TBit_array::ok() const
|
bool TBit_array::ok() const
|
||||||
|
|
||||||
|
|
||||||
// @comm Controlla se la dimensione dell'array e' maggiore di 0 e se esistono
|
// @comm Controlla se la dimensione dell'array e' maggiore di 0 e se esistono
|
||||||
// degli elementi diversi da NULL
|
// degli elementi diversi da NULL
|
||||||
{
|
{
|
||||||
|
@ -70,6 +70,7 @@
|
|||||||
#define DOC_G1 "G1"
|
#define DOC_G1 "G1"
|
||||||
#define DOC_DATAAGG "DATAAGG"
|
#define DOC_DATAAGG "DATAAGG"
|
||||||
#define DOC_UTENTE "UTENTE"
|
#define DOC_UTENTE "UTENTE"
|
||||||
|
#define DOC_DOCEVASO "DOCEVASO"
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -479,6 +479,7 @@ bool TDongle::login(bool test_all_keys)
|
|||||||
case _dongle_eutron:
|
case _dongle_eutron:
|
||||||
ok = eutron_login(test_all_keys);
|
ok = eutron_login(test_all_keys);
|
||||||
break;
|
break;
|
||||||
|
case _dongle_network:
|
||||||
ok = network_login(test_all_keys);
|
ok = network_login(test_all_keys);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user