XALM  1.0
 Vše Třídy Prostory jmen Soubory Funkce Proměnné Výčty Hodnoty výčtu Friends Definice maker
Prostory jmen | Definice maker | Výčty | Funkce
Dokumentace souboru gelib.h

General functions. ...

#include <stdio.h>
#include <stdarg.h>
#include <sys/stat.h>

Zobrazit zdrojový text tohoto souboru.

Prostory jmen

 gelibspace
 

Definice maker

#define MAX_MSG_LENGTH   2047
 
#define DIRSEPARATOR   '/'
 
#define NUM_DIGITS_IN_PRINTED_EXPONENT   2
 
#define _STRCASECMP   strcasecmp
 
#define TC_B_BLACK   "\033[0;30m"
 

*** *** *** *** COLOURS *** *** *** ***


Termit Colours ...

 
#define TC_D_BLACK   "\033[1;30m"
 
#define TC_B_RED   "\033[0;31m"
 
#define TC_D_RED   "\033[1;31m"
 
#define TC_B_GREEN   "\033[0;32m"
 
#define TC_D_GREEN   "\033[1;32m"
 
#define TC_B_YELLOW   "\033[0;33m"
 
#define TC_D_YELLOW   "\033[1;33m"
 
#define TC_B_BLUE   "\033[0;34m"
 
#define TC_D_BLUE   "\033[1;34m"
 
#define TC_B_VIOLET   "\033[0;35m"
 
#define TC_D_VIOLET   "\033[1;35m"
 
#define TC_B_CYAN   "\033[0;36m"
 
#define TC_D_CYAN   "\033[1;36m"
 
#define TC_B_WHITE   "\033[0;37m"
 
#define TC_D_WHITE   "\033[1;37m"
 
#define TC_DEFAULT   "\033[0m"
 
#define CHANGE_CONSOLE_COLOUR(_1, _2)   fprintf (_1, "%s", _2)
 
#define errol   errorr (__FILE__, __LINE__, "za ktery muze autor teto sqele utility, bezte ho vytahat za usi")
 
#define _errorr0   errorr (__FILE__, __LINE__, "za ktery muze autor teto sqele utility, bezte ho vytahat za usi")
 
#define _errorr1(_1)   errorr (__FILE__, __LINE__, _1)
 
#define _errorr2(_1, _2)   errorr (__FILE__, __LINE__, _1,_2)
 
#define _errorr3(_1, _2, _3)   errorr (__FILE__, __LINE__, _1,_2,_3)
 
#define _errorr4(_1, _2, _3, _4)   errorr (__FILE__, __LINE__, _1,_2,_3,_4)
 
#define _errorr5(_1, _2, _3, _4, _5)   errorr (__FILE__, __LINE__, _1,_2,_3,_4,_5)
 
#define _errorr6(_1, _2, _3, _4, _5, _6)   errorr (__FILE__, __LINE__, _1,_2,_3,_4,_5,_6)
 
#define _errorr(_1)   _errorr1(_1)
 
#define _warningg(_1)   _warningg1(_1)
 
#define _warningg1(_1)   warningg (__FILE__, __LINE__, _1)
 
#define _warningg2(_1, _2)   warningg (__FILE__, __LINE__, _1,_2)
 
#define _warningg3(_1, _2, _3)   warningg (__FILE__, __LINE__, _1,_2,_3)
 
#define _warningg4(_1, _2, _3, _4)   warningg (__FILE__, __LINE__, _1,_2,_3,_4)
 
#define _warningg5(_1, _2, _3, _4, _5)   warningg (__FILE__, __LINE__, _1,_2,_3,_4,_5)
 
#define _openFileN(_1, _2, _3)   openFileN (__FILE__, __LINE__, _1,_2,_3)
 
#define _openFilePN(_1, _2, _3, _4)   openFilePN (__FILE__, __LINE__, _1,_2,_3,_4)
 
#define _openFilePNS(_1, _2, _3, _4, _5)   openFilePNS (__FILE__, __LINE__, _1,_2,_3,_4,_5)
 
#define _openFilePNSS(_1, _2, _3, _4, _5, _6)   openFilePNSS(__FILE__, __LINE__, _1,_2,_3,_4,_5,_6)
 

Výčty

