This page describes the global typedefs, functions, and data items associated with the namespace rwsf.
T cCast(const CountingPointer< O > & pointer);
Performs a C-style cast on the raw pointer associated with pointer, converting it to type T::PointerType. T is assumed to be a CountingPointer type.
CountingPointer<Base> b = ...; CountingPointer<Derived> d = cCast<CountingPointer<Derived> >(b);
T cCast(const RefCountingPointer< O > & pointer);
Performs a C-style cast on the raw pointer associated with pointer, converting it to type T::PointerType. T is assumed to be a RefCountingPointer type.
RefCountingPointer<Base> b = ...; RefCountingPointer<Derived> d = cCast<RefCountingPointer<Derived> >(b);
T constCast(const CountingPointer< O > & pointer);
Performs a const_cast on the raw pointer associated with pointer, converting it to type T::PointerType. T is assumed to be a CountingPointer type.
CountingPointer<const Base> cb = ...; CountingPointer<Base> b = constCast<CountingPointer<Base> >(cb);
T constCast(const RefCountingPointer< O > & pointer);
Performs a const_cast on the raw pointer associated with pointer, converting it to type T::PointerType. T is assumed to be a RefCountingPointer type.
RefCountingPointer<const Base> cb = ...; RefCountingPointer<Base> b = constCast<RefCountingPointer<Base> >(cb);
RWCString createRWCString(const std::string & str);
Converts a rwsf::CStringstr to an RWCString and returns it.
std::string createRWSFString(const RWCString & str);
Converts an RWCString str to a rwsf::CString, and returns it.
std::string createRWSFString(const rwsf::CString & str);
Converts a std::stringstr to a rwsf::CString.
std::string createStlString(const std::string & str);
Converts a rwsf::CString to a std::string.
T dynamicCast(const CountingPointer< O > & pointer);
Performs a dynamic_cast on the raw pointer associated with pointer, converting it to type T::PointerType. T is assumed to be a CountingPointer type. The returned pointer will be associated with null if the dynamic_cast fails.
CountingPointer<Base> b = ...; CountingPointer<Derived> d = dynamicCast<CountingPointer<Derived> >(b);
T dynamicCast(const RefCountingPointer< O > & pointer);
Performs a dynamic_cast on the raw pointer associated with pointer, converting it to type T::PointerType. T is assumed to be a RefCountingPointer type. The returned pointer will be associated with null if the dynamic_cast fails.
RefCountingPointer<Base> b = ...; RefCountingPointer<Derived> d = dynamicCast<RefCountingPointer<Derived> >(b);
T * getRawPointer(const RefCountingPointer< T > & pointer);
A utility function for accessing the underlying raw pointer for a RefCountingPointer. This method uses an explicit call to operator-> in order to access the underlying object.
TimerCallback< T > make_timer_cb(T & t, void(T::*)() f);
make_timer_cb is a convenience function so can be expressed less cluttered as
MyClass mc; timer.addCallback(TimerCallback<MyClass>(mc, MyClass::methodName)); MyClass mc; timer.addCallback(make_timer_cb(mc, MyClass::methodName));
bool operator!=(const DateTime & l, const DateTime & r);
Returns true if l is not the same as r.
bool operator!=(const rwsf::ServiceIdentifier & lhs, const rwsf::ServiceIdentifier & rhs);
Inequality operator.
bool operator!=(const rwsf::ServiceLocation & lhs, const rwsf::ServiceLocation & rhs);
Inequality operator.
bool operator!=(const XmlAttribute & lhs, const XmlAttribute & rhs);
Returns false if lhs and rhs have matching names and values.
bool operator!=(const XmlName & lhs, const XmlName & rhs);
Returns false if lhs and rhs have the same local name and the same namespace URI. Ignores prefixes.
bool operator!=(const XmlNamespace & lhs, const XmlNamespace & rhs);
Returns false if lhs and rhs have identical URI strings as determined by a string comparison.
bool operator<(const CountingPointer< T > & first, const CountingPointer< O > & second);
Less than operator. Verifies that the pointer associated with first is less than the pointer associated with second. Returns true if first is less than second, false otherwise.
bool operator<(const RefCountingPointer< T > & first, const RefCountingPointer< O > & second);
Less than operator. Verifies that the pointer associated with first is less than the pointer associated with second. Returns true if first is less than second, false otherwise.
bool operator<(const rwsf::ServiceLocation & lhs, const rwsf::ServiceLocation & rhs);
Less-than operator.
bool operator<(const TimeSpan & lhs, const TimeSpan & rhs);
The order relation on duration is partial order since there is no determinate relationship between certain durations such as one month and 30days.
This method is implemented based on the ordering algorithm defined in Section 3.2.6.2 of XML Schema part 2:Datatypes. This algorithm determines ordering by adding (as per operator+(const rwsf::DateTime)) 4 specific time instants to the each of these durations and comparing the result.
As the ordering is partial some comparisions will be indeterminate. For example comparing P1M and P30D will return false for both P1M < P30D and P30D < P1M. Check the schema specification for all indeterminate margin values.
bool operator<(const XmlAttribute & lhs, const XmlAttribute & rhs);
Returns true if the unique name of lhs compares less than the unique name of rhs, using operator<() for std::string.
bool operator<(const XmlName &, const XmlName &);
Returns true if the local name of lhs compares less than the local name of rhs, false if the local name of lhs is greater than the local name of rhs. All comparisons use operator<() for std::string. If the local names compare equal, compares the contained rwsf::XmlNamespace objects and returns the results.
bool operator<(const XmlNamespace & lhs, const XmlNamespace & rhs);
Returns true if the URI string contained in lhs is less than the URI string contained in rhs as determined by operator<() for std::string.
void operator<<(Attribute & attr, const T & value);
Insertion operator. Inserts a copy of value into attr. Note that T must be a single object rather than an array, and that the operator uses the exact type of T. In particular, an attribute cannot hold an array of char. Instead, use a std::string:
Attribute attr; attr << std::string("Inserts an std::string.");
rwsf::LocalizedMessage & operator<<(rwsf::LocalizedMessage & m, const T & t);
Replacement operator. Can use to chain replaces by calling msg << replace1 << replace2 << ...
bool operator<=(const CountingPointer< T > & first, const CountingPointer< O > & second);
Less than or equal operator. Verifies that the pointer associated with first is less than or equal to the pointer associated with second. Returns true if first is less than or equal to second, false otherwise.
Note
operator<=() is defined in terms of operator<(). Users who want to change the behavior of equality/inequality for specializations of CountingPointer only need to overload operator<().
bool operator<=(const DateTime & l, const DateTime & r);
Returns true if l is before or the same as r.
bool operator<=(const RefCountingPointer< T > & first, const RefCountingPointer< O > & second);
Less than or equal operator. Verifies that the pointer associated with first is less than or equal to the pointer associated with second. Returns true if first is less than or equal to second, false otherwise.
Note
operator<=() is defined in terms of operator<(). Users who want to change the behavior of equality/inequality for specializations of RefCountingPointer only need to overload operator<().
bool operator==(const rwsf::ServiceIdentifier & lhs, const rwsf::ServiceIdentifier & rhs);
Equality operator.
bool operator==(const rwsf::ServiceLocation & lhs, const rwsf::ServiceLocation & rhs);
Equality operator.
bool operator==(const Vector< T > & lhs, const Vector< T > & rhs);
If the lhs is equal to rhs, returns true; otherwise, false. Two collections are equal if both have the same number of entries, and iterating through both collections produces, in turn, individual elements that compare equal to each other.
bool operator==(const XmlAttribute & lhs, const XmlAttribute & rhs);
Returns true if lhs and rhs have matching names and values. Compares the local names of lhs and rhs, the URI strings of lhs and rhs and the values of lhs and rhs. If all comparisons are equal, lhs and rhs have matching names and values.
bool operator==(const XmlName &, const XmlName &);
Returns true if the two objects have the same local name and the same namespace URI. Ignores prefixes.
bool operator==(const XmlNamespace & lhs, const XmlNamespace & rhs);
Returns true if lhs and rhs have identical URI strings as determined by a string comparison.
bool operator==(const SecureSocketAttribute & x, const SecureSocketAttribute & y);
True if x and y refer to the same attribute on the same socket.
bool operator>(const CountingPointer< T > & first, const CountingPointer< O > & second);
Greater than operator. Verifies that the pointer associated with first is less than the pointer associated with second. Returns true if first is greater than second, false otherwise.
Note
operator>() is defined in terms of operator<(). Users who want to change the behavior of equality/inequality for specializations of CountingPointer only need to overload operator<().
bool operator>(const DateTime & l, const DateTime & r);
Returns true if l is after r.
bool operator>(const RefCountingPointer< T > & first, const RefCountingPointer< O > & second);
Greater than operator. Verifies that the pointer associated with first is less than the pointer associated with second. Returns true if first is greater than second, false otherwise.
Note
operator>() is defined in terms of operator<(). Users who want to change the behavior of equality/inequality for specializations of RefCountingPointer only need to overload operator<().
bool operator>=(const CountingPointer< T > & first, const CountingPointer< O > & second);
Greater than or equal operator. Verifies that the pointer associated with first is greater than or equal to the pointer associated with second. Returns true if first is greater than or equal to second, false otherwise.
Note
operator>=() is defined in terms of operator<(). Users who want to change the behavior of equality/inequality for specializations of CountingPointer only need to overload operator<().
bool operator>=(const DateTime & l, const DateTime & r);
Return true if l is after or the same as r.
bool operator>=(const RefCountingPointer< T > & first, const RefCountingPointer< O > & second);
Greater than or equal operator. Verifies that the pointer associated with first is greater than or equal to the pointer associated with second. Returns true if first is greater than or equal to second, false otherwise.
Note
operator>=() is defined in terms of operator<(). Users who want to change the behavior of equality/inequality for specializations of RefCountingPointer only need to overload operator<().
void operator>>(const Attribute & attr, T & value);
Extraction operator. Extracts the value stored in attr and copies it into value. If attr does not contain a value, value is unchanged. Note that the type of value must exactly match the type inserted into attr. Otherwise, the operator throws an exception of type rwsf::Exception.
void operator>>(const Member & m, T & value);
Inserts value into rwsf::Memberm.
T reinterpretCast(const CountingPointer< O > & pointer);
Performs a reinterpret_cast on the raw pointer associated with pointer, converting it to type T::PointerType. T is assumed to be a CountingPointer type.
CountingPointer<Base> b = ...; CountingPointer<Derived> d = dynamicCast<CountingPointer<Derived> >(b);
T reinterpretCast(const RefCountingPointer< O > & pointer);
Performs a reinterpret_cast on the raw pointer associated with pointer, converting it to type T::PointerType. T is assumed to be a RefCountingPointer type.
RefCountingPointer<Base> b = ...; RefCountingPointer<Derived> d = dynamicCast<RefCountingPointer<Derived> >(b);
rwsf::sdo::DataObjectPtr sdoUnmarshal(const std::string & inXML);
Takes in an XML formated string and returns a SDO DataObjectPtr representation.
rwsf::sdo::DataObjectPtr sdoUnmarshal(std::istream & inXML);
Takes in an XML formated input stream and returns a SDO DataObjectPtr representation.
T staticCast(const CountingPointer< O > & pointer);
Performs a static_cast on the raw pointer associated with pointer, converting it to type T::PointerType. T is assumed to be a CountingPointer type.
CountingPointer<Base> b = ...; CountingPointer<Derived> d = staticCast<CountingPointer<Derived> >(b);
T staticCast(const RefCountingPointer< O > & pointer);
Performs a static_cast on the raw pointer associated with pointer, converting it to type T::PointerType. T is assumed to be a RefCountingPointer type.
RefCountingPointer<Base> b = ...; RefCountingPointer<Derived> d = staticCast<RefCountingPointer<Derived> >(b);
CString strXForm(const CString &);
Returns the result of applying strxfrm() to the argument string, to allow quicker collation than CString::collate(). Provided only on platforms that provide strxfrm().
Note
This function is incompatible with strings with embedded nulls.
void Throw(const ServiceShutdownException &);
Calls rwsfErrRoutine when exceptions are not supported; otherwise throws a rwsf::ServiceShutdownException.
CString toLower(const CString & str);
Returns a version of str where all upper-case characters have been replaced with lower-case characters. Uses the Standard C Library function tolower().
Note
This function is incompatible with MBCS strings.
CString toUpper(const CString & str);
Returns a version of str where all lower-case characters have been replaced with upper-case characters. Uses the Standard C Library function toupper().
Note
This function is incompatible with MBCS strings.
© Copyright Rogue Wave Software, Inc. All Rights Reserved. All Rights Reserved. Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. HydraExpress is a trademark of Rogue Wave Software, Inc. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.