[odb-users] value classes in views

Quentin Deldycke quentindeldycke at gmail.com
Thu Sep 18 09:59:01 EDT 2014


Hi,

I need to create views using sub-objects. For instance, like this:

// a value object
class B
{
   std::string test;
   std::string test2;
}

// My view
class A
{
  B  object1;
  B  object2;
}

Is this possible with odb? I need to keep the form of code for the end user
like such:

odb::result<A>::iterator it;

it->object1.test;

--
Deldycke Quentin


More information about the odb-users mailing list