enum  gelibspace::ETCLR {
  gelibspace::ETC_VOID, gelibspace::ETC_B_BLACK, gelibspace::ETC_D_BLACK, gelibspace::ETC_B_RED,
  gelibspace::ETC_D_RED, gelibspace::ETC_B_GREEN, gelibspace::ETC_D_GREEN, gelibspace::ETC_B_YELLOW,
  gelibspace::ETC_D_YELLOW, gelibspace::ETC_B_BLUE, gelibspace::ETC_D_BLUE, gelibspace::ETC_B_VIOLET,
  gelibspace::ETC_D_VIOLET, gelibspace::ETC_B_CYAN, gelibspace::ETC_D_CYAN, gelibspace::ETC_B_WHITE,
  gelibspace::ETC_D_WHITE, gelibspace::ETC_DEFAULT
}
 enum ...
 

Funkce

const char * gelibspace::trmt_clr_int2clr (ETCLR clr)
 
void gelibspace::change_console_colour (FILE *stream, ETCLR clr)
 
void gelibspace::errorr (const char *file, int line, const char *format,...)
 

*** *** *** *** ERROR FCE *** *** *** ***


...
 
void gelibspace::warningg (const char *file, int line, const char *format,...)
 
void gelibspace::openFileTest (const FILE *stream, const char *name)
 

*** *** *** *** FILE FCE *** *** *** ***


...
 
FILE * gelibspace::openFileN (const char *File, int Line, const char *mode, const char *key, const char *name)
 
FILE * gelibspace::openFilePN (const char *File, int Line, const char *mode, const char *key, const char *path, const char *name)
 
FILE * gelibspace::openFilePNS (const char *File, int Line, const char *mode, const char *key, const char *path, const char *name, const char *suff)
 
FILE * gelibspace::openFilePNSS (const char *File, int Line, const char *mode, const char *key, const char *path, const char *name, const char *suff, const char *suff2)
 
template<class ArgType >
void gelibspace::allocate (ArgType *&p, long a)
 

*** *** *** *** ALLOCATE TEMPLATES *** *** *** ***


...
 
template<class ArgType >
void gelibspace::allocate (ArgType **&p, long a, long b)
 
template<class ArgType >
void gelibspace::allocate (ArgType ***&p, long a, long b, long c)
 
template<class ArgType >
void gelibspace::deallocateCheck (ArgType *p, bool check=true)
 

*** *** *** *** DEALLOCATE TEMPLATES *** *** *** ***


...
 
template<class ArgType >
void gelibspace::deallocateCheckUno (ArgType *p, bool check=true)
 
template<class ArgType >
void gelibspace::deallocateCheck (ArgType **p, long a, bool check=true)
 
template<class ArgType >
void gelibspace::deallocateCheckUno (ArgType **p, long a, bool check=true)
 
template<class ArgType >
void gelibspace::deallocateCheck (ArgType ***p, long a, long b, bool check=true)
 
template<class ArgType >
void gelibspace::deallocateCheckUno (ArgType ***p, long a, long b, bool check=true)
 
template<class ArgType >
void gelibspace::deallocateCheck (ArgType ***p, long a, long *b, bool check=true)
 
template<class ArgType >
void gelibspace::fill_all_by (ArgType *p, long a, ArgType value)
 

*** *** *** *** FILL TEMPLATES *** *** *** ***


...
 
template<class ArgType >
void gelibspace::fill_all_by (ArgType **p, long a, long b, ArgType value)
 
template<class ArgType >
void gelibspace::fill_all_by (ArgType ***p, long a, long b, long c, ArgType value)
 
template<class ArgType >
void gelibspace::fill_row_by (ArgType **p, long i, long m, ArgType value)
 
template<class ArgType >
void gelibspace::fill_col_by (ArgType **p, long n, long j, ArgType value)
 
template<class ArgType >
void gelibspace::allocate_another_val (long n, ArgType *&old_field)
 

*** *** *** *** REALLOCATE TEMPLATES *** *** *** ***


...
 
template<class ArgType >
void gelibspace::allocate_another_uno_ptr (long n, ArgType **&old_field, long add=1)
 
template<class ArgType >
void gelibspace::setadd_another_uno_ptr (long &n, ArgType **&field, ArgType *p)
 
template<class ArgType >
void gelibspace::shake_down_ptr_array (long &n, ArgType *array)
 

*** *** *** *** VARIOUS TEMPLATES *** *** *** ***


...
 
template<class ArgType >
long gelibspace::arrays_arenot_identical (long n, ArgType *a1, ArgType *a2)
 
template<class ArgType >
long gelibspace::is_member_of_array (ArgType val, long n, const ArgType *array)
 check out "val" is member of "array" ...
 
