code::TwoString Class Reference

List of all members.

Detailed Description

This is an OBSOLETE private implementation class of Formatter.

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.

Author:
Lakshman
Version:
Author
lakshman
Date
2009/06/02 20:17:40


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.


Constructor & Destructor Documentation

code::TwoString::TwoString ( const std::string &  str1,
const std::string &  str2 
) [inline]

A TwoString can be created by passing in both the std::strings.


Member Function Documentation

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.


Friends And Related Function Documentation

bool operator< ( const TwoString a,
const TwoString b 
) [friend]

Convenience function to enable searches.


Generated on Fri May 4 13:40:13 2012 for WDSS-IIw2 by  doxygen 1.4.7