mockpp::StringContains< StringType > Class Template Reference
[Parameter Constraints]

Tests if the argument is a string that contains a substring. More...

Inheritance diagram for mockpp::StringContains< StringType >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 StringContains (const StringType &in_substring)
 Constructs the object.
virtual ~StringContains ()
 Destroys the object.
virtual bool eval (const StringType &o) const
 Evaluates the constraint.
virtual String describeTo (String &buffer) const
 Appends the description of this object to the buffer.

Detailed Description

template<typename StringType = mockpp ::String>
class mockpp::StringContains< StringType >

Tests if the argument is a string that contains a substring.

See also:
mockpp::stringContains

Definition at line 51 of file StringContains.h.


Constructor & Destructor Documentation

template<typename StringType = mockpp ::String>
mockpp::StringContains< StringType >::StringContains ( const StringType &  in_substring  )  [inline]

Constructs the object.

Parameters:
in_substring the substring to search

Definition at line 58 of file StringContains.h.


Member Function Documentation

template<typename StringType = mockpp ::String>
virtual String mockpp::StringContains< StringType >::describeTo ( String buffer  )  const [inline, virtual]

Appends the description of this object to the buffer.

Parameters:
buffer The buffer that the description is appended to.
Returns:
The current content of the buffer data

Implements mockpp::SelfDescribing.

Definition at line 82 of file StringContains.h.

template<typename StringType = mockpp ::String>
virtual bool mockpp::StringContains< StringType >::eval ( const StringType &  o  )  const [inline, virtual]

Evaluates the constraint.

Parameters:
o the object against which the constraint is evaluated.
Returns:
true: o meets the constraint,
false if it does not.

Implements mockpp::Constraint< StringType >.

Definition at line 73 of file StringContains.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Friends Defines

Generated on Tue Jan 5 09:49:07 2010 for mockpp by  doxygen 1.6.1