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;
The core osg library provides the basic scene graph classes such as Nodes, State and Drawables,...
Definition AlphaFunc:19
bool iequals(const std::string &lhs, const std::string &rhs)
helper function for doing a case insenstive compare of two strings.
Definition Identifier:29
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)
objectDeleted is called when the observed object is about to be deleted.
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
Observer base class for tracking when objects are unreferenced (their reference count goes to 0) and ...
Definition Observer:25
Base class for providing reference counted objects.
Definition Referenced:44
#define OSG_EXPORT
Definition Export:39