Tools.h++ Class Reference

Table Of Contents
Persistence
None
Example
#include <rw/factory.h>
#include <rw/rwbag.h>
#include <rw/colldate.h>
#include <rw/rstream.h>
main(){
// Create new RWBag off the heap, using Class ID __RWBAG.
RWBag* b = (RWBag*)getRWFactory ()->create(__RWBAG);
b->insert( new RWCollectableDate ); // Insert today's date
// ...
b->clearAndDestroy(); // Cleanup: first delete members,
delete b; // then the bag itself
}
Public Constructors
RWFactory();
Construct an RWFactory.
Public Operator
RWBoolean
operator<=(const RWFactory& h);
Returns TRUE if self is a subset of h, that is, every element of self has a counterpart in h
which isEqual. This operator is included to fix an inconsistency in the C++ language. It is
not explicitly present unless you are compiling with an implementation of the Standard
C++ Library. It would normally be inherited from RWSet
Note: If you inherit from RWFactory in the presence of the Standard C++ Library, we
recommend that you override this operator and explicitly forward the call. Overload
resolution in C++ will choose the Standard Library provided global operators over
inherited class members. These global definitions are not appropriate for set-like partial
orderings.