Coin Logo http://www.sim.no
http://www.coin3d.org

SbName.h
1 #ifndef COIN_SBNAME_H
2 #define COIN_SBNAME_H
3 
4 /**************************************************************************\
5  *
6  * This file is part of the Coin 3D visualization library.
7  * Copyright (C) 1998-2007 by Systems in Motion. All rights reserved.
8  *
9  * This library is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU General Public License
11  * ("GPL") version 2 as published by the Free Software Foundation.
12  * See the file LICENSE.GPL at the root directory of this source
13  * distribution for additional information about the GNU GPL.
14  *
15  * For using Coin with software that can not be combined with the GNU
16  * GPL, and for taking advantage of the additional benefits of our
17  * support services, please contact Systems in Motion about acquiring
18  * a Coin Professional Edition License.
19  *
20  * See http://www.coin3d.org/ for more information.
21  *
22  * Systems in Motion, Postboks 1283, Pirsenteret, 7462 Trondheim, NORWAY.
23  * http://www.sim.no/ sales@sim.no coin-support@coin3d.org
24  *
25 \**************************************************************************/
26 
27 #include <Inventor/SbBasic.h>
28 
29 class SbString;
30 
31 class COIN_DLL_API SbName {
32 public:
33  SbName(void);
34  SbName(const char * nameString);
35  SbName(const SbString & str);
36  SbName(const SbName & name);
37  ~SbName(void);
38 
39  const char * getString(void) const;
40  int getLength(void) const;
41  static SbBool isIdentStartChar(const char c);
42  static SbBool isIdentChar(const char c);
43  static SbBool isBaseNameStartChar(const char c);
44  static SbBool isBaseNameChar(const char c);
45 
46  int operator ! (void) const;
47  friend COIN_DLL_API int operator == (const SbName & lhs, const char * rhs);
48  friend COIN_DLL_API int operator == (const char * lhs, const SbName & rhs);
49  friend COIN_DLL_API int operator == (const SbName & lhs, const SbName & rhs);
50  friend COIN_DLL_API int operator != (const SbName & lhs, const char * rhs);
51  friend COIN_DLL_API int operator != (const char * lhs, const SbName & rhs);
52  friend COIN_DLL_API int operator != (const SbName & lhs, const SbName & rhs);
53 
54  operator const char * (void) const;
55 
56 private:
57  const class SbNameEntry * entry;
58 };
59 COIN_DLL_API int operator == (const SbName & lhs, const char * rhs);
60 COIN_DLL_API int operator == (const char * lhs, const SbName & rhs);
61 COIN_DLL_API int operator == (const SbName & lhs, const SbName & rhs);
62 COIN_DLL_API int operator != (const SbName & lhs, const char * rhs);
63 COIN_DLL_API int operator != (const char * lhs, const SbName & rhs);
64 COIN_DLL_API int operator != (const SbName & lhs, const SbName & rhs);
65 
66 #endif // !COIN_SBNAME_H

Copyright © 1998-2007 by Systems in Motion AS. All rights reserved.

Generated on Wed Jul 25 2012 for Coin by Doxygen. 1.8.1.1