X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fpbd%2Fpbd%2Fid.h;h=6296fc29812520825b45ad71e03f1ed05bd8e08a;hb=84bb14efdc07b5c6a18f02aa61d46bbf76c4a077;hp=eb3691d99ec7e98167cb7b692847207d29c5f999;hpb=ffdf5ada616d285fafb58f45c2e3d37b212a328a;p=ardour.git diff --git a/libs/pbd/pbd/id.h b/libs/pbd/pbd/id.h index eb3691d99e..6296fc2981 100644 --- a/libs/pbd/pbd/id.h +++ b/libs/pbd/pbd/id.h @@ -1,3 +1,22 @@ +/* + Copyright (C) 2000-2007 Paul Davis + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + +*/ + #ifndef __pbd_id_h__ #define __pbd_id_h__ @@ -12,7 +31,10 @@ class ID { public: ID (); ID (std::string); - + ID (const ID&); + + void reset (); + bool operator== (const ID& other) const { return _id == other._id; } @@ -21,7 +43,10 @@ class ID { return _id != other._id; } + bool operator== (const std::string&) const; + ID& operator= (std::string); + ID& operator= (const ID&); bool operator< (const ID& other) const { return _id < other._id;