DataDirector API
DDD_StringList.h
Go to the documentation of this file.
1 #ifndef _DDD_StringList_h_
2 #define _DDD_StringList_h_
3 
4 /*! \file DDD_StringList.h The StringList class and related utilities.
5 
6 
7  \par Copyright Information
8 
9  Copyright (c) 2012 The DiSTI Corporation.<br>
10  11301 Corporate Blvd; Suite 100<br>
11  Orlando, Florida 32817<br>
12  USA<br>
13  <br>
14  All rights reserved.<br>
15 
16  This Software contains proprietary trade secrets of DiSTI and may not be
17 reproduced, in whole or part, in any form, or by any means of electronic,
18 mechanical, or otherwise, without the written permission of DiSTI. Said
19 permission may be derived through the purchase of applicable DiSTI product
20 licenses which detail the distribution rights of this content and any
21 Derivative Works based on this or other copyrighted DiSTI Software.
22 
23  NO WARRANTY. THE SOFTWARE IS PROVIDED "AS-IS," WITHOUT WARRANTY OF ANY KIND,
24 AND ANY USE OF THIS SOFTWARE PRODUCT IS AT YOUR OWN RISK. TO THE MAXIMUM EXTENT
25 PERMITTED BY APPLICABLE LAW, DISTI AND ITS SUPPLIERS DISCLAIM ALL WARRANTIES
26 AND CONDITIONS, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
27 IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY AND/OR FITNESS FOR A
28 PARTICULAR PURPOSE, TITLE, AND NON-INFRINGEMENT, WITH REGARD TO THE SOFTWARE.
29 
30  LIMITATION OF LIABILITY. TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW,
31 IN NO EVENT SHALL DISTI OR ITS SUPPLIERS BE LIABLE FOR ANY SPECIAL, INCIDENTAL,
32 INDIRECT, OR CONSEQUENTIAL DAMAGES WHATSOEVER (INCLUDING, WITHOUT LIMITATION,
33 DAMAGES FOR LOSS OF BUSINESS PROFITS, BUSINESS INTERRUPTION, LOSS OF BUSINESS
34 INFORMATION, OR ANY OTHER PECUNIARY LOSS) ARISING OUT OF THE USE OF OR
35 INABILITY TO USE THE SOFTWARE, EVEN IF DISTI HAS BEEN ADVISED OF THE POSSIBLITY
36 OF SUCH DAMAGES. DISTI'S ENTIRE LIABILITY AND YOUR EXCLUSIVE REMEDY SHALL NOT
37 EXCEED FIVE DOLLARS (US$5.00).
38 
39  The aforementioned terms and restrictions are governed by the laws of the
40 State of Florida and the United States of America.
41 
42 */
43 
44 #include <string>
45 #include "dynamic_array.h"
46 
47 #include "DDD_Include.h"
48 namespace disti
49 {
50 
51 /** \brief List of std::strings */
53 
54 /** \brief Utility function for finding specific string within a DDD_StringList
55  * \param list The string list to search
56  * \param value The value to search for
57  * \return Returns true if the given list contains the specified value
58  */
59 DDD_EXPORT bool StringListContains(DDD_StringList &list,const std::string &value);
60 
61 /** \brief Tokenizes the string passed in and populates the string list
62  * \param str A string containing a list of tokens separated by delimites
63  * \param token The token character that separates tokens
64  * \param tokens A string list that will contain the tokens. This list will be
65  * emptied by Tokenize prior to being populated.
66  */
67 DDD_EXPORT void Tokenize(const std::string& str, const std::string& delim, DDD_StringList& tokens);
68 
69 
70 } // namespace disti
71 
72 #endif
73 
A templated array of objects. The array dynamically resizes as needed.
Definition: dynamic_array.h:61
The disti::DynamicArray class. A templated array of objects capable of dynamically growing...
void Tokenize(const std::string &str, const std::string &delim, DDD_StringList &tokens)
Tokenizes the string passed in and populates the string list.
bool StringListContains(DDD_StringList &list, const std::string &value)
Utility function for finding specific string within a DDD_StringList.
DynamicArray< std::string, false > DDD_StringList
List of std::strings.
Definition: DDD_StringList.h:52
Definition: AttributeChangedEmitter.h:46