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
int operator!=(const SbBox2i32 &b1, const SbBox2i32 &b2)
Definition: SbBox2i32.h:91
The SbString class is a string class with convenience functions for string operations.This is the class used for storing and working with character strings. It automatically takes care of supporting all the "bookkeeping" tasks usually associated with working with character strings, like memory allocation and deallocation etc.
Definition: SbString.h:42
The SbName class stores strings by reference.The class is used by Coin for storing keywords...
Definition: SbName.h:31
int operator==(const SbBox2i32 &b1, const SbBox2i32 &b2)
Definition: SbBox2i32.h:87

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

Generated on Fri Jul 20 2018 for Coin by Doxygen. 1.8.14