nova proba

Committer:
bosko001
Date:
Sun Apr 12 17:59:57 2020 +0000
Revision:
5:c9a908749d4c
Parent:
3:1196befeace0
Child:
7:7ea932eb31f6
12.04.2020; napravljena class C_HTMLparse; treba napraviti obradu POST upita

Who changed what in which revision?

UserRevisionLine numberNew contents of line
bosko001 2:45b351b4fc2a 1 #ifndef doHTML_H
bosko001 2:45b351b4fc2a 2 #define doHTML_H
bosko001 2:45b351b4fc2a 3
bosko001 5:c9a908749d4c 4 #include "dxml.h"
bosko001 5:c9a908749d4c 5
bosko001 5:c9a908749d4c 6
bosko001 5:c9a908749d4c 7
bosko001 5:c9a908749d4c 8 class C_HTMLparse
bosko001 5:c9a908749d4c 9 {
bosko001 5:c9a908749d4c 10 private:
bosko001 5:c9a908749d4c 11
bosko001 5:c9a908749d4c 12 char* p_HTMLpage;
bosko001 5:c9a908749d4c 13 dxml_t p_rootHTML;
bosko001 5:c9a908749d4c 14 dxml_t html_body, html_form, html_table, tr;
bosko001 5:c9a908749d4c 15 dxml_t front_row[3];
bosko001 5:c9a908749d4c 16 dxml_t UDPs[10];
bosko001 5:c9a908749d4c 17 dxml_t TCPs[10];
bosko001 5:c9a908749d4c 18 dxml_t serial[4];
bosko001 5:c9a908749d4c 19
bosko001 5:c9a908749d4c 20 void load_front_row();
bosko001 5:c9a908749d4c 21 void load_second_row();
bosko001 5:c9a908749d4c 22 void load_udp_and_tcp(dxml_t& td);
bosko001 5:c9a908749d4c 23 void load_serial(dxml_t& td);
bosko001 5:c9a908749d4c 24 dxml_t get_serial_option(dxml_t s, int option_idx);
bosko001 5:c9a908749d4c 25 void intern_init( void );
bosko001 5:c9a908749d4c 26
bosko001 5:c9a908749d4c 27
bosko001 5:c9a908749d4c 28 public:
bosko001 5:c9a908749d4c 29
bosko001 5:c9a908749d4c 30 C_HTMLparse( void );
bosko001 5:c9a908749d4c 31 C_HTMLparse( const char *str );
bosko001 5:c9a908749d4c 32
bosko001 5:c9a908749d4c 33
bosko001 5:c9a908749d4c 34 const char *get_selected_option( const char *name_option );
bosko001 5:c9a908749d4c 35 const char * set_selected_option( const char* name_option, const char* value_option );
bosko001 5:c9a908749d4c 36 char *getHTML_free( void );
bosko001 5:c9a908749d4c 37
bosko001 5:c9a908749d4c 38
bosko001 5:c9a908749d4c 39 const char *get_myIP( void );
bosko001 5:c9a908749d4c 40 const char *get_myMASK(void);
bosko001 5:c9a908749d4c 41 const char *get_myGATE( void );
bosko001 5:c9a908749d4c 42
bosko001 5:c9a908749d4c 43 const char *get_myUdpPort( void );
bosko001 5:c9a908749d4c 44 const char *get_myTcpPort( void );
bosko001 5:c9a908749d4c 45
bosko001 5:c9a908749d4c 46 const char *get_UdpIP( int i );
bosko001 5:c9a908749d4c 47 const char *get_UdpPort( int i );
bosko001 5:c9a908749d4c 48
bosko001 5:c9a908749d4c 49 const char *get_TcpIP( int i );
bosko001 5:c9a908749d4c 50 const char *get_TcpPort( int i );
bosko001 5:c9a908749d4c 51
bosko001 5:c9a908749d4c 52
bosko001 5:c9a908749d4c 53 void set_myIP( const char* str );
bosko001 5:c9a908749d4c 54 void set_myMASK( const char* str );
bosko001 5:c9a908749d4c 55 void set_myGATE( const char* str );
bosko001 5:c9a908749d4c 56
bosko001 5:c9a908749d4c 57 void set_myUdpPort( const char* str );
bosko001 5:c9a908749d4c 58 void set_myTcpPort( const char* str );
bosko001 5:c9a908749d4c 59
bosko001 5:c9a908749d4c 60 void set_UdpIP( int i, const char* str );
bosko001 5:c9a908749d4c 61 void set_UdpPort( int i, const char* str );
bosko001 5:c9a908749d4c 62
bosko001 5:c9a908749d4c 63 void set_TcpIP( int i, const char* str );
bosko001 5:c9a908749d4c 64 void set_TcpPort( int i, const char* str );
bosko001 5:c9a908749d4c 65
bosko001 5:c9a908749d4c 66
bosko001 5:c9a908749d4c 67 };
bosko001 2:45b351b4fc2a 68
bosko001 2:45b351b4fc2a 69
bosko001 2:45b351b4fc2a 70 #endif