simplestringlist.h
Go to the documentation of this file.
1 //======================================================================
28 //======================================================================
29 
30 #ifndef SIMPLESTRINGLIST_H_
31 #define SIMPLESTRINGLIST_H_
32 
33 //----------------------------------------------------------------------
34 // System Includes - include with <>
35 //----------------------------------------------------------------------
36 
37 #include <iosfwd>
38 
39 //----------------------------------------------------------------------
40 // Project Includes - include with ""
41 //----------------------------------------------------------------------
42 
43 #include "dbg.h"
44 #include "sdhlibrary_settings.h"
45 
46 //----------------------------------------------------------------------
47 // Defines, enums, unions, structs,
48 //----------------------------------------------------------------------
49 
51 
52 
53 //----------------------------------------------------------------------
54 // Global variables
55 //----------------------------------------------------------------------
56 
57 
58 //----------------------------------------------------------------------
59 // Function declarations
60 //----------------------------------------------------------------------
61 
62 
63 //----------------------------------------------------------------------
64 // Class declarations
65 //----------------------------------------------------------------------
66 
67 
68 
70 class VCC_EXPORT cSimpleStringList
71 {
72 public:
73 
76 
77 
79  enum {
80  eMAX_LINES = 256,
81  eMAX_CHARS = 256,
82  };
83 
86 
87 
89  char* CurrentLine();
90 
91 
93  char* NextLine();
94 
95 
97  int Length() const;
98 
99 
101 
105  char* operator[]( int index );
106 
108 
112  char const* operator[]( int index ) const;
113 
114 
116  void Reset();
117 
118 protected:
120  char line[ eMAX_LINES ][ eMAX_CHARS ];
121 
122 }; // cSimpleStringList
123 //-----------------------------------------------------------------
124 
125 
127 VCC_EXPORT std::ostream& operator<<( std::ostream& stream, cSimpleStringList const& ssl );
128 
129 
130 //-----------------------------------------------------------------
131 
133 
134 #endif
135 
136 
137 //======================================================================
138 /*
139  Here are some settings for the emacs/xemacs editor (and can be safely ignored):
140  (e.g. to explicitely set C++ mode for *.h header files)
141 
142  Local Variables:
143  mode:C++
144  mode:ELSE
145  End:
146 */
147 //======================================================================
148 
cSimpleStringList::current_line
int current_line
the index of the current line. For empty cSimpleStringLists this is -1.
Definition: simplestringlist.h:75
cSimpleStringList
A simple string list. (Fixed maximum number of strings of fixed maximum length)
Definition: simplestringlist.h:70
NAMESPACE_SDH_END
#define NAMESPACE_SDH_END
Definition: sdhlibrary_settings.h:80
dbg.h
This file contains interface and implementation of class #SDH::cDBG, a class for colorfull debug mess...
operator<<
VCC_EXPORT std::ostream & operator<<(std::ostream &stream, cSimpleStringList const &ssl)
Output of cSimpleStringList objects in 'normal' output streams.
Definition: simplestringlist.cpp:132
NAMESPACE_SDH_START
#define NAMESPACE_SDH_START
Definition: sdhlibrary_settings.h:79
sdhlibrary_settings.h
This file contains settings to make the SDHLibrary compile on differen systems:


sdhlibrary_cpp
Author(s): Dirk Osswald
autogenerated on Wed Mar 2 2022 01:00:58