Open Inventor Release 2024.1.0
 
Loading...
Searching...
No Matches
SbStringList.h
Go to the documentation of this file.
1/*=======================================================================
2 *** THE CONTENT OF THIS WORK IS PROPRIETARY TO FEI S.A.S, (FEI S.A.S.), ***
3 *** AND IS DISTRIBUTED UNDER A LICENSE AGREEMENT. ***
4 *** ***
5 *** REPRODUCTION, DISCLOSURE, OR USE, IN WHOLE OR IN PART, OTHER THAN AS ***
6 *** SPECIFIED IN THE LICENSE ARE NOT TO BE UNDERTAKEN EXCEPT WITH PRIOR ***
7 *** WRITTEN AUTHORIZATION OF FEI S.A.S. ***
8 *** ***
9 *** RESTRICTED RIGHTS LEGEND ***
10 *** USE, DUPLICATION, OR DISCLOSURE BY THE GOVERNMENT OF THE CONTENT OF THIS ***
11 *** WORK OR RELATED DOCUMENTATION IS SUBJECT TO RESTRICTIONS AS SET FORTH IN ***
12 *** SUBPARAGRAPH (C)(1) OF THE COMMERCIAL COMPUTER SOFTWARE RESTRICTED RIGHT ***
13 *** CLAUSE AT FAR 52.227-19 OR SUBPARAGRAPH (C)(1)(II) OF THE RIGHTS IN ***
14 *** TECHNICAL DATA AND COMPUTER SOFTWARE CLAUSE AT DFARS 52.227-7013. ***
15 *** ***
16 *** COPYRIGHT (C) 1996-2021 BY FEI S.A.S, ***
17 *** BORDEAUX, FRANCE ***
18 *** ALL RIGHTS RESERVED ***
19**=======================================================================*/
20/*=======================================================================
21** Created by : VSG (MMM YYYY)
22**=======================================================================*/
23
24#ifndef SB_STRING_LIST_H
25#define SB_STRING_LIST_H
26
27#include <Inventor/SbPList.h>
28class SbString;
29
61class SbStringList : public SbPList
62{
63 public:
64
68 void append(SbString *string);
69
74 void append( const char* );
75
79 int find(SbString *string);
80
84 int findString( const SbString &string) const;
85
89 void insert(SbString *string, int addBefore);
90
92 SbString*& operator [](int i) const;
93
102 static SbStringList split( const SbString& str, const SbString& separator );
103
104};
105
106#endif
List of generic (void *) pointers.
Definition SbPList.h:77
Class for smart character strings.
Definition SbString.h:202
Maintains a list of pointers to SbString instances.
int find(SbString *string)
Returns index of given SbString in list, or -1 if not found (pointer check)
SbString *& operator[](int i) const
Returns pointer with given index.
void insert(SbString *string, int addBefore)
Inserts given SbString in list before SbString with given index.
static SbStringList split(const SbString &str, const SbString &separator)
This function splits a string according to a separator.
void append(const char *)
Adds given string to the end of the list.
int findString(const SbString &string) const
Returns index of given SbString in list, or -1 if not found (string check)
void append(SbString *string)
Adds given SbString pointer to end of list.