Replies: 4 comments
-
Can be done, yes. Look at JSON::Object or Dynamic::Struct, it would be something similar. Obviously, there's some "wrapping" and many idle member functions (not applicable data types, but must be provided) with Dynamic::Var but, given everything, it performs quite well, especially if you know upfront the type inside and use |
Beta Was this translation helpful? Give feedback.
-
I had read the code ,but it's a little difficult to me , so can someone make a sample for me ? |
Beta Was this translation helpful? Give feedback.
-
Could this error be ok? |
Beta Was this translation helpful? Give feedback.
-
This issue is stale because it has been open for 365 days with no activity. |
Beta Was this translation helpful? Give feedback.
-
Expected behavior
I Have a class named CDemo , it contains some data members , and i got a json string to represent a CDemo object , could i use CDemo o = v.convert(); if so ,it will be much easier for use , so
i dont need to write a lot of getValue to extract the value to the CDemo object.
i read the source code , as if this can be done for suppling a VarHolderImpl
template <>
class VarHolderImpl : public VarHolder
{
...
};
Actual behavior
I want to confirm is that can be done.
Steps to reproduce the problem
(please make this a SSCCE, if applicable and reasonable)
POCO version
1.6.1
Compiler and version
vs2013
Operating system and version
win7 64bit sp1
Other relevant information
Beta Was this translation helpful? Give feedback.
All reactions