TA的每日心情 | 慵懒 2019-6-5 13:01 |
|---|
签到天数: 115 天 [LV.6]出窍
|
回复 老兵帅客 的帖子2 P @. i4 ]0 f8 ~8 L6 @: ?# u- g, P# f: H: u
$ a$ r: u: a, Q5 x' |0 B. \/ L X
在wikipedia上搜了一下reflection C++。
+ p. s- P, Z+ EQt/C++ M" j; T# o' I: V3 l
1 T& ~ V" ~* dQt framework extends C++ with its meta-language and provides reflection ability of member/method reference and query by name for Qt objects with QMetaObject class, which contains meta-information about the Qt objects. Objective-C is a reflective, object-oriented programming language that adds Smalltalk-style messaging to the C programming language. 2 x2 F7 f" R4 I9 q4 a
貌似并不能直接支持,但是可以实现类似效果。% C* |8 l1 A, h* o* l
c++ reflection
5 L3 G, _. X7 `- W0 w5 L( [3 ^" d$ ^+ Z |
|