3 ms·
ROOT does this with its own preprocessor and custom comment decorators. like: class mydata { /* simple type */ int n;
by cozzyd 12y ago
ROOT does this with its own preprocessor and custom comment decorators. like:
class mydata
{
/* simple type */
int n;
/* the following array is of length n */
double * v; //[n]
/* don't serialize the following */
int reference_count; //!
ClassDef(mydata,1) ; // this macro does some magic, 1 is the version number etc.
};
- stinos 12y agoDidn't know that. But after seeing this: I vastly prefer a streams based orientation then. No magic, no comments.