]> git.tdb.fi Git - libs/gl.git/blob - source/tag.cpp
Add $Id$ to tag.*
[libs/gl.git] / source / tag.cpp
1 /* $Id$
2
3 This file is part of libmspgl
4 Copyright © 2007  Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
6 */
7
8 #include "tag.h"
9
10 namespace Msp {
11 namespace GL {
12
13 Tag::Tag(const char *s):
14         id(0)
15 {
16         for(const char *i=s; *i; ++i)
17                 id=id*id+*i;
18 }
19
20 Tag::Tag(const std::string &s):
21         id(0)
22 {
23         for(std::string::const_iterator i=s.begin(); i!=s.end(); ++i)
24                 id=id*id+*i;
25 }
26
27 } // namespace GL
28 } // namespace Msp