ROSE
0.11.145.0
|
Class serializer using None Serialization.
This serializer generates code for boost::serialization.
Definition at line 10 of file NoneSerializer.h.
#include <Rosebud/NoneSerializer.h>
Public Types | |
using | Ptr = std::shared_ptr< NoneSerializer > |
Public Types inherited from Rosebud::Serializer | |
using | Ptr = SerializerPtr |
Shared-ownership pointer. More... | |
Public Member Functions | |
virtual std::string | name () const override |
Every serializer has a unique name. More... | |
virtual std::string | purpose () const override |
Single-line description for the serializer. More... | |
virtual bool | isSerializable (const Ast::ClassPtr &) const override |
Determines if a class should be serialized. More... | |
virtual void | generate (std::ostream &header, std::ostream &impl, const Ast::ClassPtr &, const Generator &) const override |
Generate code for the specified class. More... | |
Static Public Member Functions | |
static Ptr | instance () |
Static Public Member Functions inherited from Rosebud::Serializer | |
static void | registerSerializer (const Ptr &) |
Register a serializer for use later. More... | |
static const std::vector< Ptr > & | registeredSerializers () |
Return all registered serializers. More... | |
static Ptr | lookup (const std::string &) |
Return the registered serializer with the specified name. More... | |
|
overridevirtual |
Every serializer has a unique name.
Implements Rosebud::Serializer.
|
overridevirtual |
Single-line description for the serializer.
Implements Rosebud::Serializer.
|
overridevirtual |
Determines if a class should be serialized.
Returns true if this class should have serilization and deserialization functions.
Implements Rosebud::Serializer.
|
overridevirtual |
Generate code for the specified class.
The header
and impl
streams are output streams for the C++ header file and implementation file, respectively. The generator is from whence this serializer was called.
Implements Rosebud::Serializer.