//---------------------------------------------------------------------------

#ifndef Unit4H
#define Unit4H
#include <vcl.h>
#include <objbase.h>
#include <mshtml.h>
#include <urlmon.h>
#include <utilcls.h>
//---------------------------------------------------------------------------
class THotelDescParser
{
  private :
    AnsiString URL;
    AnsiString HTML;
    AnsiString Transportation;
    AnsiString Directions;
    AnsiString Property_Information;
    AnsiString Services;
    AnsiString Dining;
    AnsiString Ratings_Awards;
    AnsiString Attractions;
    AnsiString ImgUrl;
    AnsiString HotelName;
    AnsiString Hotel_Info;

  public :
    THotelDescParser()
      {
        if(FAILED(::CoInitialize(NULL)))
          ShowMessage("COM Init ¿¡·¯");
        URL = "";
        HTML = "";
        Transportation = "";
        Directions = "";
        Property_Information = "";
        Services = "";
        Dining = "";
        Ratings_Awards = "";
        Attractions = "";
        ImgUrl = "";
        HotelName = "";
        Hotel_Info = "";
      }

    THotelDescParser(AnsiString SeedUrl)
      {
        if(FAILED(::CoInitialize(NULL)))
          ShowMessage("COM Init ¿¡·¯");
        URL = SeedUrl;
        HTML = "";
        Transportation = "";
        Directions = "";
        Property_Information = "";
        Services = "";
        Dining = "";
        Ratings_Awards = "";
        Attractions = "";
        ImgUrl = "";
        HotelName = "";
        Hotel_Info = "";
      }

    void PutUrl ( AnsiString SeedUrl )
      {
        URL = SeedUrl;
      }

    void __fastcall HotelDescParser(void);
    void __fastcall GetHotelHtml(void);
    AnsiString __fastcall Get_Transportation       (void) {return Transportation;};
    AnsiString __fastcall Get_Directions           (void) {return Directions;};
    AnsiString __fastcall Get_Property_Information (void) {return Property_Information;};
    AnsiString __fastcall Get_Services             (void) {return Services;};
    AnsiString __fastcall Get_Dining               (void) {return Dining;};
    AnsiString __fastcall Get_Ratings_Awards       (void) {return Ratings_Awards;};
    AnsiString __fastcall Get_Attractions          (void) {return Attractions;};
    AnsiString __fastcall Get_ImgUrl               (void) {return ImgUrl;};
    AnsiString __fastcall Get_HotelName            (void) {return HotelName;};
    AnsiString __fastcall Get_Hotel_Info           (void) {return Hotel_Info;};
};
//---------------------------------------------------------------------------
#endif
