/[svn]/libgig/trunk/src/Serialization.h
ViewVC logotype

Diff of /libgig/trunk/src/Serialization.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3168 by schoenebeck, Tue May 9 19:12:32 2017 UTC revision 3169 by schoenebeck, Wed May 10 21:17:10 2017 UTC
# Line 210  namespace Serialization { Line 210  namespace Serialization {
210      static Object _popObjectBlob(const char*& p, const char* end);      static Object _popObjectBlob(const char*& p, const char* end);
211      static void _popPrimitiveValue(const char*& p, const char* end, Object& obj);      static void _popPrimitiveValue(const char*& p, const char* end, Object& obj);
212      static String _primitiveObjectValueToString(const Object& obj);      static String _primitiveObjectValueToString(const Object& obj);
213        //  |
214        template<typename T>
215        static T _primitiveObjectValueToNumber(const Object& obj);
216    
217      /** @brief Abstract reflection of a native C++ data type.      /** @brief Abstract reflection of a native C++ data type.
218       *       *
# Line 414  namespace Serialization { Line 417  namespace Serialization {
417          friend Object _popObjectBlob(const char*& p, const char* end);          friend Object _popObjectBlob(const char*& p, const char* end);
418          friend void _popPrimitiveValue(const char*& p, const char* end, Object& obj);          friend void _popPrimitiveValue(const char*& p, const char* end, Object& obj);
419          friend String _primitiveObjectValueToString(const Object& obj);          friend String _primitiveObjectValueToString(const Object& obj);
420    
421            template<typename T>
422            friend T _primitiveObjectValueToNumber(const Object& obj);
423    
424          friend class Archive;          friend class Archive;
425      };      };
426    
# Line 613  namespace Serialization { Line 620  namespace Serialization {
620          void setBoolValue(Object& object, bool value);          void setBoolValue(Object& object, bool value);
621          void setEnumValue(Object& object, uint64_t value);          void setEnumValue(Object& object, uint64_t value);
622          String valueAsString(const Object& object);          String valueAsString(const Object& object);
623            int64_t valueAsInt(const Object& object);
624            double valueAsReal(const Object& object);
625            bool valueAsBool(const Object& object);
626          String name() const;          String name() const;
627          void setName(String name);          void setName(String name);
628          String comment() const;          String comment() const;

Legend:
Removed from v.3168  
changed lines
  Added in v.3169

  ViewVC Help
Powered by ViewVC