// Interface to StripTags


// Implementation is in StripTags.cpp



class striptag
{
private:

    char last_printed;          // Last character output

    int loop, loop2;                // Loop variables

    int chars_in_buffer;        // Count of characters in buffer

    FILE *fp_out;                       // Output file pointer

    bool is_link;                       //

    bool is_link_text;          //

    bool is_table;                  //

    bool is_tag;                        //

    bool is_alt;                        //

    bool is_alt_text;               // Flags to store what state currently in

    bool is_special;                //

    bool is_script;                 //

    bool is_comment;                //

    bool is_target;                 //

    bool is_target_text;        //


    void start_symbols ( char* buffer );
    void output_text ( char* buffer );
    void ending_symbols ( char* buffer );
    void file_output ( char* string );
    void file_output ( char character );

public:

    int no_links;                       // Count of links on page

    char link[50][50];          // List of links on page

    
    bool strip_tags( char* fname_in, char* fname_out, char* url, char* title, char* size );
};

syntax highlighted by Code2HTML, v. 0.8.11