[odb-users] Pimpl + Relations
cetoni GmbH - Uwe Kindler
uwe.kindler at cetoni.de
Tue Oct 2 07:25:20 EDT 2012
Hi,
I implemented two database classes following the pimpl idiom and the ODB
pimpl example using virtual data members. You can see one class here:
http://codeviewer.org/view/code:2a32
Now I need to implement a To-One relation for this CLensMeasurement
Class. At the moment, the CLensMeasurement class has a data member
m_Lens (shared pointer) to create this relation. I would like to know,
if it is possible to move this member into the private implemantation
class LensMeasurmentPrivate and to use virtual member functions instead
of the real data member.
I already tried this (see line 74 of code snippet). But this did not
work - ODB compiler tells me: invalid name in db pragma member. So my
question is - ist ist possible to build releations with virtual data
members or does a relations always need a real data member.
Thank you and kind regards,
Uwe
More information about the odb-users
mailing list