CLI  2.9
tk.h
Go to the documentation of this file.
1 /*
2  Copyright (c) 2006-2018, Alexis Royer, http://alexis.royer.free.fr/CLI
3 
4  All rights reserved.
5 
6  Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
7 
8  * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
9  * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation
10  and/or other materials provided with the distribution.
11  * Neither the name of the CLI library project nor the names of its contributors may be used to endorse or promote products derived from this software
12  without specific prior written permission.
13 
14  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
15  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
16  LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
17  A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
18  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
19  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
20  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
21  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
22  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
23  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
24  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 */
26 
27 
31 
32 #ifndef _CLI_TK_H_
33 #define _CLI_TK_H_
34 
35 #include <stdlib.h>
36 
37 #include "cli/namespace.h"
38 
39 
41 
42 
43  CLI_NS_BEGIN(tk)
45 
46 
47  template <class T> const void* UnusedParameter(
50  const T& T_UnusedParam
51  )
52  {
53  return (& T_UnusedParam);
54  }
55 
56  CLI_NS_END(tk)
57 
59 
60 
61 #ifndef CLI_NO_STL
62  #include "cli/tk_stl.h"
63 #else
64  #include "cli/tk_inner.h"
65 #endif
66 
67 
69 
70  CLI_NS_BEGIN(tk)
71 
72 
73  const bool operator==(
75  const char* const STR_String1,
76  const tk::String& STR_String2
77  );
78 
81  const bool operator==(
82  const tk::String& STR_String1,
83  const char* const STR_String2
84  );
85 
88  const bool operator==(
89  const tk::String& STR_String1,
90  const tk::String& STR_String2
91  );
92 
95  const bool operator!=(
96  const char* const STR_String1,
97  const tk::String& STR_String2
98  );
99 
102  const bool operator!=(
103  const tk::String& STR_String1,
104  const char* const STR_String2
105  );
106 
109  const bool operator!=(
110  const tk::String& STR_String1,
111  const tk::String& STR_String2
112  );
113 
116  const bool operator<(
117  const tk::String& STR_String1,
118  const tk::String& STR_String2
119  );
120 
123  const bool operator>(
124  const tk::String& STR_String1,
125  const tk::String& STR_String2
126  );
127 
130  const bool operator<=(
131  const tk::String& STR_String1,
132  const tk::String& STR_String2
133  );
134 
137  const bool operator>=(
138  const tk::String& STR_String1,
139  const tk::String& STR_String2
140  );
141 
142  CLI_NS_END(tk)
143 
145 
146 #endif // _CLI_TK_H_
147 
Main namespace of the CLI library.
const bool operator>=(const tk::String &STR_String1, const tk::String &STR_String2)
Greater or equal operator.
STL toolkit definition.
const bool operator>(const tk::String &STR_String1, const tk::String &STR_String2)
Greater operator.
const bool operator<=(const tk::String &STR_String1, const tk::String &STR_String2)
Lower or equal operator.
#define CLI_NS_END(__ns)
End a namespace definition.
Definition: namespace.h:45
const bool operator==(const char *const STR_String1, const tk::String &STR_String2)
Comparison operator.
const void * UnusedParameter(const T &T_UnusedParam)
Dummy function that aims to avoid warnings for unused parameters.
Definition: tk.h:49
Namespace management.
const bool operator<(const tk::String &STR_String1, const tk::String &STR_String2)
Lower operator.
#define CLI_NS_BEGIN(__ns)
Begin a namespace definition.
Definition: namespace.h:38
const bool operator!=(const char *const STR_String1, const tk::String &STR_String2)
Difference operator.