C
C
CPPJunior2015-02-17 11:48:47
Qt
CPPJunior, 2015-02-17 11:48:47

How to properly organize the database of custom elements edited by the user?

Hello!
At work, I maintain software that draws some system of elements. For example, a user using an editor adds a pipe to the system and sets its parameters. Then he attaches a sensor or valve to it, and so on. It's all visualized. The downside is that the elements of the system are rigidly specified in the code, i.e. You can't add a new element without a programmer. I would like to get away from this. I see a solution by organizing a base of elements. Ideally, this base should contain elements that can be drawn in one picture (for example, a sensor). The database will be edited by a responsible person and distributed separately from the program. Please tell me if I am thinking correctly? Maybe there is another way out? Are there examples of such things? What nuances and pitfalls can be encountered? Thanks in advance!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DancingOnWater, 2015-02-17
@DancingOnWater

Factory + plugins - standard solution

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question