Home » Community » U++ community news and announcements » Jsonize and finalizing Value refactoring
Jsonize and finalizing Value refactoring [message #35609] |
Mon, 05 March 2012 20:45 |
|
mirek
Messages: 14038 Registered: November 2005
|
Ultimate Member |
|
|
I have added Jsonize framework - similar to Xmlize, but for JSON. As JSON has no attributes, it is a little bit more primitive than Xmlize. Reference example and documentation is yet to follow..
In related work, in order to add Jsonize support for Value, I have add a new class ValueType, which is intended as base class for any future client code Value compatible concrete types. It serves two purposes: First, it assigns a type number to type (much the same as what AssignValueTypeNo was doing), but it also defines default implementation of rich Value related methods like Serialize, GetHashValue etc... The concrete type is then free to override them to something real. This allows for concrete type to define only some of rich Value methods.
In order to maintain backwared compatibility, RichValueTypeNo is now basically defined as derived from ValueType. The only thing that some older code might require is made derivation from RichValueTypeNo public.
Of course, all this works only in SVO_VALUE mode. But (a word of warning) old Value is going to be removed this month and SVO_VALUE will be default...
|
|
|
|
Goto Forum:
Current Time: Fri Sep 20 05:19:42 CEST 2024
Total time taken to generate the page: 0.05635 seconds
|