Page 1 of 1

Plain data class members / Blob

PostPosted: Thu Feb 03, 2011 10:09 pm
by Flaviu
Hi,
Is there a way to store class members like plain array of data that don't have any relation? I'm thinking of BLOBs.
Example: class A { public: std::vector<int> data; };
Thanks

Re: Plain data class members / Blob

PostPosted: Fri Feb 04, 2011 8:03 am
by QxOrm admin
Hi,

To store BLOBs, you can use : QByteArray, QImage, QPicture, QPixmap, etc... (see ./QxOrm/include/QxSerialize/Qt/ directory).
You can also store 'std::vector<int>' if you want or other container (stl, boost, Qt, QxCollection) : by default, your data will be serialized into xml format in your database (see QX_STR_CVT_DEFAULT_ARCHIVE constant).