HCE project C++ developers source code library  1.1.1
HCE project developer library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
makro.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define TWO_LEVEL_20   1024 * 1024
#define DELL_RES_SIZE   1024 * 1024 * 64
#define TIME_START
#define TIME_END(str, count)
#define DELL_PTR(ptr)
#define DELL_BUFF(buff)
#define BREAK_SPACE(i)
#define BREAK_SPACE_IF_SIZE(i, size)
#define RETURN_IF_SIZE(y, buff)
#define PREPARE_DOMEN(url)
#define CUT_PROTOCOL_NAME_LONGLIST(str)
#define CUT_PROTOCOL_NAME_SHORTLIST(str)
#define HTML_DOC_TYPE   1
#define IMAGE_DOC_TYPE   2
#define SUN_DOC_TYPE   4
#define UNKNOWN_DOC_TYPE   10
#define WORD_DOC_TYPE   5
#define EXEL_DOC_TYPE   6
#define PPOINT_DOC_TYPE   7
#define RSS_DOC_TYPE   8
#define PDF_DOC_TYPE   9
#define XML_DOC_TYPE   11
#define SQL_DOC_TYPE   12
#define SM_TTIME
#define FREE_CDR_DATA
#define DIC_ATTEMPT_COUNT   4
#define CRW_LOG_SEPARATOR   '\t'
#define SDP_CONN   0
#define RW_CONN   1
#define CODING_AUTO_SIZE   32
#define IMAGE_CODE   7

Macro Definition Documentation

#define BREAK_SPACE (   i)
Value:
while(source [i] == ' ')\
{\
i++;\
}

Definition at line 33 of file makro.h.

#define BREAK_SPACE_IF_SIZE (   i,
  size 
)
Value:
while((source[i] == ' ' || source[i] == '\r' || source[i] == '\n') && i < size)\
{\
i++;\
}

Definition at line 39 of file makro.h.

#define CODING_AUTO_SIZE   32

Definition at line 160 of file makro.h.

#define CRW_LOG_SEPARATOR   '\t'

Definition at line 155 of file makro.h.

#define CUT_PROTOCOL_NAME_LONGLIST (   str)
Value:
if (strstr(str, "http://www.") == str)\
{\
str += 11;\
}\
else if (strstr(str, "http://") == str)\
{\
str += 7;\
}\
else if (strstr(str, "https://www.") == str)\
{\
str += 12;\
}\
else if (strstr(str, "https://") == str)\
{\
str += 8;\
}\
else if (strstr(str, "cds://") == str)\
{\
str += 6;\
}

Definition at line 82 of file makro.h.

#define CUT_PROTOCOL_NAME_SHORTLIST (   str)
Value:
if (strstr(str, "http://") == str)\
{\
str += 7;\
}\
else if (strstr(str, "https://") == str)\
{\
str += 8;\
}\
else if (strstr(str, "cds://") == str)\
{\
str += 6;\
}

Definition at line 104 of file makro.h.

#define DELL_BUFF (   buff)
Value:
if (buff)\
{\
delete [] buff;\
buff = NULL;\
}

Definition at line 26 of file makro.h.

#define DELL_PTR (   ptr)
Value:
if (ptr)\
{\
delete ptr;\
ptr = NULL;\
}

Definition at line 18 of file makro.h.

#define DELL_RES_SIZE   1024 * 1024 * 64

Definition at line 3 of file makro.h.

#define DIC_ATTEMPT_COUNT   4

Definition at line 154 of file makro.h.

#define EXEL_DOC_TYPE   6

Definition at line 123 of file makro.h.

#define FREE_CDR_DATA
Value:
incr = 0;\
offsetIncr = 0;\
free(hCrcInsert);\
hCrcInsert = NULL;\
free(offsetInsert);\
offsetInsert = NULL;\
free(simClassInsert);\
simClassInsert = NULL;\
free(wordsSentencesInsert);\
wordsSentencesInsert = NULL;\
free(wordsLingIntegrityInsert);\
wordsLingIntegrityInsert = NULL;\
memset(typesOffset, 0, 16 * sizeof(unsigned int));\
typesPresenceMask = 0;\
typeOffset = 0;

Definition at line 138 of file makro.h.

#define HTML_DOC_TYPE   1

Definition at line 118 of file makro.h.

#define IMAGE_CODE   7

Definition at line 162 of file makro.h.

#define IMAGE_DOC_TYPE   2

Definition at line 119 of file makro.h.

#define PDF_DOC_TYPE   9

Definition at line 126 of file makro.h.

#define PPOINT_DOC_TYPE   7

Definition at line 124 of file makro.h.

#define PREPARE_DOMEN (   url)
Value:
i = 0;\
if (beganRstr(url, "http://www."))\
{\
url += 11;\
}\
else if (beganRstr(url, "http://"))\
{\
url += 7;\
}\
if (beganRstr(url, "https://www."))\
{\
url += 12;\
}\
else if (beganRstr(url, "https://"))\
{\
url += 8;\
}\
else if (beganRstr(url, "www."))\
{\
url += 4;\
}\
while (url[i] != 0 && url[i] != '/')\
{\
i++;\
}

Definition at line 55 of file makro.h.

#define RETURN_IF_SIZE (   y,
  buff 
)
Value:
if (y >= size)\
{\
if (buff)\
{\
delete [] buff;\
}\
return;\
}

Definition at line 45 of file makro.h.

#define RSS_DOC_TYPE   8

Definition at line 125 of file makro.h.

#define RW_CONN   1

Definition at line 158 of file makro.h.

#define SDP_CONN   0

Definition at line 157 of file makro.h.

#define SM_TTIME
Value:
TIME_END("", 0xFFFFFFFF)\
if (statistic)\
{\
statistic->SMTime += timer;\
statistic->SMCount++;\
}

Definition at line 131 of file makro.h.

#define SQL_DOC_TYPE   12

Definition at line 128 of file makro.h.

#define SUN_DOC_TYPE   4

Definition at line 120 of file makro.h.

#define TIME_END (   str,
  count 
)
Value:
gettimeofday(& tv , NULL);\
timer = (tv.tv_usec + tv.tv_sec * 1000000) - timer ;\
if(timer > count)\
std::cout << str << timer << std::endl;

Definition at line 11 of file makro.h.

#define TIME_START
Value:
gettimeofday(& tv , NULL);\
timer = (tv.tv_usec + tv.tv_sec * 1000000);

Definition at line 6 of file makro.h.

#define TWO_LEVEL_20   1024 * 1024

Definition at line 2 of file makro.h.

#define UNKNOWN_DOC_TYPE   10

Definition at line 121 of file makro.h.

#define WORD_DOC_TYPE   5

Definition at line 122 of file makro.h.

#define XML_DOC_TYPE   11

Definition at line 127 of file makro.h.