Home

Service Reference Manual

image

Contents

1. 17 Service ServerSocket 21 yaya sadc r q la 26 VV 0 27 YYSTYPE pedii MA A a a ee ee Ge eet e hc eS 28 Service Hierarchical Index Generated on Tue Jan 10 18 04 41 2006 for Service by Doxygen Chapter 3 Service Compound Index 3 1 Service Compound List Here are the classes structs unions and interfaces with brief descriptions Service ClientSocket ClientSocket specializes the Socket class to work as client 17 GFTNException Se a a ues Ko di Reti Ki nar Valat 19 Service ServerSocket ServerSocket specializes the Socket class to work as server 21 Servicet SOck ti v mak ta dra das ledus aa bits dad p 23 vyeb uff rsst t 000 eR A RUE AA e SS ue 26 yyalloc g s tu eee eee 27 YYSTYPE 5 ASA a SS he ad ete ao 28 Service Compound Index Generated on Tue Jan 10 18 04 41 2006 for Service by Doxygen Chapter 4 Service File Index 4 1 Service File List Here is a list of all files with brief descriptions client cpp 4 48 saan A a 4 kutee ae AL 29 Gonstants CDD cA rt LX uu ce eee hes Eh 4 ia 30 Constants he ec ts E KTK dude dV 31 CEENEXception cpp lt amp od Esine Ek d a xa xb 33 CITTNException h 463 n4 URA A ME ua 34 RPParsericc ms aa gee Rune mi mama msi aiel Xe ah ns A E 35 RPParser h 88184 Ame A e DD rl ee 45 HPP rs r hh 4 8 3 s wmm Aude edel bee
2. 59 60 Service File Documentation 7 12 Service cpp File Reference include include include include include include include include lt sstream gt lt fstream gt lt cstdarg gt lt stdio h gt lt limits h gt lt dirent h gt Service h CTTNException h Namespaces e namespace Service Generated on Tue Jan 10 18 04 41 2006 for Service by Doxygen 7 13 Service h File Reference 7 13 Service h File Reference include include include include include include include include lt stdlib h gt lt stdio h gt lt string gt lt sstream gt lt iostream gt lt vector gt lt map gt Constants h Namespaces e namespace Service e namespace std Generated on Tue Jan 10 18 04 41 2006 for Service by Doxygen 61 62 Service File Documentation 7 14 ServiceTest cpp File Reference include lt functional gt include Service h Functions void test string testname string result string desired void testE string testname void nTest string s int main int argc char xargv 7 14 1 Function Documentation 7 14 1 1 int main int argc char argv 7 14 1 2 void nTest string s 7 14 1 3 void test string testname string result string desired 7 14 1 4 void testE string testname Generated on Tue Jan 10 18 04 41 2006 for Service by Doxygen 7 15 Socket cpp File Reference 7 15 Socket cpp File Reference include include include inc
3. nTest 62 test 62 test E 62 set non blocking Service Socket 25 size RPScanner cc 56 Socket Service Socket 24 Socket cpp 63 Socket h 64 MAXCONNECTIONS 64 MAXHOSTNAME 64 MAXRECV 64 split Service 14 start YYSTYPE 28 std 16 operator lt lt 16 stripComment Service 14 stripComments Service 15 systemError CTTNFxception 20 test RPParserTest cpp 48 Service Test cpp 62 testE RPParserTest cpp 48 Service Test cpp 62 TIMES Generated on Tue Jan 10 18 04 41 2006 for Service by Doxygen 70 RPParser cc 37 41 RPParser hh 47 toFloat Service 15 toFLT Service 15 toInt Service 15 TOKEN RPParser cc 37 41 RPParser hh 47 toRt Service 15 unput RPScanner cc 52 value YYSTYPE 28 vectorDifference Service 15 withLineNumbers Service 15 xToString Service 15 yy accept RPScanner cc 56 YY AT BOL RPScanner cc 52 yy at bol yy buffer state 26 yy base RPScanner cc 57 yy bp RPScanner cc 57 YY_BREAK RPScanner cc 52 yy buf_pos yy buffer state 26 YY BUF SIZE RPScanner cc 52 yy buf size yy buffer state 26 YY BUFFER EOF PENDING RPScanner cc 52 YY BUFFER NEW RPScanner cc 52 YY BUFFER NORMAL RPScanner cc 52 YY BUFFER STATE RPScanner cc 56 yy buffer state 26 INDEX yy at_bol 26 yy buf pos 26 yy buf size 26 yy buffer status 26 yy ch_buf 26 yy fill buffer 26 yy input file 26 yy is interactive 26 y y 1s_our_buffer
4. ostream s const vector lt I x gt amp vec a generic lt lt operator for vectors of pointers template lt class I gt ostream amp operator lt lt ostream s const pair string vector lt I gt gt amp vec a generic lt lt operator for vectors of pairs of strings and a vector to pointers template lt class I gt ostream amp operator lt lt ostream s const pair string vector lt I gt gt amp vec a generic lt lt operator for vectors of pairs of strings and pointers 5 2 1 Function Documentation 5 2 1 1 template lt class I gt ostream z operator lt lt ostream amp s const pair lt string vector lt I gt x gt amp vec a generic lt lt operator for vectors of pairs of strings and pointers 5 2 1 2 template lt class I gt ostream amp operator lt lt ostream amp s const pair lt string vector lt I x gt gt amp vec a generic lt lt operator for vectors of pairs of strings and a vector to pointers 5 2 1 3 template lt class I gt ostream amp operator lt lt ostream amp s const vector lt I gt amp vec a generic lt lt operator for vectors of pointers 5 2 1 4 template lt class I gt ostream amp operator lt lt ostream amp s const vector lt I gt amp vec a generic lt lt operator for vectors Generated on Tue Jan 10 18 04 41 2006 for Service by Doxygen Chapter 6 Service Class Documentation 6 1 Service ClientSocket Class Re
5. yylex 55 yymore 56 yyout 56 58 yyrestart 56 YYSTATE 56 yyterminate 56 yytext 56 58 yytext_ptr 56 yywrap 56 Constants h 32 Generated on Tue Jan 10 18 04 41 2006 for Service by Doxygen INDEX send Service Socket 25 server cpp 59 main 59 PORT 59 ServerSocket Service ServerSocket 21 Service 9 eraseLeadingW hitespace 12 eraseLinefeeds 12 eraseLineFollowings 12 eraseMultipleWhitespace 12 erase Whitespace 12 expandRepetitionPattern 12 intToString 12 isInfinity 12 isNeglnfinity 12 isPosInfinity 13 join 13 linebreaks 13 moduloPos 13 nDividable 13 NullFet 13 parseltem 13 parseltems 13 parseltem Vector 13 parseNestedItems 14 readFile 14 remainder 14 roundX 14 roundY 14 split 14 stripComment 14 stripComments 15 toFloat 15 toFLT 15 toInt 15 toRt 15 vectorDifference 15 withLineNumbers 15 xToString 15 Service cpp 60 Service h 61 Service ClientSocket 17 Service ClientSocket ClientSocket 18 ClientSocket 18 operator lt lt 18 operator gt gt 18 readUrl 18 Service ServerSocket 21 Service ServerSocket ServerSocket 22 accept 22 69 operator lt lt 22 operator gt gt 22 ServerSocket 21 Service Socket 23 Socket 24 accept 24 bind 24 connect 24 create 24 is_valid 24 listen 24 m addr 25 m sock 25 recv 24 send 25 set non blocking 25 Socket 24 ServiceTest cpp 62 ServiceTest cpp main 62
6. 33 34 Service File Documentation 7 5 CTTNException h File Reference include lt stdlib h gt include lt stdio h gt include lt string gt include lt iostream gt Compounds e class CTTNException Generated on Tue Jan 10 18 04 41 2006 for Service by Doxygen 7 6 RPParser cc File Reference 7 6 RPParser cc File Reference include Service h include RPParser h Compounds e union yyalloc e union YYSTYPE Defines e define YYBISON 1 define YYSKELETON_NAME yacc c e define YYPURE 0 e define YYLSP_NEEDED 0 e define yyparse RP parse e 7 define yylex RP lex e 7 define yyerror RP error define yylval RP lval 7 define yychar RP char 7 define yydebug RP debug e define yynerrs RP nerrs e define TOKEN 258 define KOMMA 259 e define TIMES 260 e define OPENPARENTHESIS 261 e define CLOSEPARENTHESIS 262 e define ERROR 263 e define YYDEBUG 0 e define YYERROR VERBOSE 0 e define yystype YYSTYPE e define YYSTYPE IS DECLARED 1 e define YYSTYPE IS TRIVIAL 1 e define YYSTACK ALLOC malloc e define YYSTACK FREE free e define YYSTACK GAP MAXIMUM sizeof union yyalloc 1 define YYSTACK BYTES N e define YYCOPY To From Count e define YYSTACK RELOCATE Stack e define YYFINAL 8 e define YYLAST 12 e define YYNTOKENS 9 e define YYNNTS 4 e define YYNRULES 10 e define YYNSTATES 17 e define YYUNDEFTOK 2 e define YYMAXUTOK 26
7. 56 REJECT 52 size 56 unput 52 yy accept 56 YY_AT_BOL 52 yy base 57 yy bp 57 YY BREAK 52 YY BUF SIZE 52 YY BUFFER EOF PENDING 52 YY BUFFER NEW 52 YY BUFFER NORMAL 52 YY BUFFER STATE 56 yy c buf p 57 YY_CHAR 56 yy chk 57 yy create_buffer 52 YY_CURRENT_BUFFER 52 yy current buffer 57 YY DECL 52 yy def 57 yy delete buffer 52 yy did buffer switch on eof 57 YY DO BEFORE ACTION 52 yy ec 58 YY END OF BUFFER 52 YY END OF BUFFER CHAR 53 YY EXIT FAILURE 53 YY FATAL ERROR 53 yy flex debug 53 YY FLEX MAJOR VERSION 53 YY FLEX MINOR VERSION 53 YY FLUSH BUFFER 53 Rt INDEX yy flush buffer 53 yy hold char 58 yy init 58 yy init_buffer 53 56 YY INPUT 53 yy last accepting 58 yy last accepting state 58 yy load buffer state 53 yy meta 58 YY_MORE_ADJ 54 yy n chars 58 yy new buffer 54 YY NEW FILE 54 YY NO POP STATE 54 YY NO PUSH STATE 54 YY NO STATE 54 YY NULL 54 YY NUM RULES 54 yy nxt 58 YY PROTO 54 56 YY READ BUF SIZE 54 YY RESTORE YY MORE OFFSET 54 YY RULE SETUP 54 YY SC TO UI 54 yy scan_buffer 54 yy scan bytes 54 yy scan string 54 yy set_bol 54 yy set interactive 54 yy size t 56 YY_SKIP_YYWRAP 54 YY START 55 yy start 58 YY START STACK INCR 55 YY STATE EOF 55 yy state type 56 yy switch to buffer 55 yyconst 55 yyin 55 58 yyleng 55 58 yyless 55
8. into a vector of strings A repetition pattern is either e a token consisting of characters or numbers e g ab 2 22 2ab or e a separator separated list of tokens or expressions e g ab 23 45 or e an expression token e g 2 ab or e an expression expression e g 2 a b or 2 a 3x b c 4 The multiplicities are expanded and stored into result e g 2 2 2 33 44a 3 ff yields 2133 44a 33 44a 2 33 44a 33 Returns an error string if a parse error occurred 5 1 2 7 string intToString int 2 int length converts the integer to a string and fills the head with blanks such that the string is length characters long 5 1 2 8 bool isInfinity const Rt amp x A check for either positive or negative infinity Generated on Tue Jan 10 18 04 41 2006 for Service by Doxygen 5 1 Service Namespace Reference 13 5 1 2 9 bool isNeglnfinity const Rt amp x A check for negative infinity 5 1 2 10 bool isPosInfinity const Rt amp x A check for positive infinity 5 1 2 11 template lt class I gt string join const string amp separator const vector lt I gt amp items joins all items into a separator separated string works for all types which can be converted to a string with xToString 5 1 2 12 int linebreaks const string amp s returns the number of linebreaks in the string 5 1 2 13 int moduloPos const Co
9. 1 define yy switch to buffer RP switch to buffer j define yyconst FILE yyin RP in int yyleng RP leng 7 10 1 59 define yyless n Value do LN N yytext yyleng yy hold char N yy_c_buf_p yytext n N yy_hold_char yy_c_buf_p N yy_c_buf_p W N yyleng n N JA while 7 10 1 60 define yyless n Value do DA yy_cp yy hold char N YY RESTORE YY MORE OFFSET yy c buf p yy yy bp n YY MORE ADJ N YY DO BEFORE ACTION JA while 0 Generated on Tue Jan 10 18 04 41 2006 for Service by Doxygen 56 7 10 1 61 7 10 1 62 7 10 1 63 7 10 1 64 7 10 1 65 7 10 1 66 7 10 1 67 7 10 1 68 7 10 1 69 7 10 2 7 10 2 1 7 10 2 2 7 10 2 3 7 10 2 4 7 10 3 7 10 3 1 7 10 3 2 7 10 3 3 7 10 3 4 7 10 3 5 7 10 3 6 7 10 3 7 7 10 3 8 7 10 3 9 7 10 3 10 7 10 3 11 7 10 3 12 7 10 3 13 7 10 3 14 Service File Documentation J define yylex RP lex j define yymore yymore used but not detected FILE yyout RP out define yyrestart RP restart define YYSTATE YY START define yyterminate return YY NULL char yytext RP text j define yytext ptr yytext define yywrap 1 Typedef Documentation typedef struct yy buffer state YY BUFFER STATE typedef unsigned char YY CHAR typedef unsigned int yy size t typedef int yy state type Function Documentation void yy init buffer b file void yyunput YY PROTO int c char buf_ptr static void yy fatal erro
10. 20 21 22 20 20 20 20 0 20 20 Generated on Tue Jan 10 18 04 41 2006 for Service by Doxygen 57 58 7 10 4 12 7 10 4 13 7 10 4 14 7 10 4 15 7 10 4 16 7 10 4 17 7 10 4 18 Service File Documentation int yy did buffer switch on eof static yyconst int yy ec 256 static char yy hold char static int yy init 1 static charx yy last accepting cpos static yy state type yy last accepting state static yyconst int yy meta 13 static Initial value 7 10 4 19 7 10 4 20 int yy_n_chars static yyconst short int yy nxt 37 static Initial value N O JP RO 7 10 4 21 7 10 4 22 7 10 4 23 7 10 4 24 7 10 4 25 5 6 5 T5 8 95 110 12 13 14 14 15 15 17 19 18 17 16 20 3 20 20 20 20 20 20 20 20 20 20 20 int yy_start 0 static FTLE yyin FTLE 0 int yyleng FILE yyout FILE charx yytext Generated on Tue Jan 10 18 04 41 2006 for Service by Doxygen 7 11 server cpp File Reference 7 11 server cpp File Reference include lt string gt include lt iostream gt include lt stdio h gt include Socket h include CTTNException h Functions e int main int argc int argv Variables e int PORT 1952 7 11 1 Function Documentation 7 11 1 1 int main int argc int 7 11 2 Variable Documentation 7 11 2 1 int PORT 1952 Generated on Tue Jan 10 18 04 41 2006 for Service by Doxygen
11. 26 yy n chars 26 yy buffer status yy buffer state 26 yy c buf p RPScanner cc 57 yy ch buf yy buffer state 26 YY CHAR RPScanner cc 56 yy chk RPScanner cc 57 yy create buffer RPScanner cc 52 YY CURRENT BUFFER RPScanner cc 52 y y current buffer RPScanner cc 57 YY DECL RPScanner cc 52 yy def RPScanner cc 57 y y delete buffer RPScanner cc 52 y y did buffer switch on eof RPScanner cc 57 YY DO BEFORE ACTION RPScanner cc 52 yy ec RPScanner cc 58 YY END OF BUFFER RPScanner cc 52 YY END OF BUFFER CHAR RPScanner cc 53 YY EXIT FAILURE RPScanner cc 53 YY FATAL ERROR RPScanner cc 53 yy fill buffer yy buffer state 26 yy flex debug RPScanner cc 53 YY FLEX MAJOR VERSION RPScanner cc 53 YY FLEX MINOR VERSION RPScanner cc 53 Generated on Tue Jan 10 18 04 41 2006 for Service by Doxygen INDEX YY_FLUSH_BUFFER RPScanner cc 53 yy flush_buffer RPScanner cc 53 yy hold char RPScanner cc 58 yy init RPScanner cc 58 y y init_buffer RPScanner cc 53 56 YY INPUT RPScanner cc 53 yy input file yy buffer state 26 yy is interactive yy buffer state 26 yy is our buffer yy buffer state 26 yy last accepting cpos RPScanner cc 58 yy last accepting state RPScanner cc 58 yy load buffer state RPScanner cc 53 yy meta RPScanner cc 58 YY MORE ADJ RPScanner cc 54 yy n chars RPScanner cc 58 yy buffer state 26 yy new buffer RPScanner cc 54 YY NEW FILE RPScanner cc 54 YY NO POP STATE RPSca
12. 32 ZERO 32 create Service Socket 24 CTTNException 19 CTTNException 20 file 20 message 20 method 20 module 20 operator lt lt 20 recommendation 20 systemError 20 CTTNException cpp 33 operator lt lt 33 CTTNException h 34 ECHO RPScanner cc 52 EOB ACT CONTINUE SCAN RPScanner cc 52 EOB ACT END OF FILE RPScanner cc 52 EOB ACT LAST MATCH RPScanner cc 52 eraseLeadingW hitespace Service 12 eraseLinefeeds Service 12 eraseLineFollowings Service 12 eraseMultipleW hitespace Service 12 erase Whitespace Service 12 ERROR RPParser cc 37 41 RPParser hh 47 expandRepetitionPattern Service 12 fFTOP Constants h 31 file CTTNException 20 RPScanner cc 56 FLEX_SCANNER RPScanner cc 52 FLT Constants h 32 FTOP 66 Constants h 31 Fuzzy Constants h 32 INITIAL RPScanner cc 52 int ToString Service 12 is valid Service Socket 24 isInfinity Service 12 isNegInfinity Service 12 isPosInfinity Service 13 join Service 13 KOMMA RPParser cc 37 41 RPParser hh 47 len RPScanner cc 56 linebreaks Service 13 listen Service Socket 24 m_addr Service Socket 25 m sock Service Socket 25 main client cpp 29 RPParserTest cpp 48 server cpp 59 Service Test cpp 62 MAXCONNECTIONS Socket h 64 MAXHOSTNAME Socket h 64 MAXRECV Socket h 64 message CTTNException 20 method CTTNException 20 module CTTNException 20 moduloPos Servi
13. 7 10 1 46 7 10 1 47 7 10 1 48 7 10 1 49 Value N Service File Documentation J define yy load buffer state RP load buffer state J define YY MORE ADJ j define yy new buffer yy create buffer j define YY NEW FILE yyrestart yyin define YY NO POP STATE 1 fdefine YY NO PUSH STATE 1 fdefine YY NO TOP STATE 1 J define YY NULL 0 fdefine YY NUM RULES 9 J define YY PROTO proto fdefine YY READ BUF SIZE 8192 define YY RESTORE YY MORE OFFSET define YY RULE SETUP YY USER ACTION J define YY SC TO Ul c unsigned int unsigned char c j define yy scan buffer RP scan buffer j define yy scan bytes RP scan bytes J define yy scan string scan string define yy set bol at bol if yy current buffer yy current buffer yy create buffer yyin YY BUF SIZE yy current buffer yy at bol at bol N 7 10 1 50 Value N j define yy set interactive is interactive if yy current buffer yy current buffer yy create buffer yyin YY BUF SIZE yy current buffer gt yy is interactive is interactive N Generated on Tue Jan 10 18 04 41 2006 for Service by Doxygen 7 10 RPScanner cc File Reference 7 10 1 51 7 10 1 52 7 10 1 53 7 10 1 54 7 10 1 55 7 10 1 56 7 10 1 57 7 10 1 58 fdefine YY SKIP YYWRAP define YY START yy start 1 2 J define YY START STACK INCR 25 4 define YY STATE EOF state YY END OF BUFFER state
14. Enumerations e enum yytokentype TOKEN 258 KOMMA 259 TIMES 260 OPENPARENTHESIS 261 CLOSEPARENTHESIS 262 ERROR 263 Variables e YYSTYPE RP lval Generated on Tue Jan 10 18 04 41 2006 for Service by Doxygen 47 7 8 RPParser hh File Reference 7 8 1 7 8 1 1 7 8 1 2 7 8 1 3 7 8 1 4 7 8 1 5 7 8 1 6 7 8 1 7 7 8 1 8 7 8 1 9 7 8 2 7 8 2 1 7 8 3 7 8 3 1 Define Documentation fdefine CLOSEPARENTHESIS 262 define ERROR 263 fdefine KOMMA 259 fedefine OPENPARENTHESIS 261 define TIMES 260 define TOKEN 258 j define yystype YYSTYPE define YYSTYPEIS_DECLARED 1 j define YYSTYPE IS TRIVIAL 1 Typedef Documentation typedef union YYSTYPE YYSTYPE Enumeration Type Documentation enum yytokentype Enumeration values TOKEN KOMMA TIMES OPENPARENTHESIS CLOSEPARENTHESIS ERROR 7 8 4 Variable Documentation 7 8 4 1 YYSTYPE RP lval Generated on Tue Jan 10 18 04 41 2006 for Service by Doxygen 48 Service File Documentation 7 9 RPParserTest cpp File Reference include lt functional gt include Service h include RPParser h Functions void test string testname string result string desired void testE string testname void nTest string s int main int argc char argv 7 9 1 Function Documentation 7 9 1 1 int main int argc char argv 7 9 1 2 void nTest string s 7 9 1 3 void test string testname string result string desired 7 9 1 4 v
15. File Reference Variables vector lt string gt RP Strings string RP Error e const unsigned char yytranslate e const unsigned char yyr1 e const unsigned char yyr2 e const unsigned char yydefact e const yysigned char yydefgoto l const yysigned char yypact e const yysigned char yypgoto const unsigned char yytable e const unsigned char yycheck e const unsigned char yystos e YYSTYPE s yyvaluep e int yychar e YYSTYPE yylval e int yynerrs 7 6 1 Define Documentation 7 6 1 1 define CLOSEPARENTHESIS 262 7 6 1 2 define ERROR 263 7 6 1 3 define KOMMA 259 7 6 1 4 j define OPENPARENTHESIS 261 7 6 1 5 z define TIMES 260 7 6 1 6 z define TOKEN 258 7 6 1 7 define YY REDUCE PRINT Rule 7 6 1 8 define YY STACK PRINT Bottom Top 7 6 1 9 j define YYABORT goto yyabortlab 7 6 1 10 define YYACCEPT goto yyacceptlab 7 6 1 11 define YYBACKUP Token Value Value do if yychar YYEMPTY amp amp yylen 1 yychar Token yylval Value yytoken YYTRANSLATE yychar YYPOPSTACK goto yybackup Generated on Tue Jan 10 18 04 41 2006 for Service by Doxygen POA JI ARI 37 38 Service File Documentation else 1 N yyerror syntax error cannot back up YYERROR N while 0 7 6 1 12 define YYBISON 1 7 6 1 13 define yychar RP char 7 6 1 14 define yyclearin yychar YYEMPTY 7 6 1 15 define YYCOPY To From Count Value do re
16. STATE typedef unsigned int yy size t typedef unsigned char YY CHAR typedef int yy state type Functions void yyrestart YY PROTO FILE xinput_file void yy switch to buffer YY PROTO YY BUFFER STATE new buffer void yy load buffer state YY PROTO void YY BUFFER STATE yy create buffer YY PROTO FILE xfile int size void yy delete buffer YY PROTO YY BUFFER STATE b Generated on Tue Jan 10 18 04 41 2006 for Service by Doxygen 7 10 RPScanner cc File Reference 51 void yy_init_buffer YY PROTO YY_BUFFER STATE b FILE xfile YY BUFFER STATE yy scan buffer YY PROTO char base yy size t size YY BUFFER STATE yy scan string YY PROTO yyconst char yy str YY BUFFER STATE yy scan bytes YY PROTO yyconst char bytes int len void kyy flex alloc YY PROTO yy size t void yy flex realloc YY PROTO void x yy size t void yy flex free YY PROTO void x yy state type yy try NUL trans YY PROTO yy state type current state void yy fatal error YY PROTO yyconst char msg void yyunput YY PROTO int c char xbuf_ptr void yy init buffer b file YY BUFFER STATE b Variables int yyleng FILE yyin FILE x 0 FILE x yyout FILE x 0 YY BUFFER STATE yy current buffer 0 char yy hold char int yy_n_chars char x yy_c_buf_p char 0 int yy init 1 int yy start 0 int yy did buffer switch on eof char yytext yyconst short int yy accept 21 yyconst int yy ec 256 yycons
17. YYERRCODE RPParser cc 39 yyerrok RPParser cc 39 YYERROR RPParser cc 39 yyerror RPParser cc 39 42 YYERROR VERBOSE RPParser cc 39 YYFAIL RPParser cc 39 YYFINAL RPParser cc 39 yyin RPScanner cc 55 58 YYINITDEPTH RPParser cc 39 YYLAST RPParser cc 39 yyleng RPScanner cc 55 58 yyless RPScanner cc 55 YYLEX RPParser cc 39 yylex RPParser cc 39 RPScanner cc 55 YYLLOC_DEFAULT RPParser cc 39 YYLSP_NEEDED RPParser cc 39 yylval RPParser cc 40 42 YYMAXDEPTH RPParser cc 40 YYMAXUTOK RPParser cc 40 yymore RPScanner cc 56 yynerrs RPParser cc 40 43 YYNNTS RPParser cc 40 YYNRULES RPParser cc 40 YYNSTATES RPParser cc 40 YYNTOKENS RPParser cc 40 yyout RPScanner cc 56 58 yypact RPParser cc 43 YYPACT_NINF RPParser cc 40 yyparse RPParser cc 40 42 yypgoto RPParser cc 43 YYPOPSTACK RPParser cc 40 YYPURE RPParser cc 40 yyrl RPParser cc 43 yyr2 RPParser cc 43 YYRECOVERING RPParser cc 40 yyrestart RPScanner cc 56 yysigned char RPParser cc 41 YYSIZE_T RPParser cc 40 YYSKELETON_NAME RPParser cc 40 yyss yyalloc 27 YYSTACK_ALLOC RPParser cc 40 YYSTACK_BYTES RPParser cc 40 YYSTACK FREE RPParser cc 40 YYSTACK GAP MAXIMUM INDEX Generated on Tue Jan 10 18 04 41 2006 for Service by Doxygen INDEX RPParser cc 40 YYSTACK_RELOCATE RPParser cc 40 YYSTATE RPScanner cc 56 yystos RPParser cc 43 YYSTYPE 28 RPParser cc 41 RPParser hh 47
18. amp i int n computes i modulo n and returns a positive number 5 1 2 14 Co nDividable Co n Co m int k computes how many numbers between n and m are dividable by k 5 1 2 15 Rt NullFct const Co amp coordinate is a constant function which returns 0 5 1 2 16 template lt class I gt string parseItem const string amp strng I amp data string amp rest parses the complete string into data by using the gt gt operator If a parsing error occurs an error string is returned and the rest of the string which could not be parsed is bound to Test 5 1 2 17 template lt class I string parseltems const string amp strng vector lt I gt amp vect const string amp separator parses strings of items separated by separator into a vector of items It is usable for every datatype with gt gt operator Returns an error string if not everything could be parsed properly Generated on Tue Jan 10 18 04 41 2006 for Service by Doxygen 14 Service Namespace Documentation 5 1 2 18 template lt class I gt string parseItemVector const vector lt string gt amp strng vector lt I gt amp vect parses strings of items into a vector It is usable for every datatype with gt gt operator Returns an error string if not everything could be parsed properly 5 1 2 19 template lt class I gt string parseNestedItems const string amp strng vector lt vector lt I gt gt amp pDat
19. integer type for fuzzy values in FuTI e typedef float FLT can be changed to double e typedef long long int Co coordinates of partitions in PartLib e typedef long long int Rt reference time in PartLib and FuTI 7 3 1 Define Documentation 7 3 1 1 define fFTOP 1000 0 This is the top fuzzy integer value as float 7 3 1 2 z define FTOP 1000 This is the top fuzzy integer value Generated on Tue Jan 10 18 04 41 2006 for Service by Doxygen 31 Service File Documentation 7 3 1 3 j define negINFINITY 9223372036854775800LL largest negative number 7 3 1 4 define ONE 1LL 1 7 3 1 5 j define posINFINITY 9223372036854775807LL largest positive number 7 3 1 6 define ZERO OLL 0 7 3 2 Typedef Documentation 7 3 2 1 typedef long long int Co coordinates of partitions in PartLib 7 3 2 2 typedef float FLT can be changed to double 7 3 2 3 typedef short int Fuzzy integer type for fuzzy values in FuTI 7 3 2 4 typedef long long int Rt reference time in PartLib and FuTI Generated on Tue Jan 10 18 04 41 2006 for Service by Doxygen 7 4 CTTNException cpp File Reference 7 4 CTTNException cpp File Reference include CTTNException h Functions e ostream amp operator lt lt ostream amp s const CTTNException amp e 7 4 1 Function Documentation 7 4 1 1 ostream amp operator lt lt ostream amp s const CT TNException amp e Generated on Tue Jan 10 18 04 41 2006 for Service by Doxygen
20. nuum a 46 RP Parser Testi eppo lt io ber a AA ear are ee UA SEES g 48 RPScanne ricc 125 x 4 3 x a eee eR eee ee aa ES Kisa 49 SGEVer CDD 424 5 4 4 2 eR A Wo p ede RUE A B UE e ud 59 Seryice CDD ud suem 4 Roe 7777 60 Serviceihi viivan n alee Noa d iai 7 61 Servicelest CDp lt STS an ava ssa EAE BO ee e EE ENS eve 62 Socket CDp Llao AROA RAS areenan E aut tu et et 63 SOcketili rart 9 ASA agus A RR er tee ee a Eo K ko Th wo att 64 Service File Index Generated on Tue Jan 10 18 04 41 2006 for Service by Doxygen Chapter 5 Service Namespace Documentation 5 1 Service Namespace Reference is the top class for server and client sockets Compounds e class ClientSocket ClientSocket specializes the Socket class to work as client e class ServerSocket ServerSocket specializes the Socket class to work as server e class Socket Functions e string expandRepetitionPattern string compressed vector lt string gt amp result const string amp separator expands a repetition pattern into a vector of strings string amp eraseWhitespace string amp s erases all blanks n and Nr from the string string amp eraseLeading Whitespace string amp s erases leading blanks n and r from the string string amp eraseMultipleWhitespace string amp s replaces multiple blanks n and Nr by single blanks string amp eraseLineFollowings string amp s replaces all n by
21. start 28 value 28 yystype RPParser cc 41 RPParser hh 47 YYSTYPE 18 DECLARED RPParser cc 41 RPParser hh 47 YYSTYPE IS TRIVIAL RPParser cc 41 RPParser hh 47 yytable RPParser cc 43 YYTABLE_NINF RPParser cc 41 yyterminate RPScanner cc 56 YY TERROR RPParser cc 41 yytext RPScanner cc 56 58 yytext ptr RPScanner cc 56 yytokentype RPParser cc 41 RPParser hh 47 YYTRANSLATE RPParser cc 41 yytranslate RPParser cc 44 YYUNDEFTOK RPParser cc 41 yyvaluep RPParser cc 44 yyvs yyalloc 27 yywrap RPScanner cc 56 ZERO Constants h 32 Generated on Tue Jan 10 18 04 41 2006 for Service by Doxygen 73
22. topseparator const string amp bottomseparator parses nested strings of items separated by a top separator and a bottom separator e template lt class I gt vector lt FLT gt vectorDifference const vector I gt amp a const vector lt I gt amp b bool clean false computes the componentwise difference between the two vectors e int toInt const Co amp i converts i into an int e float toFloat const Rt amp x converts x into a float e FLT toFLT const Co amp x converts x into a FLT e Rt toRt float i converts i to a Rt 5 1 1 Detailed Description is the top class for server and client sockets Generated on Tue Jan 10 18 04 41 2006 for Service by Doxygen 12 Service Namespace Documentation 5 1 2 Function Documentation 5 1 2 1 string amp eraseLeading Whitespace string amp s erases leading blanks n and Yr from the string 5 1 2 2 string amp eraseLinefeeds string amp s replaces all n by a blank 5 1 2 3 string amp eraseLineFollowings string amp s replaces all n by a blank 5 1 2 4 string amp eraseMultipleWhitespace string amp s replaces multiple blanks n and r by single blanks 5 1 2 5 string amp eraseVVhitespace string amp s erases all blanks n and r from the string 5 1 2 6 string expandRepetitionPattern string compressed vector lt string gt amp result const string amp separator expands a repetition pattern
23. 1 7 6 2 2 typedef short yysigned_char typedef union YYSTYPE YYSTYPE 7 6 3 Enumeration Type Documentation 7 6 3 1 enum yytokentype Enumeration values TOKEN KOMMA TIMES OPENPARENTHESIS CLOSEPARENTHESIS ERROR Generated on Tue Jan 10 18 04 41 2006 for Service by Doxygen 41 42 Service File Documentation 7 6 4 Function Documentation 7 6 4 1 void RP_append int from int to 7 6 4 2 void RP ClearBuffer 7 6 4 3 int RP lex void 7 6 4 4 void RP Scan const char st 7 6 4 5 void yydestruct yytype yyvaluep static 7 6 4 6 int yyerror char s 7 6 4 7 int yyparse 7 6 5 Variable Documentation 7 6 5 1 string RP Error 7 6 5 2 vector lt string gt RP Strings 7 6 5 3 int yychar 7 6 5 4 const unsigned char yycheckll static Initial value 7 6 5 5 const unsigned char yydefact static Initial value 7 6 5 6 const yysigned char yydefgoto static Initial value Generated on Tue Jan 10 18 04 41 2006 for Service by Doxygen 7 6 RPParser cc File Reference 7 6 5 7 YYSTYPE yylval 7 6 5 8 int yynerrs 7 6 5 9 const yysigned char yypact static Initial value 8 2 7 10 8 7 1 7 3 8 T 3 6 7 7 6 5 10 const yysigned char yypgotoll static Initial value 7 6 5 11 const unsigned char yyr1 static Initial value 7 6 5 12 const unsigned char yyr2 static Initial value 7 6 5 13 const unsigned char yystos s
24. 3 Generated on Tue Jan 10 18 04 41 2006 for Service by Doxygen 35 36 Service File Documentation define Y YTRANSLATE YYX unsigned int Y YX lt YYMAXUTOK yytrans late YYX YYUNDEFTOK define YYPACT_NINE 7 define YYTABLE NINF 1 f define Y YSIZE_T unsigned int J define yyerrok yyerrstatus 0 define yyclearin yychar YYEMPTY define YYEMPTY 2 define YYEOF 0 f define YYACCEPT goto yyacceptlab f define YYABORT goto yyabortlab 4 define YYERROR goto yyerrlabl f define YYFAIL goto yyerrlab define YYRECOVERING lyyerrstatus define YYBACKUP Token Value define YYTERROR 1 define YYERRCODE 256 define YYLLOC DEFAULT Current Rhs N define YYLEX yylex define Y YDPRINTE Args define YYDSYMPRINT Args define YYDSYMPRINTF Title Token Value Location define Y Y_STACK_PRINT Bottom Top define YY REDUCE PRINT Rule define YYINITDEPTH 200 define YYMAXDEPTH 10000 define YYPOPSTACK yyvsp yyssp Typedefs typedef YYSTYPE YYSTYPE typedef short yysigned char Enumerations enum yytokentype TOKEN 258 KOMMA 259 TIMES 260 OPENPARENTHESIS 261 CLOSEPARENTHESIS 262 ERROR 263 Functions int RP_lex void void RP Scan const char xst void RP ClearBuffer void RP append int from int to int yyerror char ss void yydestruct yytype yyvaluep int yytype int yyparse Generated on Tue Jan 10 18 04 41 2006 for Service by Doxygen 7 6 RPParser cc
25. 3 1 Service Class Documentation Constructor amp Destructor Documentation CTTNException CTTNException inline CTTNException CT TNException bool systemError const string amp module const string amp file const string amp method const string amp message const string amp hint inline Friends And Related Function Documentation ostream z operator lt lt ostream amp s const CTTNException amp e friend Member Data Documentation string CTTNException file the file where the exception occurred 6 2 3 2 string CTTNException message an explanation 6 2 3 3 string CTTNException method the method where the exception occurred 6 2 3 4 string CTTNException module the module where the exception occurred 6 2 3 5 string CTTNException recommendation a recommendation for the user 6 2 3 6 bool CTTNException systemError a flag indicating whether the error is a system error The documentation for this class was generated from the following file e CTTNException h Generated on Tue Jan 10 18 04 41 2006 for Service by Doxygen 6 3 Service ServerSocket Class Reference 6 3 Service ServerSocket Class Reference ServerSocket specializes the Socket class to work as server include lt Socket h gt Inheritance diagram for Service ServerSocket Service Socket Service ServerSocket Public Member Functions e ServerSocket int port creates a socket binds i
26. INUE SCAN 0 e define EOB ACT END OF FILE 1 e define EOB ACT LAST MATCH 2 e define yyless n e define unput c yyunput c yytext_ptr Generated on Tue Jan 10 18 04 41 2006 for Service by Doxygen 49 50 Service File Documentation define YY BUFFER NEW 0 define YY BUFFER NORMAL 1 define YY BUFFER EOF PENDING 2 jr define YY CURRENT BUFFER yy current buffer define YY FLUSH BUFFER yy flush buffer yy current buffer define yy new buffer yy create buffer define yy set interactive is interactive define yy set bol at bol j define YY AT BOL yy current buffer yy at bol define yywrap 1 f define YY SKIP YYWRAP J define yytext ptr yytext f define YY DO BEFORE ACTION define YY NUM RULES 9 define YY END OF BUFFER 10 define REJECT reject used but not detected j define yymore yymore used but not detected define YY MORE ADJ 0 define YY RESTORE YY MORE OFFSET define INITIAL define YY NO PUSH STATE 1 define YY NO POP STATE 1 define YY NO TOP STATE 1 f define YY READ BUF SIZE 8192 define ECHO void fwrite yytext yyleng 1 yyout define YY INPUT buf result max size J define yyterminate return YY NULL define YY START STACK INCR 25 define YY FATAL ERROR msg yy fatal error msg J define YY DECL int yylex YY PROTO void define YY BREAK break define YY RULE SETUP YY USER ACTION J define YY EXIT FAILURE 2 J define yyless n Typedefs typedef yy buffer state x YY BUFFER
27. Service Reference Manual 1 0 Generated by Doxygen 1 3 2 Tue Jan 10 18 04 41 2006 Contents 1 Service Namespace Index 1 1 Service Namespace List 2 Service Hierarchical Index 2 1 Service Class Hierarchy A RAS v o vq e 3 Service Compound Index 3 1 Service Compound List 1 4 4 4 monen soyu add tmn R wee m 4i 4 Service File Index Service File List do saad Rok ald A x a a E deque ee M 5 Service Namespace Documentation 5 1 Service Namespace Reference 5 2 std Namespace Reference 6 Service Class Documentation 6 1 Service ClientSocket Class Reference 6 2 CTTNException Class Reference 6 3 Service ServerSocket Class Reference 6 4 Service Socket Class Reference eee ee ee 6 5 yy buffer state Struct Reference 6 6 yyalloc Union Reference 6 7 YYSTYPE Union Referennce 7 Service File Documentation 71 client cpp File Reference 7 2 Constants cpp File Reference 7 3 Constants h File Reference ee 7 4 CTTNException cpp File Reference 16 17 17 19 21 23 26 27 28 i
28. The documentation for this class was generated from the following files e Socket h e Socket cpp Generated on Tue Jan 10 18 04 41 2006 for Service by Doxygen 6 4 Service Socket Class Reference 6 4 Service Socket Class Reference include lt Socket h gt Inheritance diagram for Service Socket Service Socket Service ClientSocket Service ServerSocket Public Member Functions e Socket creates a socket but does not initialise it e virtual Socket e bool create creates a socket e bool bind const int port binds the socket to a given port e bool listen const activates the socket for listening to incoming connections e bool accept Socket amp s const accepts a connection and binds to s e bool connect const std string host const int port connects the client socket to a host and a port e bool send const std string const sends a string to the socket e int recv std string amp const reads a string from the socket and binds it to s e void set_non_blocking const bool b sets the blocking status e bool is_valid const returns true if the socket is operational Private Attributes e int m_sock e sockaddr in m addr Generated on Tue Jan 10 18 04 41 2006 for Service by Doxygen 23 24 Service Class Documentation 6 4 1 Constructor amp Destructor Documentation 6 4 1 1 Service Socket Socket creates a socket but does not initialis
29. a blank 10 Service Namespace Documentation string eraseLinefeeds string 4s replaces all Nn by a blank string amp stripComment string s const string amp cmt erases all characters after cmt string amp stripComments string amp s const string amp cmt erases in each line all characters after the cmt character int linebreaks const string amp s returns the number of linebreaks in the string string int ToString int i int length converts the integer to a string and fills the head with blanks such that the string is length characters long string withLineNumbers string s inserts line numbers into the string for listing code vector lt string gt split const string amp separator string s bool erasewithespace splits the string into substrings separated by separator and erases all whitespaces if asked string readFile const string amp file const string amp cmt reads the contents of the file and returns it as a string Co nDividable Co n Co m int k computes how many numbers between n and m are dividable by k Rt NullFct const Co amp coordinate is a constant function which returns 0 int moduloPos const Co amp i int n computes i modulo n and returns a positive number void remainder const Co amp coordinate int divisor Co amp blocks int amp rest computes c divisor blocks x divisor rest void remainder const Co amp coordi
30. ar N yy cp A N yy c buf p yy_cp Generated on Tue Jan 10 18 04 41 2006 for Service by Doxygen 7 10 RPScanner cc File Reference 7 10 1 21 define YY END OF BUFFER 10 7 10 1 22 j define YY END OF BUFFER CHAR 7 10 1 23 fdefine YY EXIT FAILURE 2 7 10 1 24 define YY FATAL ERROR msg yy fatal error msg 7 10 1 25 define yy flex debug RP flex debug 7 10 1 26 fdefine YY FLEX MAJOR VERSION 2 7 10 1 27 define YY FLEX MINOR VERSION 5 7 10 1 28 j define YY FLUSH BUFFER yy flush buffer yy current buffer 7 10 1 29 define yy flush buffer RP flush buffer 7 10 1 30 define yy init buffer RP init buffer 7 10 1 31 define YY INPUT buf result max size Value if yy current buffer gt yy is interactive N TN int c n N for n 0 n lt max size amp amp c getc yyin EOF amp amp c n n N buf n char c if c xn N buf n char c N if c EOF amp amp ferror yyin N YY FATAL ERROR input in flex scanner failed N result n JA else if result fread buf 1 max size yyin 0 amp amp ferror yyin N YY FATAL ERROR input in flex scanner failed Generated on Tue Jan 10 18 04 41 2006 for Service by Doxygen 53 54 7 10 1 32 7 10 1 33 7 10 1 34 7 10 1 35 7 10 1 36 7 10 1 37 7 10 1 38 7 10 1 39 7 10 1 40 7 10 1 41 7 10 1 42 7 10 1 43 7 10 1 44 7 10 1 45
31. ce 13 INDEX nDividable Service 13 negINFINITY Constants h 31 nTest RPParserTest cpp 48 ServiceTest cpp 62 NullF ct Service 13 ONE Constants h 32 OPENPARENTHESIS RPParser cc 37 41 RPParser hh 47 operator lt lt CTTNException 20 CTTNException cpp 33 Service ClientSocket 18 Service ServerSocket 22 std 16 operator gt gt Service ClientSocket 18 Service ServerSocket 22 parseltem Service 13 parseltems Service 13 parseltemVector Service 13 parseNestedItems Service 14 PORT server cpp 59 posINFINITY Constants h 32 readFile Service 14 readUrl Service ClientSocket 18 recommendation CTTNFxception 20 recv Service Socket 24 REJECT RPScanner cc 52 remainder Service 14 roundX Service 14 round Y Service 14 Generated on Tue Jan 10 18 04 41 2006 for Service by Doxygen INDEX RP_append RPParser cc 42 RP_Clear Buffer RPParser cc 42 RP_Error RPParser cc 42 RP lex RPParser cc 42 RP val RPParser hh 47 RP Scan RPParser cc 42 RP Strings RPParser cc 42 RPParser cc 35 CLOSEPARENTHESIS 37 41 ERROR 37 41 KOMMA 37 41 OPENPARENTHESIS 37 41 RP append 42 RP ClearBuffer 42 RP Error 42 RP lex 42 RP Scan 42 RP Strings 42 TIMES 37 41 TOKEN 37 41 YY REDUCE PRINT 37 YY STACK PRINT 37 YYABORT 37 YYACCEPT 37 YYBACKUP 37 YYBISON 38 yychar 38 42 yycheck 42 yyclearin 38 YYCOPY 38 YYDEBUG 38 yydebug 39 yydefact 42 yyd
32. e it 6 4 1 2 Service Socket Socket virtual 6 4 2 Member Function Documentation 6 4 2 1 bool Service Socket accept Socket amp s const accepts a connection and binds to s Returns true if it succeeded 6 4 2 2 bool Service Socket bind const int port binds the socket to a given port Returns true if the binding was successful 6 4 2 3 bool Service Socket connect const std string host const int port connects the client socket to a host and a port Returns true if it succeeded 6 4 2 4 bool Service Socket create creates a socket Returns true if creation was successful 6 4 2 5 bool Service Socket is valid const inline returns true if the socket is operational 6 4 2 6 bool Service Socket listen const activates the socket for listening to incoming connections Returns true if the socket is now listening Generated on Tue Jan 10 18 04 41 2006 for Service by Doxygen 6 4 Service Socket Class Reference 6 4 2 7 int Service Socket recv std string amp const reads a string from the socket and binds it to s Returns a status value e 1 read error e 0 nothing read e 1 string read 6 4 2 8 bool Service Socket send const std string const sends a string to the socket Returns true if it succeeded 6 4 2 9 void Service Socket set_non_blocking const bool b sets the blocking status b true non blocking b false blocking 6 4 3 Membe
33. efgoto 42 yydestruct 42 YYDPRINTP 39 YYDSYMPRINT 39 YYDSYMPRINTF 39 YYEMPTY 39 YYEOF 39 YYERRCODE 39 yyerrok 39 YYERROR 39 yyerror 39 42 YYERROR_VERBOSE 39 YYFAIL 39 YYFINAL 39 67 YYINITDEPTH 39 YYLAST 39 YYLLOC_DEFAULT 39 YYLSP_NEEDED 39 yylval 40 42 YYMAXDEPTH 40 YYMAXUTOK 40 ynerrs 40 43 NNTS 40 NRULES 40 NSTATES 40 NTOKENS 40 yypact 43 YYPACT_NINE 40 yyparse 40 42 yypgoto 43 YYPOPSTACK 40 YYPURE 40 yyrl 43 yyr2 43 YYRECOVERING 40 yysigned_char 41 YYSIZE T 40 YYSKELETON NAME 40 YYSTACK ALLOC 40 YYSTACK BYTES 40 YYSTACK FREE 40 YYSTACK GAP MAXIMUM 40 YYSTACK RELOCATE 40 yystos 43 YYSTYPE 41 yystype 41 YYSTYPE_IS_DECLARED 41 YYSTYPEIS TRIVIAL 41 yytable 43 YYTABLE NINF 41 YYTERROR 41 yytokentype 41 YYTRANSLATE 41 yytranslate 44 YYUNDEFTOK 41 yyvaluep 44 sd YY YY YY YY RPParser h 45 RPParser hh 46 CLOSEPARENTHESIS 47 ERROR 47 KOMMA 47 OPENPARENTHESIS 47 RP lval 47 TIMES 47 TOKEN 47 YYSTYPE 47 Generated on Tue Jan 10 18 04 41 2006 for Service by Doxygen 68 yystype 47 YYSTYPEIS_DECLARED 47 YYSTYPEIS TRIVIAL 47 yytokentype 47 RPParserTest cpp 48 RPParserTest cpp main 48 nTest 48 test 48 testE 48 RPScanner cc 49 BEGIN 52 BUFFER 56 ECHO 52 EOB ACT CONTINUE SCAN 52 EOB ACT END OF FILE 52 EOB ACT LAST MATCH 52 file 56 FLEX SCANNER 52 INITIAL 52 len
34. entation J define YYLSP NEEDED J define yylval RP lval define YYMAXDEPTH 10000 define YYMAXUTOK 263 j define yynerrs RP nerrs fdefine YYNNTS 4 define YYNRULES 10 7 define YYNSTATES 17 fdefine YYNTOKENS 9 fdefine YYPACT NINF 7 define yyparse RP_parse j define YYPOPSTACK yyvsp yyssp fdefine YYPURE j define YYRECOVERING yyerrstatus j define Y YSIZE_T unsigned int define YYSKELETON NAME yacc c j define YYSTACK ALLOC malloc J define YYSTACK BYTES N N sizeof short sizeof YYSTYPE YYSTACK_GAP_MAXIMUM 7 6 1 53 7 6 1 54 7 6 1 55 Value YYSIZE_T yynewbytes YYCOPY amp yyptr gt Stack Stack yysize j define YYSTACK FREE free j define YYSTACK GAP MAXIMUM sizeof union yyalloc 1 j define YYSTACK RELOCATE Stack m Generated on Tue Jan 10 18 04 41 2006 for Service by Doxygen 7 6 RPParser cc File Reference Stack amp yyptr gt Stack yynewbytes yystacksize sizeof Stack YYSTACK_GAP_MAXIMUM yyptr yynewbytes sizeof yyptr while 0 7 6 1 56 7 6 1 57 7 6 1 58 7 6 1 59 7 6 1 60 7 6 1 61 7 6 1 62 j define yystype YYSTYPE tdefine YYSTYPE IS DECLARED 1 j define YYSTYPE IS TRIVIAL 1 fdefine YYTABLE NINF 1 J define YYTERROR 1 define YYTRANSLATE YYX unsigned int YYX lt YYMAXUTOK yytranslate Y YX YYUNDEFTOK tdefine YYUNDEFTOK 2 7 6 2 Typedef Documentation 7 6 2
35. es const string amp topseparator const string amp bottomseparator parses nested strings of items separated by a top separator and a bottom separator The function splits the string at the topseparator and calls parseVector for the split parts The results are collected in a vector It is usable for every datatype with gt gt operator The function returns an error string if not everything could be parsed properly 5 1 2 20 string readFile const string amp file const string amp cmt reads the contents of the file and returns it as a string Comments starting with cmt in a line are deleted Lines ending with are concatenated 5 1 2 21 void remainder const Co amp coordinate FLT divisor Co amp blocks FLT amp rest computes c divisor blocks divisor rest 5 1 2 22 void remainder const Co amp coordinate int divisor Co amp blocks int amp rest computes c divisor blocks divisor rest 5 1 2 23 Rt roundX float x rounds x to a Rt value 5 1 2 24 Fuzzy roundY float x rounds y to a Fuzzy value 5 1 2 25 vector lt string gt split const string amp separator string s bool erasewithespace splits the string into substrings separated by separator and erases all whitespaces if asked Generated on Tue Jan 10 18 04 41 2006 for Service by Doxygen 5 1 Service Namespace Reference 5 1 2 26 string amp stripComment string amp s const s
36. ference ClientSocket specializes the Socket class to work as client include lt Socket h gt Inheritance diagram for Service ClientSocket Service Socket Service ClientSocket Public Member Functions e ClientSocket std string host int port creates a client socket for the given host and port e virtual ClientSocket e const ClientSocket amp operator lt lt const std string amp const writes a string to the socket e const ClientSocket amp operator gt gt std string amp const reads a string from the socket Static Public Member Functions e string read Url const string amp url const string amp cmt reads a file from the given url and strips comments after cmt string 18 Service Class Documentation 6 1 1 Detailed Description ClientSocket specializes the Socket class to work as client 6 1 2 Constructor amp Destructor Documentation 6 1 2 1 Service ClientSocket ClientSocket std string host int port creates a client socket for the given host and port Exceptions if this fails 6 1 2 2 virtual Service ClientSocket ClientSocket inline virtual 6 1 3 Member Function Documentation 6 1 3 1 const ClientSocket amp Service ClientSocket operator lt lt const std string amp const writes a string to the socket Exceptions if the write operation fails 6 1 3 2 const ClientSocket amp Service ClientSocket operator gt gt std string amp const
37. gister YYSIZE_T yyi for yyi 0 yyi lt Count yyitt N To yyi From yyil while 0 Generated on Tue Jan 10 18 04 41 2006 for Service by Doxygen 7 6 RPParser cc File Reference 7 6 1 16 7 6 1 17 7 6 1 18 7 6 1 19 7 6 1 20 7 6 1 21 7 6 1 22 7 6 1 23 7 6 1 24 7 6 1 25 7 6 1 26 7 6 1 27 7 6 1 28 7 6 1 29 7 6 1 30 7 6 1 31 7 6 1 32 7 6 1 33 7 6 1 34 Value J define YYDEBUG j define yydebug RP debug define YYDPRINTE Args j define YYDSYMPRINT Args j define YYDSYMPRINTF Title Token Value Location j define YYEMPTY 2 j define YYEOF J define YYERRCODE 256 define yyerrok yyerrstatus 0 define YYERROR goto yyerrlabl j define yyerror RP error jj define YYERROR VERBOSE 0 j define YYFAIL goto yyerrlab J define YYFINAL 8 J define YYINITDEPTH 200 J define YYLAST 12 define YYLEX yylex J define yylex RP lex define YYLLOC DEFAULT Current Rhs N Current first line Rhs 1 first line Current first column Rhs 1 first column Current last_line Rhs N last line Current last column Rhs N last column Generated on Tue Jan 10 18 04 41 2006 for Service by Doxygen 39 40 7 6 1 35 7 6 1 36 7 6 1 37 7 6 1 38 7 6 1 39 7 6 1 40 7 6 1 41 7 6 1 42 7 6 1 43 7 6 1 44 7 6 1 45 7 6 1 46 7 6 1 47 7 6 1 48 7 6 1 49 7 6 1 50 7 6 1 51 7 6 1 52 Value Service File Docum
38. i 7 5 7 6 7 7 7 8 7 9 7 10 7 11 1 12 7 13 7 14 7 15 7 16 CONTENTS CTTNException h File Reference 34 RPParser cc File Reference 35 RPParser h File Reference 45 RPParser hh File Reference x x saa ssa a lal EYa wee RE xe 46 RPParserTest cpp File Reference va 48 RPScanner cc File Reference 49 server cpp File Reference 59 Service cpp File Reference 60 Service h File Relerencevs xn 2 3 d ats e UR Sa 61 ServiceTest cpp File Reference e 62 Socket cpp File Reference 63 Socket h File Reference 64 Generated on Tue Jan 10 18 04 41 2006 for Service by Doxygen Chapter 1 Service Namespace Index 1 1 Service Namespace List Here is a list of all namespaces with brief descriptions Service Is the top class for server and client sockets 9 Std sados 77 55 16 Service Namespace Index Generated on Tue Jan 10 18 04 41 2006 for Service by Doxygen Chapter 2 Service Hierarchical Index 2 1 Service Class Hierarchy This inheritance list is sorted roughly but not completely alphabetically CGTTNException s 3 4 ss A AL 19 Servicen SOckeln s m retas tt amp 5 5 ka l l o BES k ewe ee 23 Service ClientSocket
39. lude include include include lt string h gt lt errno h gt lt fcntl h gt lt iostream gt lt netdb h gt Socket h CTTNException h Namespaces e namespace Service Generated on Tue Jan 10 18 04 41 2006 for Service by Doxygen 63 64 Service File Documentation 7 16 Socket h File Reference include lt sys types h gt include lt sys socket h gt include lt netinet in h gt include lt netdb h gt include lt unistd h gt include lt string gt include lt arpa inet h gt include Service h Namespaces e namespace Service Variables e const int MAXHOSTNAME 200 e const int MAXCONNECTIONS 5 e const int MAXRECV 500 7 16 1 Variable Documentation 7 16 1 1 const int MAXCONNECTIONS 5 7 16 1 2 const int MAXHOSTNAME 200 7 16 1 3 const int MAXRECV 500 Generated on Tue Jan 10 18 04 41 2006 for Service by Doxygen Index ClientSocket Service ClientSocket 18 ServerSocket Service ServerSocket 22 Socket Service Socket 24 accept Service ServerSocket 22 Service Socket 24 BEGIN RPScanner cc 52 bind Service Socket 24 BUFFER RPScanner cc 56 client cpp 29 main 29 ClientSocket Service ClientSocket 18 CLOSEPARENTHESIS RPParser cc 37 41 RPParser hh 47 Co Constants h 32 connect Service Socket 24 Constants cpp 30 Constants h 31 Co 32 fFTOP 31 FLT 32 FTOP 31 Fuzzy 32 negINFINITY 31 ONE 32 posINFINITY 32 Rt
40. nate FLT divisor Co amp blocks FLT amp rest computes c divisor blocks x divisor rest Rt roundX float x rounds x to a Rt value Fuzzy roundY float x rounds y to a Fuzzy value bool isPosInfinity const Rt amp x A check for positive infinity Generated on Tue Jan 10 18 04 41 2006 for Service by Doxygen 5 1 Service Namespace Reference 11 bool isNegInfinity const Rt amp x A check for negative infinity e bool isInfinity const Rt amp x A check for either positive or negative infinity e template lt class I gt string xToString const I amp i converts i into a string e template lt class I gt string join const string amp separator const vector lt I gt items joins all items into a separator separated string e template lt class I gt string parseItem const string amp strng I amp data string amp rest parses the complete string into data by using the gt gt operator e template lt class I gt string parseltemVector const vector lt string gt amp strng vector lt I gt amp vect parses strings of items into a vector e template lt class I gt string parseItems const string amp strng vector lt I gt amp vect const string amp separator parses strings of items separated by separator into a vector of items e template lt class I gt string parseNestedItems const string amp strng vector vector lt I gt gt amp pDates const string amp
41. nner cc 54 YY NO PUSH STATE RPScanner cc 54 YY NO TOP STATE RPScanner cc 54 YY NULL RPScanner cc 54 YY NUM RULES RPScanner cc 54 yy nxt RPScanner cc 58 YY_PROTO RPScanner cc 54 56 YY_READ_BUF_SIZE RPScanner cc 54 YY REDUCE PRINT RPParser cc 37 YY RESTORE YY MORE OFFSET RPScanner cc 54 YY RULE SETUP RPScanner cc 54 YY SC TO UI RPScanner cc 54 yy scan_buffer RPScanner cc 54 yy scan_bytes RPScanner cc 54 yy scan string RPScanner cc 54 yy set bol RPScanner cc 54 yy set interactive RPScanner cc 54 yy size_t RPScanner cc 56 YY_SKIP_YYWRAP RPScanner cc 54 YY_STACK_PRINT RPParser cc 37 YY_START RPScanner cc 55 yy start RPScanner cc 58 YY START STACK INCR RPScanner cc 55 YY STATE EOF RPScanner cc 55 yy state type RPScanner cc 56 yy switch to buffer RPScanner cc 55 YYABORT RPParser cc 37 YYACCEPT RPParser cc 37 yyalloc 27 yyss 27 yyvs 27 YYBACKUP RPParser cc 37 YYBISON RPParser cc 38 yychar RPParser cc 38 42 yycheck RPParser cc 42 yyclearin RPParser cc 38 yyconst RPScanner cc 55 YYCOPY RPParser cc 38 Generated on Tue Jan 10 18 04 41 2006 for Service by Doxygen 71 72 YYDEBUG RPParser cc 38 yydebug RPParser cc 39 yydefact RPParser cc 42 yydefgoto RPParser cc 42 yydestruct RPParser cc 42 YYDPRINTE RPParser cc 39 YYDSYMPRINT RPParser cc 39 YYDSYMPRINTF RPParser cc 39 YYEMPTY RPParser cc 39 YYEOF RPParser cc 39
42. oid testE string testname Generated on Tue Jan 10 18 04 41 2006 for Service by Doxygen 7 10 RPScanner cc File Reference 7 10 RPScanner cc File Reference include lt stdio h gt include lt iostream gt include RPParser hh include lt string gt Compounds e struct yy buffer state Defines e define yy create buffer RP create buffer e 7 define yy delete buffer RP delete buffer e define yy scan buffer scan buffer 7 define yy scan string scan string e define yy scan bytes RP scan bytes e 7 define yy flex debug RP flex debug e 7 define yy init buffer RP init buffer define yy flush buffer flush buffer e define yy load buffer state RP load buffer state e 7 define yy switch to buffer switch to buffer e 7 define yyin RP in 7 define yyleng leng 7 define yylex RP lex 7 define yyout RP out e 7 define yyrestart RP restart o define yytext RP text e define FLEX SCANNER define YY FLEX MAJOR VERSION 2 define YY FLEX MINOR VERSION 5 e define yyconst define YY_PROTO proto e define Y Y NULL 0 e define YY SC TO UI c unsigned int unsigned char c e define BEGIN yy start 1 2 x e define YY START yy start 1 2 e define YYSTATE YY START e define YY STATE EOFf state YY END OF BUFFER state 1 e define YY NEW FILE yyrestart yyin e define YY END OF BUFFER CHAR 0 e define YY BUF SIZE 16384 e define EOB ACT CONT
43. r Data Documentation 6 4 3 1 sockaddr in Service Socket m_addr private 6 4 3 2 int Service Socket m sock private The documentation for this class was generated from the following files e Socket h e Socket cpp Generated on Tue Jan 10 18 04 41 2006 for Service by Doxygen 25 26 Service Class Documentation 6 5 yy buffer state Struct Reference Public Attributes FILE yy input file char x yy ch buf char x yy buf pos yy size t yy buf size int yy_n_chars int yy is our buffer int yy is interactive int yy at bol int yy fill buffer int yy buffer status 6 5 1 Member Data Documentation 6 5 1 1 int yy buffer state yy at bol 6 5 1 2 char yy buffer state yy buf pos 6 5 1 3 yy size t yy buffer state yy buf size 6 5 1 4 int yy buffer state yy buffer status 6 5 1 5 charx yy buffer state yy ch buf 6 5 1 6 int yy buffer state yy fill buffer 6 5 1 7 FILE yy buffer state yy input file 6 5 1 8 int yy buffer state yy is interactive 6 5 1 9 int yy buffer state yy is our buffer 6 5 1 10 int yy buffer state yy n chars The documentation for this struct was generated from the following file e RPScanner cc Generated on Tue Jan 10 18 04 41 2006 for Service by Doxygen 6 6 yyalloc Union Reference 6 6 yyalloc Union Reference Public Attributes e short yyss e YYSTYPE yyvs 6 6 1 Member Data Documentation 6 6 1 1 short yyalloc yyss 6 6 1 2 YYSTYPE yyalloc yyvs The documentation for this union was gene
44. r YY PROTO yyconst char msg static yy state type yy try NUL trans YY PROTO yy state type current state static void yy flex free YY PROTO void static voidx yy flex realloc YY PROTO void yy size t static void yy flex alloc YY PROTO yy size_t static YY BUFFER STATE yy scan bytes YY PROTO yyconst char bytes int len YY BUFFER STATE yy scan string YY PROTO yyconst char xyy str YY BUFFER STATE yy scan buffer YY PROTO char base yy size t size void yy buffer YY_PROTO YY_BUFFER STATE b FILE sfile void yy flush buffer YYPFROTO COE BORE HE SPANKS V Doxyeen YY BUFFER STATE yy create buffer YY PROTO FILE file int size int input YY_PROTO void 7 10 RPScanner cc File Reference 0 0 0 10 8 T5 7 8 8 3 4 1 8 5 7 0 0 5 6 2 0 7 10 4 6 yyconst short int yy_base 23 static Initial value 0 0 0 23 24 0 0 0 16 24 24 24 9 8 0 14 12 5 24 24 24 11 12 7 10 4 7 register chars yy_bp 7 10 4 8 charx yy_c_buf_p char x static 7 10 4 9 yyconst short int yy_chk 37 static Initial value 0 1 1 as i 1 1 i 1 1 1 1 1 21 21 22 22 17 16 15 13 12 8 3 20 20 20 20 20 20 20 20 20 20 20 20 20 7 10 4 10 YY BUFFER STATE yy current_buffer 0 static 7 10 4 11 yyconst short int yy def 23 static Initial value 0 20 1 20 20 21 21 22 20 20 20 20 20
45. rated from the following file e RPParser cc Generated on Tue Jan 10 18 04 41 2006 for Service by Doxygen 27 Service Class Documentation 6 7 YYSTYPE Union Reference include lt RPParser hh gt Public Attributes e void value e int start e void value 6 7 1 Member Data Documentation 6 7 1 1 int YYSTYPE start 6 7 1 2 voidx YYSTYPE value 6 7 1 3 voidx YYSTYPE value The documentation for this union was generated from the following files e RPParser cc e RPParser hh Generated on Tue Jan 10 18 04 41 2006 for Service by Doxygen Chapter 7 Service File Documentation 7 1 client cpp File Reference include Socket h tinclude lt iostream gt include lt string gt include CTTNException h Functions e int main int argc int argv 7 1 1 Function Documentation 7 1 1 1 int main int argc int argv 30 Service File Documentation 7 2 Constants cpp File Reference include Constants h Generated on Tue Jan 10 18 04 41 2006 for Service by Doxygen 7 3 Constants h File Reference 7 3 Constants h File Reference Defines e define FTOP 1000 This is the top fuzzy integer value o define 1000 0 This is the top fuzzy integer value as float define posINFINITY 9223372036854775807LL largest positive number e define negINFINITY 9223372036854775800LL largest negative number e define ZERO OLL 0 e define ONE ILL 1 Typedefs e typedef short int Fuzzy
46. reads a string from the socket Exceptions if the read operation fails 6 1 3 3 string Service ClientSocket readUrl const string amp url const string amp cmt static reads a file from the given url and strips comments after cmt string url is either a file name or a string starting with http Exceptions if the read operation fails The documentation for this class was generated from the following files e Socket h e Socket cpp Generated on Tue Jan 10 18 04 41 2006 for Service by Doxygen 6 2 CTTNException Class Reference 6 2 CTTNException Class Reference include lt CTTNException h gt Public Member Functions e CTTNException e CTTNException bool systemError const string amp module const string amp file const Lon string amp method const string amp message const string amp hint Public Attributes string module the module where the exception occurred e string file the file where the exception occurred e string method the method where the exception occurred e string message an explanation e string recommendation a recommendation for the user e bool systemError a flag indicating whether the error is a system error Friends e ostream amp operator lt lt ostream s const CTTN Exception amp e Generated on Tue Jan 10 18 04 41 2006 for Service by Doxygen 19 20 6 2 1 6 2 1 1 6 2 1 2 6 2 2 6 2 2 1 6 2 3 6 2
47. t int yy meta 13 yyconst short int yy base 23 yyconst short int yy def 23 yyconst short int yy_nxt 37 yyconst short int yy chk 37 yy state type yy last accepting state char x yy last accepting cpos YY BUFFER STATE BUFFER register char x yy bp int size FILE file int len Generated on Tue Jan 10 18 04 41 2006 for Service by Doxygen 52 Service File Documentation 7 10 1 Define Documentation 7 10 1 1 7 10 1 2 7 10 1 3 7 10 1 4 7 10 1 5 7 10 1 6 7 10 1 7 7 10 1 8 7 10 1 9 7 10 1 10 7 10 1 11 7 10 1 12 7 10 1 13 7 10 1 14 7 10 1 15 7 10 1 16 7 10 1 17 7 10 1 18 7 10 1 19 7 10 1 20 Value j define BEGIN yy start 1 2 define ECHO void fwrite yytext yyleng 1 yyout J define EOB CONTINUE SCAN define EOB ACT END OF FILE 1 define EOB ACT LAST MATCH 2 J define FLEX SCANNER J define INITIAL J define REJECT reject used but not detected define unput c yyunput c yytext_ptr j define YY AT BOL yy current buffer bol define YY BREAK break J define YY BUF SIZE 16384 J define YY BUFFER EOF PENDING 2 fdefine YY BUFFER NEW fdefine YY BUFFER NORMAL 1 j define yy create buffer RP create buffer define YY CURRENT BUFFER yy current buffer j define YY DECL int yylex YY PROTO void define yy delete buffer RP delete buffer j define YY DO BEFORE ACTION yytext ptr yy_bp yyleng int yy yy bp N yy hold ch
48. t to the port and sets it into listening state e ServerSocket e virtual ServerSocket e const ServerSocket amp operator lt lt const std string amp const writes a string to the socket e const ServerSocket amp operator gt gt std string amp const reads a string from the socket e void accept ServerSocket amp s accepts a connection from a client and binds it to s 6 3 1 Detailed Description ServerSocket specializes the Socket class to work as server 6 3 2 Constructor amp Destructor Documentation 6 3 2 1 Service ServerSocket ServerSocket int port creates a socket binds it to the port and sets it into listening state Exceptions if one of the operations fails Generated on Tue Jan 10 18 04 41 2006 for Service by Doxygen 21 22 Service Class Documentation 6 3 2 2 Service ServerSocket ServerSocket inline 6 3 2 3 Service ServerSocket ServerSocket virtual 6 3 3 Member Function Documentation 6 3 3 1 void Service ServerSocket accept ServerSocket amp s accepts a connection from a client and binds it to s 6 3 3 2 const ServerSocket amp Service ServerSocket operator lt lt const std string amp const writes a string to the socket Exceptions if the write operation fails 6 3 3 3 const ServerSocket amp Service ServerSocket operator gt gt std string amp const reads a string from the socket Exceptions if the read operation fails
49. tatic Initial value 0 3 8 10 12 4 5 8 0 4 11 3 6 10 10 10 7 Generated on Tue Jan 10 18 04 41 2006 for Service by Doxygen 43 Service File Documentation 44 static const unsigned char yytablell 7 6 5 14 Initial value 13 14 12 const unsigned char yytranslate static 7 6 5 15 Initial value CN NNNNNNNNNNNNNNNNNNNNNNN N S N NNNNNNNNNNNNNNNNNNNNNNN N MO N NNNNNNNNNNNNNNNNNNNNNNN N N N CN CN CN CN AN QN N CN CON CN CN N ANN QN ON QN ON ON QN QN N A CN CN CN CN CN CN CN N CON CN CN CN CN CN CN CN ON NN NN ON CQ QN N N N NNNNNNNNNNNNNNNNNNNNNNN N N NANN NN NN N NAN ANA N N AN N A NA N NAN N NANN NANANA Oo N NNNNNNNNNNNNNNNNNNNNNNNNN K NNN NN NN N N NANA N NAN AN N ANNAN NAN NNN N NA O ONNNNNNNNNNNNNNNNNNNNNNN NAQD 7 6 5 16 YYSTYPE x yyvaluep Generated on Tue Jan 10 18 04 41 2006 for Service by Doxygen 7 7 RPParser h File Reference 7 7 RPParser h File Reference Namespaces e namespace Service Generated on Tue Jan 10 18 04 41 2006 for Service by Doxygen 45 46 Service File Documentation 7 8 RPParser hh File Reference Compounds e union Y YSTYPE Defines define TOKEN 258 e define KOMMA 259 e define TIMES 260 e define OPENPARENTHESIS 261 e define CLOSEPARENTHESIS 262 e define ERROR 263 e define yystype YYSTYPE e define YYSTYPE IS DECLARED 1 e define YYSTYPE IS TRIVIAL 1 Typedefs e typedef YYSTYPE YYSTYPE
50. tring amp cmt erases all characters after cmt 5 1 2 27 string stripComments string amp s const string amp cmt erases in each line all characters after the cmt character 5 1 2 28 float toFloat const Rt amp x inline converts x into a float 5 1 2 29 FLT toFLT const Co amp x inline converts x into a FLT 5 1 2 30 int tolnt const Co amp i inline converts i into an int 5 1 2 31 Rt toRt float i inline converts i to a Rt 5 1 2 32 template lt class I gt vector lt FLT gt vectorDifference const vector lt I gt amp a const vector lt I gt amp b bool clean false computes the componentwise difference between the two vectors The items be of any class which supports the operator and which can be converted into a FLT The vectors can be of different size If clean true then trailing zeros are deleted 5 1 2 33 string withLineNumbers string s inserts line numbers into the string for listing code 5 1 2 34 template lt class I gt string xToString const I amp i converts i into a string Generated on Tue Jan 10 18 04 41 2006 for Service by Doxygen 15 Service Namespace Documentation 5 2 std Namespace Reference Functions template lt class I gt ostream amp operator lt lt ostream s const vector lt I gt amp vec a generic lt lt operator for vectors template lt class I gt ostream amp operator lt lt

Download Pdf Manuals

image

Related Search

Related Contents

Pulpofluorane  Neon Fixed Front Neon Swing Away  Samsung 2.0Ch Mini Audio System H730 Εγχειρίδιο χρήσης  PDF:643KB  Memòria 2010 - Agència Catalana de Turisme  Manual de usuario 351_03    InfoPlus.21 Interface, User Manual (Software Details)  

Copyright © All rights reserved.
Failed to retrieve file