Is factory method proper design for my problem?

Posted by metdos on Stack Overflow See other posts from Stack Overflow or by metdos
Published on 2010-04-26T07:26:08Z Indexed on 2010/04/26 7:33 UTC
Read the original article Hit count: 352

Hello Everyone, here is my problem and I'm considering to use factory method in C++, what are your opinions ?

There are a Base Class and a lot of Subclasses.

I need to transfer objects on network via TCP.

I will create objects in first side, and using this object I will create a byte array TCP message, and send it to other side.

On the other side I will decompose TCP message, I will create object and I will add this object to a polymorphic queue.

© Stack Overflow or respective owner

Related posts about c++

Related posts about factory-pattern