473,385 Members | 1,474 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

C++ Abstract Factory Implementation

Hello
I am hoping someone can give me very needed help. I am wanting some C+
+ code for 'C++ Abstract Factory'. I need code to be free. I am been
learning Design patterns.
I found some code on web but dont know which is one is ok.

http://programmerjoe.com/2007/03/18/...-pattern-in-c/
http://www.codeproject.com/KB/archit...gnPattern.aspx
Loki :in text book
http://sourceforge.net/projects/papafactory
http://sourceforge.net/projects/austria/

My colleague said I should look at boost library or use a standard
'factory' in C++. but I cannot find it.
I have read text book on Design Patterns and understand 'Abstract
Factory'.

Much thanks in adnace for help

Suresh

Jul 8 '08 #1
3 4569
su********@ymail.com wrote:
I am hoping someone can give me very needed help. I am wanting some C+
+ code for 'C++ Abstract Factory'. I need code to be free. I am been
learning Design patterns.
There is sample code in the book, why don't you use that?
I found some code on web but dont know which is one is ok.

http://programmerjoe.com/2007/03/18/...-pattern-in-c/
http://www.codeproject.com/KB/archit...gnPattern.aspx
Loki :in text book
also at:
http://loki-lib.sourceforge.net/
http://sourceforge.net/projects/papafactory
http://sourceforge.net/projects/austria/
It depends on the situation.
My colleague said I should look at boost library or use a standard
'factory' in C++. but I cannot find it.
That's because there isn't one.
Jul 9 '08 #2

<su********@ymail.coma écrit dans le message de news:
80**********************************...oglegroups.com...
Hello
I am hoping someone can give me very needed help. I am wanting some C+
+ code for 'C++ Abstract Factory'. I need code to be free. I am been
learning Design patterns.
I found some code on web but dont know which is one is ok.

http://programmerjoe.com/2007/03/18/...-pattern-in-c/
http://www.codeproject.com/KB/archit...gnPattern.aspx
Loki :in text book
http://sourceforge.net/projects/papafactory
http://sourceforge.net/projects/austria/

My colleague said I should look at boost library or use a standard
'factory' in C++. but I cannot find it.
I have read text book on Design Patterns and understand 'Abstract
Factory'.

Much thanks in adnace for help

Suresh
Loki has one.
If you are learning desing pattern, you should read Modern C++ Desing by
Andrei Alexandrecu.

http://loki-lib.sourceforge.net/

---------------------

Eric Pruneau
Jul 9 '08 #3
su********@ymail.com wrote:
....
http://sourceforge.net/projects/austria/
yes - Austria has a generic factory system. It's quite robust.

Afact, there is no "standard" library factory system. Austria is using
standard C++ so I suppose you can say it's "standard".

The unit tests in Austria C++ give you a number of different ways of
using the factory system.

The Austria C++ unit test framework also uses the factory framework as a
way of registering unit tests.

G
Jul 9 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Sebastien Degardin | last post by:
Hello, I need to use a Factory pattern to create services class. i have an interface --> MyService i can have an abstract class --> MyAbstractService i have several concrete class for this...
17
by: Medi Montaseri | last post by:
Hi, Given a collection of similar but not exact entities (or products) Toyota, Ford, Buick, etc; I am contemplating using the Abstraction pattern to provide a common interface to these products....
33
by: Chris Capel | last post by:
What is the rationale behind the decision not to allow abstract static class members? It doesn't seem like it's a logically contradictory concept, or that the implementation would be difficult or...
4
by: Rachel Devons | last post by:
All, I'm struggling with an OOP concept. Let me try to define what I'm wanting by using some classic examples. Let's say that I have classes called Square & Circle that derive from class...
3
by: Christer | last post by:
Hi all! We're creating an administration for a web application. This includes severeal aspx pages. Our key entity in the web application is "Profile", which can have a certain type. Based on...
0
by: mailforpr | last post by:
Hi. Let me introduce an iterator to you, the so-called "Abstract Iterator" I developed the other day. I actually have no idea if there's another "Abstract Iterator" out there, as I have never...
6
by: Nindi | last post by:
5 Files Singleton.h The Singleton Factory.h The factory creating new objects. The Base class of the hierachy stores a typelist identifying the signature of the constructors to be called...
2
by: Duy Lam | last post by:
Hi everyone, Sorry, I don't know what group to post this problem, I think may be this group is suitable. I'm styduing DAO (Data Access Object) pattern in this link...
1
by: suresh_rai | last post by:
Hello I am hoping someone can give me very needed help. I am wanting some C + + code for 'C++ Abstract Factory'. I need code to be free. I am been learning Design patterns. I found some code on...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.