]> git.tdb.fi Git - libs/gl.git/blob - source/tag.h
47c4643e1fa8e27fd5fe73fe96c84ce78650d938
[libs/gl.git] / source / tag.h
1 /* $Id$
2
3 This file is part of libmspgl
4 Copyright © 2007, 2010  Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
6 */
7
8 #ifndef MSP_GL_TAG_H_
9 #define MSP_GL_TAG_H_
10
11 #include <string>
12
13 namespace Msp {
14 namespace GL {
15
16 struct Tag
17 {
18         unsigned id;
19
20         Tag(): id(0) { }
21         Tag(const char *);
22         Tag(const std::string &s);
23
24         bool operator<(const Tag &t) const { return id<t.id; }
25         bool operator==(const Tag &t) const { return id==t.id; }
26 };
27
28 } // namespace GL
29 } // namespace Msp
30
31 #endif