#ifndef ZNODE_ID_H
#define ZNODE_ID_H

namespace znode
{

  struct zid
  {
    zid()
    {
      static int s_ID{0};

      _id = s_ID++;
      s_Count++;
      //qDebug() << " --- con ID: " << _id  << "  count: " << s_Count;
    }

    virtual ~zid()
    {
      s_Count--;
      //qDebug() << " --- del ID: " << _id  << " count: "  << s_Count;
    }

    static int s_Count;
    int _id{0};      

  };

}


#endif // ZNODE_ID_H

