Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


ID: 21948, State Pattern

by Shaun Parry Email: Anonymous


Implemented from the GoF book "Design Patterns" for Delphi
Download Details
FTP  download also available
CDN Login Required to Download. (You will be redirected to the login page if you click on the Download Link)
To download this, you must have registered:
A free membership

For Delphi, Version 1.0  to 7.0 725 downloads
Copyright: No significant restrictions


Size: 753 bytes
Updated on Tue, 13 Sep 2005 07:17:56 GMT
Originally uploaded on Tue, 13 Jul 2004 06:35:40 GMT
SHA1 Hash: BD6D04FBC88C4E51324CEDAC65FE5AAACD78CFA6
MD5 Hash: 2761D42174322000EE85671E9B3723FE

    Explore the files in this upload

Description
State Pattern allows you to change the functionality of a class by changing it's internal state.

Easy to use

MyConnection := TABConnection.Create;
MyConnection.Connect('Username', 'Password');
Edit1.Text := MyConnection.SessionID; // Returns a valid session id
MyConnection.Execute('', xmlStr); // Returns "This is OK"

MyConnection.Disconnect;
Edit1.Text := MyConnection.SessionID;
MyConnection.Execute('', xmlStr); // Returns "Not Connected"

For more information, see None

Server Response from: ETNACDC03