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

#ifndef databH
#define databH
//---------------------------------------------------------------------------
#endif




////              KOMPONENTY
class komponent{

   public:
    char znacka[15];
    int cena;
    int rank;


};


class Hdd: public komponent{

   public:
    char velkost[10];
    char rozhr[6];
    int otacky;
    char cache[10];



    Hdd *next;

};


class Doska: public komponent{

  public:

    char popis[20];
    char chipSet[15];

    Doska *next;
};


class CdDvd: public komponent{

  public:

    char popis[20];
    char typ[10];

    CdDvd *next;
};



class Monitor: public komponent{

  public:

     char popis[10];
     char typ[10];
     int palce;

    Monitor *next;
};


class Pamat: public komponent{

  public:

      char velkost[10];
      char zbernica[10];

    Pamat *next;
};



class Procak: public komponent{

  public:

      char typ[15];
      char oznac[15];
      char socket[20];


    Procak *next;
};



class Vga: public komponent{

  public:
      char typ[30];
      char slot[10];
      char chip[10];

    Vga *next;
};


class Chipset{

  public:
    char typ[15];
    char vgaPort[20];
    char socket[15];
    char proces[15];
    int rank;

    Chipset *next;
};


class ZoznamKomponentov{
  public:

     Hdd *hard;
     Hdd *hardP;

     Doska *doska;
     Doska *doskaP;

     CdDvd *mechan;
     CdDvd *mechanP;

     Monitor *monit;
     Monitor *monitP;

     Pamat *pamat;
     Pamat *pamatP;

     Procak *procesor;
     Procak *procesorP;

     Vga *grafika;
     Vga *grafikaP;

     Chipset *chipSet;
     Chipset *chipSetP;
};
 


class DBKomponenty{

  public:

    ZoznamKomponentov *kompon;
};



//              ZAKAZNIK


class Zakaznik{

      public:
        bool registr;
        int pocet;
        int id;
        char priezvisko[20];
        char telCis[15];
        char mesto[20];
        char zostava[30];


};


class DBZakaznik{

 public:
  Zakaznik zakaznik;

  DBZakaznik *next;

};


//              ZOSTAVY


class Zostava{

 public:
   int pocet;
   int hry;
   int kanc;
   int multim;

   Chipset chipSet;
   Doska doska;
   Procak procesor;
   Pamat pamat;
   Vga grafika;
   Hdd hard;
   CdDvd mechan;
   Monitor monit;

};



class DBZostavy{

 public:
  Zostava zostava;

  DBZostavy *next;

};

class profil{

  public:
    char proces[10];
    char grafika[10];
    char disk[10];
  
};


class Poziadavky{

 public:

   int hry;
   int kanc;
   int multim;

};

class Info{

  public:
 
   bool  spokojnost;
   bool  zaujem; 
};



class Vykon{

  public:
   int min;
   int mid;
   int max;

};



EXIT