template<class ArgType >
bool gelibspace::members_are_unique (long n, const ArgType *array)
 check out all members of array "a" are uniq ...
 
template<class ArgType >
bool gelibspace::same_array_elements_asym (long nx, const ArgType *x, long ny, const ArgType *y, bool same_dim=false)
 Function finds out whether every element of the array 'x' is in the array 'y'. ...
 
template<class ArgType >
bool gelibspace::same_array_elements_sym (long nx, const ArgType *x, long ny, const ArgType *y, bool same_dim=false)
 Function finds out whether every element of the array 'x' is in the array 'y', and symmetrically every element of the array 'y' is in the array 'x'. ...
 
template<class ArgType >
void gelibspace::add_array (long &n1, ArgType *&array1, long n2, const ArgType *array2)
 
template<class ArgType >
void gelibspace::add_array_unique (long &n1, ArgType *&array1, long n2, const ArgType *array2)
 
template<class ArgType >
void gelibspace::interchange2 (ArgType &a, ArgType &b)
 
bool gelibspace::file_exist (const char *name)
 
bool gelibspace::file_delete_if_exist (const char *name)
 
void gelibspace::file_delete_if_exist_exit (const char *name)
 

Detailní popis

General functions.

Definice v souboru gelib.h.

Dokumentace k definicím maker

#define _errorr (   _1)    _errorr1(_1)
#define _errorr0   errorr (__FILE__, __LINE__, "za ktery muze autor teto sqele utility, bezte ho vytahat za usi")

Definice je uvedena na řádku 152 v souboru gelib.h.

#define _errorr1 (   _1)    errorr (__FILE__, __LINE__, _1)

Definice je uvedena na řádku 153 v souboru gelib.h.

#define _errorr2 (   _1,
  _2 
)    errorr (__FILE__, __LINE__, _1,_2)
#define _errorr3 (   _1,
  _2,
  _3 
)    errorr (__FILE__, __LINE__, _1,_2,_3)
#define _errorr4 (   _1,
  _2,
  _3,
  _4 
)    errorr (__FILE__, __LINE__, _1,_2,_3,_4)

Definice je uvedena na řádku 156 v souboru gelib.h.

#define _errorr5 (   _1,
  _2,
  _3,
  _4,
  _5 
)    errorr (__FILE__, __LINE__, _1,_2,_3,_4,_5)

Definice je uvedena na řádku 157 v souboru gelib.h.

#define _errorr6 (   _1,
  _2,
  _3,
  _4,
  _5,
  _6 
)    errorr (__FILE__, __LINE__, _1,_2,_3,_4,_5,_6)

Definice je uvedena na řádku 158 v souboru gelib.h.

#define _openFileN (   _1,
  _2,
  _3 
)    openFileN (__FILE__, __LINE__, _1,_2,_3)

Definice je uvedena na řádku 182 v souboru gelib.h.

Používá se v gelibspace::Stream::open().

#define _openFilePN (   _1,
  _2,
  _3,
  _4 
)    openFilePN (__FILE__, __LINE__, _1,_2,_3,_4)

Definice je uvedena na řádku 183 v souboru gelib.h.

#define _openFilePNS (   _1,
  _2,
  _3,
  _4,
  _5 
)    openFilePNS (__FILE__, __LINE__, _1,_2,_3,_4,_5)

Definice je uvedena na řádku 184 v souboru gelib.h.

#define _openFilePNSS (   _1,
  _2,
  _3,
  _4,
  _5,
  _6 
)    openFilePNSS(__FILE__, __LINE__, _1,_2,_3,_4,_5,_6)

Definice je uvedena na řádku 185 v souboru gelib.h.

#define _STRCASECMP   strcasecmp

Definice je uvedena na řádku 47 v souboru gelib.h.

Používá se v gelibspace::AP_find_option().

#define _warningg (   _1)    _warningg1(_1)
#define _warningg1 (   _1)    warningg (__FILE__, __LINE__, _1)

Definice je uvedena na řádku 165 v souboru gelib.h.

#define _warningg2 (   _1,
  _2 
)    warningg (__FILE__, __LINE__, _1,_2)

Definice je uvedena na řádku 166 v souboru gelib.h.

Používá se v gelibspace::SP_scan_array_L().

#define _warningg3 (   _1,
  _2,
  _3 
)    warningg (__FILE__, __LINE__, _1,_2,_3)

Definice je uvedena na řádku 167 v souboru gelib.h.

