Click here to Skip to main content
15,899,679 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
AnswerRe: A questing about software design methodology Pin
Pete O'Hanlon7-Oct-10 22:49
mvePete O'Hanlon7-Oct-10 22:49 
GeneralRe: A questing about software design methodology Pin
popchecker7-Oct-10 23:01
popchecker7-Oct-10 23:01 
GeneralRe: A questing about software design methodology Pin
Pete O'Hanlon7-Oct-10 23:50
mvePete O'Hanlon7-Oct-10 23:50 
AnswerRe: A questing about software design methodology Pin
Mycroft Holmes8-Oct-10 1:17
professionalMycroft Holmes8-Oct-10 1:17 
GeneralRe: A questing about software design methodology Pin
Megidolaon12-Oct-10 5:15
Megidolaon12-Oct-10 5:15 
GeneralRe: A questing about software design methodology Pin
RobCroll26-Dec-10 5:07
RobCroll26-Dec-10 5:07 
AnswerRe: A questing about software design methodology Pin
David Skelly8-Oct-10 2:09
David Skelly8-Oct-10 2:09 
QuestionHow can I create factory? Client can set data for methods which are not in defined in interface?(Design Problem) Pin
glitteringsound2-Oct-10 19:50
glitteringsound2-Oct-10 19:50 
Hello,

I am having little design problem: I have one factory which will create object of with one type or another type. But my client requirement is to give(feed) the data(via setter methods) from outside world to the concrete class of type-1 not for type-2.

If I place these setter methods in interface, those need to be implemented forcefully both of concrete classes. This is NOT my requirement. I want to feed 1 kind of data for 1st type(some setters) and want to give another kind of data for other type(probably different setters other than which's contained by previous type.)

e.g
class ISubjectExecutor
{
public:
virtual void ISUBJECTEXECUTOR_EXPORTS_API Execute()=0;
};

class COMExecutor: public ISubjectExecutor
{
public:
virtual void Execute()=0;
void setCLSID();
void setGuids();

};
class Win32Executor : public IWin32Executor
{
public:
virtual void Execute();
void setFilePath();

};
Now here I can't use pointer of ISubjectExecutor (*pSubjectExecutor) to call setter methods of Win32Executor or COMExecutor on my choice at any time after reciving pointer(ISubjectExecutor) from factory. Because those all setters never exist inside ISubjectExecutor interface, and you can't access any method which's never contained inside interface and exist in concrete implementation.

How to tackle this design problem to solve.?
Regards
Usman
AnswerRe: How can I create factory? Client can set data for methods which are not in defined in interface?(Design Problem) Pin
Sameerkumar Namdeo4-Oct-10 23:18
Sameerkumar Namdeo4-Oct-10 23:18 
QuestionGetting the right stuffing. Pin
Brian Bennett1-Oct-10 23:05
Brian Bennett1-Oct-10 23:05 
AnswerRe: Getting the right stuffing. Pin
Mycroft Holmes2-Oct-10 21:37
professionalMycroft Holmes2-Oct-10 21:37 
QuestionGetting or Setting Controls & Other hardcoded values from database Pin
meeram3952-Sep-10 19:43
meeram3952-Sep-10 19:43 
AnswerRe: Getting or Setting Controls & Other hardcoded values from database Pin
Eddy Vluggen9-Sep-10 0:36
professionalEddy Vluggen9-Sep-10 0:36 
AnswerRe: Getting or Setting Controls & Other hardcoded values from database Pin
senguptaamlan23-Sep-10 2:41
senguptaamlan23-Sep-10 2:41 
QuestionSearch and Replace Pin
mohit`1227-Aug-10 9:21
mohit`1227-Aug-10 9:21 
AnswerRe: Search and Replace Pin
Luc Pattyn27-Aug-10 15:23
sitebuilderLuc Pattyn27-Aug-10 15:23 
GeneralRe: Search and Replace Pin
mohit`122-Sep-10 2:55
mohit`122-Sep-10 2:55 
GeneralRe: Search and Replace Pin
Richard MacCutchan2-Sep-10 3:28
mveRichard MacCutchan2-Sep-10 3:28 
GeneralRe: Search and Replace Pin
Pete O'Hanlon2-Sep-10 3:41
mvePete O'Hanlon2-Sep-10 3:41 
QuestionBest UML Tool for Class Diagrams Pin
mohit`1225-Aug-10 7:21
mohit`1225-Aug-10 7:21 
AnswerRe: Best UML Tool for Class Diagrams Pin
Pete O'Hanlon25-Aug-10 9:05
mvePete O'Hanlon25-Aug-10 9:05 
AnswerRe: Best UML Tool for Class Diagrams Pin
syntaxed30-Aug-10 0:16
syntaxed30-Aug-10 0:16 
GeneralRe: Best UML Tool for Class Diagrams Pin
mohit`122-Sep-10 2:56
mohit`122-Sep-10 2:56 
GeneralRe: Best UML Tool for Class Diagrams Pin
Pete O'Hanlon2-Sep-10 3:40
mvePete O'Hanlon2-Sep-10 3:40 
Questionproject Pin
hninwuttyee23-Aug-10 23:51
hninwuttyee23-Aug-10 23:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.