This class is used to store the two std::strings (source type and data type) that correspond to a Formatter specification. There will be a boatload of Formatter classes. Therefore, efficiency is particularly critical here. This is why we limit the number of copies of the std::string that get made.
Public Member Functions | |
TwoString (const std::string &str1, const std::string &str2) | |
A TwoString can be created by passing in both the std::strings. | |
const std::string & | getString1 () const |
Returns the first std::string. | |
const std::string & | getString2 () const |
Returns the second std::string. | |
Friends | |
bool | operator< (const TwoString &a, const TwoString &b) |
Convenience function to enable searches. |
code::TwoString::TwoString | ( | const std::string & | str1, | |
const std::string & | str2 | |||
) | [inline] |
A TwoString can be created by passing in both the std::strings.
const std::string& code::TwoString::getString1 | ( | ) | const [inline] |
Returns the first std::string.
const std::string& code::TwoString::getString2 | ( | ) | const [inline] |
Returns the second std::string.
Convenience function to enable searches.