14#ifndef OSG_IDENTIFER_H
15#define OSG_IDENTIFER_H
23#define OSG_HAS_IDENTIFIER
29inline bool iequals(
const std::string& lhs,
const std::string& rhs)
31 if (lhs.size()!=rhs.size())
return false;
33 for(std::string::size_type i=0; i<lhs.size(); ++i)
35 if (std::tolower(lhs[i])!=std::tolower(rhs[i]))
return false;
51 const std::string&
name()
const {
return _name; }
52 const int&
number()
const {
return _number; }
int _number
Definition Identifier:61
static Identifier * get(int number, osg::Referenced *first=0, osg::Referenced *second=0)
std::string _name
Definition Identifier:60
static Identifier * get(const std::string &name, int number=0, osg::Referenced *first=0, osg::Referenced *second=0)
Identifier(const std::string &name, int number, osg::Referenced *f, osg::Referenced *s)
virtual void objectDeleted(void *ptr)
osg::Referenced * _second
Definition Identifier:63
const int & number() const
Definition Identifier:52
static Identifier * get(osg::Referenced *first, osg::Referenced *second=0)
const std::string & name() const
Definition Identifier:51
osg::Referenced * _first
Definition Identifier:62
author: Julien Valentin 2017 (mp3butcher@hotmail.com)
Definition AlphaFunc:19
bool iequals(const std::string &lhs, const std::string &rhs)
Definition Identifier:29
#define OSG_EXPORT
Definition osg/Export:39