I can serialize an object if it's class definition has attributes.
So if I have an object whose class does not have attributes, do I serialize the attributes importedi in it's class definition?
For example; suppose I have the following class,
#ifndef BREAD_H
#define BREAD_H
#include "EGGS.h";
#include "FLOUR.h";
class BREAD
{
public:
BREAD();~BREAD();
//lame example
std::vector<string> selectIngredient(std::vector<FLOUR>grocery);
};
#endif
How would I go about serializing attributes defined in the FLOUR.h class if incase I have to?
Thanks in advance.