Plain data class members / Blob

Forum for posting problems using QxOrm library

Plain data class members / Blob

Postby Flaviu » Thu Feb 03, 2011 10:09 pm

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
Flaviu
 

Re: Plain data class members / Blob

Postby QxOrm admin » Fri Feb 04, 2011 8:03 am

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).
QxOrm admin
 


Return to QxOrm - Help

Who is online

Users browsing this forum: No registered users and 7 guests