Comments (3)
Hi,
try example 2 https://github.com/tyt2y3/tinybind/blob/master/examples/2_svg.h
though polymorphism is about functionality, not about data. so it should work.
Edit, the definition of STRUCT_INHERIT(TYPE, ...)
has a va_args, so the following trick should work too:
STRUCT_INHERIT(C, public A, B)
{
INHERIT(A);
INHERIT(B);
};
from tinybind.
Hello Chris,
thanks for your reply.
Is there a way to utilize vectors of pointers as CHILD elements ?
Gretes, Semjon
Am 21.03.2016 um 17:10 schrieb Chris Tsang [email protected]:
Hi,
try example 2 https://github.com/tyt2y3/tinybind/blob/master/examples/2_svg.h https://github.com/tyt2y3/tinybind/blob/master/examples/2_svg.h
though polymorphism is about functionality, not about data. so it should work—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub #4 (comment)
Automedia Marketing und Medienservice
für den Kfz-Handel GmbH
Drususgasse 7-11, 50667 Köln
T +49 221 285 839 0
F +49 221 285 839 29
Amtsgericht Köln HRB 29570
Geschäftsführer: Wilhelm Ruppert
www.automedia.de
www.automedia360.com
http://www.facebook.com/Automedia.GmbH [image: Google+]
http://plus.google.com/b/110802155187587697673/dashboard/overview
from tinybind.
I am not sure what do you mean by that. Why would you use a pointer in an object for serialization.
You can theoretically write a custom binding function for that, e.g.
template <class P>
void TXB_attr_bind( TiXmlElement* xmle, bool from, P* attr_content, const char* attr_name)
where P is you pointer.
But you will need to think about circular reference or objects with too deep nesting
from tinybind.
Related Issues (3)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tinybind.