#define _warningg4 (   _1,
  _2,
  _3,
  _4 
)    warningg (__FILE__, __LINE__, _1,_2,_3,_4)

Definice je uvedena na řádku 168 v souboru gelib.h.

#define _warningg5 (   _1,
  _2,
  _3,
  _4,
  _5 
)    warningg (__FILE__, __LINE__, _1,_2,_3,_4,_5)

Definice je uvedena na řádku 169 v souboru gelib.h.

#define CHANGE_CONSOLE_COLOUR (   _1,
  _2 
)    fprintf (_1, "%s", _2)

Definice je uvedena na řádku 135 v souboru gelib.h.

Používá se v gelibspace::change_console_colour(), gelibspace::errorr() a gelibspace::warningg().

#define DIRSEPARATOR   '/'

Definice je uvedena na řádku 35 v souboru gelib.h.

Používá se v gelibspace::pathstrdupl().

#define errol   errorr (__FILE__, __LINE__, "za ktery muze autor teto sqele utility, bezte ho vytahat za usi")
#define MAX_MSG_LENGTH   2047

Definice je uvedena na řádku 30 v souboru gelib.h.

Používá se v gelibspace::errorr() a gelibspace::warningg().

#define NUM_DIGITS_IN_PRINTED_EXPONENT   2
#define TC_B_BLACK   "\033[0;30m"


*** *** *** *** COLOURS *** *** *** ***


Termit Colours

Definice je uvedena na řádku 77 v souboru gelib.h.

Používá se v gelibspace::trmt_clr_int2clr().

#define TC_B_BLUE   "\033[0;34m"

Definice je uvedena na řádku 85 v souboru gelib.h.

Používá se v gelibspace::trmt_clr_int2clr().

#define TC_B_CYAN   "\033[0;36m"

Definice je uvedena na řádku 89 v souboru gelib.h.

Používá se v gelibspace::trmt_clr_int2clr().

#define TC_B_GREEN   "\033[0;32m"

Definice je uvedena na řádku 81 v souboru gelib.h.

Používá se v gelibspace::trmt_clr_int2clr().

#define TC_B_RED   "\033[0;31m"

Definice je uvedena na řádku 79 v souboru gelib.h.

Používá se v gelibspace::trmt_clr_int2clr().

#define TC_B_VIOLET   "\033[0;35m"

Definice je uvedena na řádku 87 v souboru gelib.h.

Používá se v gelibspace::trmt_clr_int2clr().

#define TC_B_WHITE   "\033[0;37m"

Definice je uvedena na řádku 91 v souboru gelib.h.

Používá se v gelibspace::trmt_clr_int2clr().

#define TC_B_YELLOW   "\033[0;33m"

Definice je uvedena na řádku 83 v souboru gelib.h.

Používá se v gelibspace::trmt_clr_int2clr().

#define TC_D_BLACK   "\033[1;30m"

Definice je uvedena na řádku 78 v souboru gelib.h.

Používá se v gelibspace::trmt_clr_int2clr().

#define TC_D_BLUE   "\033[1;34m"

Definice je uvedena na řádku 86 v souboru gelib.h.

Používá se v gelibspace::trmt_clr_int2clr().

#define TC_D_CYAN   "\033[1;36m"

Definice je uvedena na řádku 90 v souboru gelib.h.

Používá se v gelibspace::trmt_clr_int2clr().

#define TC_D_GREEN   "\033[1;32m"

Definice je uvedena na řádku 82 v souboru gelib.h.

Používá se v gelibspace::trmt_clr_int2clr().

#define TC_D_RED   "\033[1;31m"

Definice je uvedena na řádku 80 v souboru gelib.h.

Používá se v gelibspace::errorr() a gelibspace::trmt_clr_int2clr().

#define TC_D_VIOLET   "\033[1;35m"

Definice je uvedena na řádku 88 v souboru gelib.h.

Používá se v gelibspace::trmt_clr_int2clr() a gelibspace::warningg().

#define TC_D_WHITE   "\033[1;37m"

Definice je uvedena na řádku 92 v souboru gelib.h.

Používá se v gelibspace::trmt_clr_int2clr().

#define TC_D_YELLOW   "\033[1;33m"

Definice je uvedena na řádku 84 v souboru gelib.h.

Používá se v gelibspace::trmt_clr_int2clr().

#define TC_DEFAULT   "\033[0m"

Definice je uvedena na řádku 94 v souboru gelib.h.

Používá se v gelibspace::errorr(), gelibspace::trmt_clr_int2clr() a gelibspace::warningg().