campo-sirio/src/include/utility.h
Mattia Tollari 9520fe2efd Patch level : 12.0 598
Files correlati     : cg, ve, ba, fp
Commento            : Prima release del modulo fp

BA:
- Aggiunto campo "Modalità di Pagamento" alla tabella "Ulteriore classificazione"
- Aggiunto campo "Tipo di pagamento SDI" al programma di gestione dei tipi pagamento

CG:
Modifiche programma clienti/fornitori:
- Rinominato gruppo da "Numeri telefonici" a "Contatti"
- Spostati e modificati campi delle email per aggiungere la PEC

Modifiche cgpagame:
- Aggiunto _cond_pag e gestione del campo

VE:
Modifiche ai tipidoc
- Aggiunto tipo documenti SDI
- Aggiunto il regime fiscale

FP:
- prima implementazione del modulo

Interne:
- In applicat rimosso blocco in caso di programma non abilitato per rangers
- Aggiunto in modaut il nuovo programma fp
- Resa cid2index static con metodo in xvtility
- Perfezionata libreria tsdb + xvtdb grazie ai test fatti da me medesimo per l'fp
2018-07-06 16:30:37 +02:00

80 lines
2.1 KiB
C++
Executable File

#ifndef __UTILITY_H
#define __UTILITY_H
#ifndef __STRINGS_H
#include <strings.h>
#endif
#ifndef __ARRAY_H
#include <array.h>
#endif
#ifndef __VARIANT_H
#include <variant.h>
#endif
#define STRINGIFY(x) #x
#define TOSTRING(x) STRINGIFY(x)
#define SAFE_DELETE(p) { delete p; p = NULL; }
#define DEBUG_ENABLED is_debug_station()
class TPerformance_profiler : public TObject
{
TString _desc;
long _start;
bool _trc;
public:
void show() const;
TPerformance_profiler(const char* desc = "", bool trc = false);
~TPerformance_profiler();
};
char* format (const char* fmt, ...);
const char* cmd2name(const char* argv0, const char* argv1 = "");
int rtoi(const char * roman);
const char* itor(int i);
bool fcopy(const char* orig, const char* dest, bool append = false, bool advanced = false);
bool fexist(const char* file);
long fsize(const char* file);
bool dexist(const char* file);
void log_message(const char* fmt, ...);
bool make_dir(const char* dir);
bool remove_file(const char* file);
int remove_files(const char* mask, bool subdirs);
int count_files(const char* dir, bool subdirs);
int list_files(const char* mask, TString_array& result);
bool input_filename(TFilename& file);
const char* encode(const char* data);
const char* decode(const char* data);
inline bool is_slash(char s) // @parm Carattere da confrontare
{ return s == '\\' || s == '/'; }
inline bool is_not_slash(char s) // @parm Carattere da confrontare
{ return s != '\\' && s != '/'; }
const char* esc(const char* str); // Trasforma le sequenze "\n" nel carattere '\n'
const char* unesc(const char* str); // Trasforma i caratteri '\n' nella sequenza "\n"
istream& eatwhite (istream& i);
const TString& get_hostname();
bool is_debug_station();
bool is_power_station();
bool is_power_reseller(bool power_user_only = false);
long daytime();
bool expand_sys_vars(TString& str);
void quoted_string(TString& query, const char* val);
inline const char* get_iva_sirio() // Ritorna la partita IVA della Sirio
{ return "04879210963"; }
TString& to_tstring(long n);
TString& to_tstring(int n);
#endif /* __UTILITY_H */