bosko lekovic
/
ETHtoCOM_10
nova verzija tcp+udp->serial com
doHTML.h
- Committer:
- bosko001
- Date:
- 2020-04-12
- Revision:
- 5:c9a908749d4c
- Parent:
- 3:1196befeace0
- Child:
- 7:7ea932eb31f6
File content as of revision 5:c9a908749d4c:
#ifndef doHTML_H #define doHTML_H #include "dxml.h" class C_HTMLparse { private: char* p_HTMLpage; dxml_t p_rootHTML; dxml_t html_body, html_form, html_table, tr; dxml_t front_row[3]; dxml_t UDPs[10]; dxml_t TCPs[10]; dxml_t serial[4]; void load_front_row(); void load_second_row(); void load_udp_and_tcp(dxml_t& td); void load_serial(dxml_t& td); dxml_t get_serial_option(dxml_t s, int option_idx); void intern_init( void ); public: C_HTMLparse( void ); C_HTMLparse( const char *str ); const char *get_selected_option( const char *name_option ); const char * set_selected_option( const char* name_option, const char* value_option ); char *getHTML_free( void ); const char *get_myIP( void ); const char *get_myMASK(void); const char *get_myGATE( void ); const char *get_myUdpPort( void ); const char *get_myTcpPort( void ); const char *get_UdpIP( int i ); const char *get_UdpPort( int i ); const char *get_TcpIP( int i ); const char *get_TcpPort( int i ); void set_myIP( const char* str ); void set_myMASK( const char* str ); void set_myGATE( const char* str ); void set_myUdpPort( const char* str ); void set_myTcpPort( const char* str ); void set_UdpIP( int i, const char* str ); void set_UdpPort( int i, const char* str ); void set_TcpIP( int i, const char* str ); void set_TcpPort( int i, const char* str ); }; #endif