+#ifdef MONITORINGTRHU_CTU\r
+//special hack only to generate certain required CSV statistics for www.ctu.cz (regulation body)\r
+ char *found_at = strchr(str, '@');\r
+ char *ruian_id_str = NULL;\r
+ technology = NULL;\r
+ if(found_at)\r
+ {\r
+ int len;\r
+ char *found_ruian_end = strchr(found_at, ' ');\r
+ char *found_tech_str = found_at;\r
+ while(found_tech_str-- > str && *found_tech_str != ' ' && *found_tech_str != '#');\r
+ if(found_tech_str > str)\r
+ {\r
+ len = found_at - found_tech_str - 1;\r
+ for_each(technology, technologies)\r
+ if(strlen(technology->filename)==len && !strncmp(technology->filename, found_tech_str + 1, len))\r
+ break;\r
+ if(!technology)\r
+ {\r
+ create(technology,Technology);\r
+ string(technology->filename, len + 1);\r
+ strncpy(technology->filename, found_tech_str + 1, len);\r
+ technology->filename[len] = 0;\r
+ push(technology, technologies);\r
+ }\r
+ if(found_ruian_end)\r
+ {\r
+ len = found_ruian_end - found_at - 1;\r
+ string(ruian_id_str, len + 1);\r
+ strncpy(ruian_id_str, found_at + 1, len);\r
+ ruian_id_str[len] = 0;\r
+ }\r
+ }\r
+ }\r
+#endif\r