    /*  $Id:$
     */

    #ifndef _CYBERNET_HPP_INCLUDED

    #define _CYBERNET_HPP_INCLUDED

    #include <afc/entity.h>

    #include <afc/select.h>

    #define FIRST_JCT 100000 // Stevilka prvega Jct vozla v bazi

    /**
     ** Cybernet cev
     **/
    class Pipe : public Entity
    {
    public:
      long num;
      Strings jct1;
      Strings jct2;
      double  Diam;
      double  Len;
      double  Lenud;
      double  CoefR;
      double  CoefML;
      double  CoefMLUD;
      Strings Dsc;
      Strings Text_1;
      Strings O_c;
      double  R_fr;
      double  R_hl;
      double  R_ph;
      double  R_ml;
      double  R_vel;
      double  R_hl1000;
      double  Name;
      Strings R_tTime;
      double  R_w;
      double  R_frm;
      int    tempZone;
      Strings unitCode;

    public:
      int Pick();
      GetPipe(ads_name name);

    protected:
      int getData();
    };

    /**
     ** Cybernet vozli
     **/
    class Junction : public Entity
    {
    private:
      static Selection *jcts;

    public:
      Strings   Num;
      int      Zone;
      ads_real Elev;
      ads_real U_elev;
      ads_real Dmdad;
      ads_real Dmdmd;
      ads_real Dmdph;
      ads_real Dmd1;
      ads_real Dmd2;
      Strings   Dmdf;
      Strings   Desc;
      Strings   Text;
      int    tempZone;
      Strings unitCode;

    public:
      Get(ads_name name);
      Junction();
      virtual ~Junction();
      static void Collect();
      static void Throw();
      static void ForAll(void (*func)(ads_name name));
      Find(const char *jctName);

    protected:
      int getData();
    };

    #endif

syntax highlighted by Code2HTML, v. 0.9.1