C++Talk.NET Forum Index C++Talk.NET
C++ language newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Please help me providing a factory framework here....

 
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ Language (Moderated)
View previous topic :: View next topic  
Author Message
pfnus
Guest





PostPosted: Mon Aug 25, 2003 10:13 pm    Post subject: Please help me providing a factory framework here.... Reply with quote



i was told to use factory., for many reasons, this seems to be the
good choice. but...anyway.
simple, i have a crypto library, it has hash functions, symmetric key
functions and assymmetric key functions., and some derived classes
from hash, symmetric and asymmetric classes. the classes that i have
basically are the following:-

To be more specific, i have these classes now, can you help me glue
these things together properly.. providing maximum efficiency and
flexibility to both the user of this library and future updates to
this library?

In my mind, probably it look like this:

CCryptoLIB * pCrypto= new CCryptoLib;
CHash* pHash=pCrypto->CreateHash("MD5"....);
pHash->Doit(..)

class CHash;
class CMD5 : Hash;
class CSHA:CHash;

CKey;
Class CSymmetric:CKey;
Class CAsymmetric:CKey

Class CSymm1:CSymmetric;
Class CSymm2:CSymmetric;

Class CAsymm1:CAsymmetric;
Class CAsymm2:CAysmmetric;

I KNOW THEY ARE A LOT OF C++ GURUS IN THIS FORUM..
if you can provide me a framework for me i would really really
appreicated it.. just a framework where i can continue my work on
it...
AGAIN YOUR HELP IS VERY MUCH APPREICATED HERE...!!

[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]
Back to top
Display posts from previous:   
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ Language (Moderated) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.