This class implements a simple stack of string objects.
More...
#include <strstack.h>
This class implements a simple stack of string objects.
◆ StrStack()
This is the default StrStack constructor.
◆ ~StrStack()
This is the default StrStack destructor.
◆ clearStack()
void StrStack::clearStack |
( |
| ) |
|
|
inline |
This function will clear all the strings from the stack.
◆ clearString()
void StrStack::clearString |
( |
| ) |
|
This function will remove the top string from the stack.
◆ getSize()
int StrStack::getSize |
( |
| ) |
|
|
inline |
This will return the number of strings currently stored on the stack.
- Returns
- the number of strings on the stack
◆ sendAll()
char * StrStack::sendAll |
( |
| ) |
const |
This function will send all the strings on the stack as one long new string.
- Returns
- stack
◆ sendTop()
char * StrStack::sendTop |
( |
| ) |
const |
This function will send the top string from the stack as a new string.
- Returns
- string
◆ storeString()
void StrStack::storeString |
( |
const char * |
str | ) |
|
This function will put a new string on to the top of the stack.
- Parameters
-
str | is the name of the string |
The documentation for this class was generated from the following files: