#include <gittpl.h>
This class is based on std::string and hence all the normal operations are possible. We have attempted to provide all the normal std::string style contructors and assignment operators - which should mean that this class could be used where-ever a std::string is used, but would provide the Get() function to get the value from an SDS structure, as well as a similar style contructors.
Public Methods | |
| String () | |
| Create an empty Git::String. | |
| String (const std::string &str) | |
| Create a Git::String from a std::string. | |
| String (const std::string &str, size_type pos, size_type n=std::string::npos) | |
| Create a Git::String from a std::string, initialised from s starting at index pos, maximum characters = n. | |
| String (const char *s) | |
| Create a Git::String from a C character array. | |
| String (const char *s, size_type n) | |
| Create a Git::String from the first n characters a C string. | |
| String (size_type n, char c) | |
| Create a Git::String intialised with n occurances of c. | |
| template<class InputIterator> | String (InputIterator beg, InputIterator end) |
| Create a Git::String that is initialised by all characters from beg to end. | |
| String (const SdsId &Id, const char *const Name, const int Position, StatusType *const status, const char *Default=0, const int Flags=Git::KeepErr) | |
| Constructor with the initial value set from an SDS structure. | |
| String | operator= (const std::string str) |
| Assign str to this string. | |
| String | operator= (const String str) |
| Assign str to this string. | |
| String | operator= (const char *s) |
| Copy contents of s into this string. | |
| String & | operator= (char c) |
| Set value to string of length 1. | |
| void | Get (const SdsId &Id, const char *const Name, const int Position, StatusType *const status, const char *Default=0, const int Flags=Git::KeepErr) |
| Fetch the value of this item from an SDS structure. | |
|
|
Create an empty Git::String.
|
|
|
Create a Git::String from a std::string.
|
|
||||||||||||||||
|
Create a Git::String from a std::string, initialised from s starting at index pos, maximum characters = n.
|
|
|
Create a Git::String from a C character array.
|
|
||||||||||||
|
Create a Git::String from the first n characters a C string.
|
|
||||||||||||
|
Create a Git::String intialised with n occurances of c.
|
|
||||||||||||||||
|
Create a Git::String that is initialised by all characters from beg to end.
|
|
||||||||||||||||||||||||||||
|
Constructor with the initial value set from an SDS structure.
|
|
||||||||||||||||||||||||||||
|
Fetch the value of this item from an SDS structure.
|
|
|
Set value to string of length 1.
|
|
|
Copy contents of s into this string.
|
|
|
Assign str to this string.
|
|
|
Assign str to this string.
|
Click here for the DRAMA home page and here for the AAO home page.
For more information, contact tjf@aaoepp.aao.gov.au Generated on Tue Nov 3 09:09:56 2009 for AAO DRAMA C++ Interfaces by
1.2.18