| 1 | /*************************************************************************** |
| 2 | CMemberInfo.h - description |
| 3 | ------------------- |
| 4 | begin : January 1st, 2009 |
| 5 | copyright : (C) 2009 by Duong Khang NGUYEN |
| 6 | email : neoneurone @ gmail com |
| 7 | |
| 8 | $Id: CMemberInfo.h 449 2010-05-20 18:46:59Z neoneurone $ |
| 9 | ***************************************************************************/ |
| 10 | |
| 11 | /*************************************************************************** |
| 12 | * * |
| 13 | * This program is free software; you can redistribute it and/or modify * |
| 14 | * it under the terms of the GNU General Public License as published by * |
| 15 | * the Free Software Foundation; either version 2 of the License, or * |
| 16 | * any later version. * |
| 17 | * * |
| 18 | ***************************************************************************/ |
| 19 | |
| 20 | #ifndef _SPF_SYSTEM_REFLECTION_CMEMBERINFO_H_ |
| 21 | #define _SPF_SYSTEM_REFLECTION_CMEMBERINFO_H_ 1 |
| 22 | |
| 23 | // Framework headers |
| 24 | #include "System/CObject.h" // System::Object class |
| 25 | #include "System/CString.h" // System::String class |
| 26 | |
| 27 | SPF_NAMESPACE_NESTED_BEGIN(System, Reflection) |
| 28 | |
| 29 | |
| 30 | class MemberInfo : public Object |
| 31 | { |
| 32 | public: |
| 33 | MemberInfo(); |
| 34 | MemberInfo(const NullValue& null); |
| 35 | MemberInfo(const String& name); |
| 36 | virtual ~MemberInfo(); |
| 37 | |
| 38 | /** |
| 39 | Gets the name of the current member. |
| 40 | \return A System::String containing the name of this member. |
| 41 | */ |
| 42 | const String& GetName() const; |
| 43 | |
| 44 | virtual String ToString() const; |
| 45 | |
| 46 | protected: |
| 47 | String msName; |
| 48 | }; // class System::Reflection::MemberInfo |
| 49 | |
| 50 | SPF_NAMESPACE_NESTED_END |
| 51 | |
| 52 | #endif |