Changeset 200 in dev for trunk/jenga/include/smoothie
- Timestamp:
- Jul 2, 2007, 9:55:12 AM (17 years ago)
- Location:
- trunk/jenga/include/smoothie
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/jenga/include/smoothie/Class.h
r192 r200 51 51 ClassType classType; 52 52 53 bool isReady;54 55 53 // importされている名前空間 56 54 NamespaceScopesCollection importedNamespaces; … … 76 74 // 静的メソッド 77 75 Methods staticMethods; 76 77 78 // XMLシリアライズ用 79 private: 80 friend class boost::serialization::access; 81 template<class Archive> void serialize(Archive& ar, const unsigned int version) 82 { 83 ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP( Prototype ); 84 ar & BOOST_SERIALIZATION_NVP( classType ); 85 ar & BOOST_SERIALIZATION_NVP( importedNamespaces ); 86 //ar & BOOST_SERIALIZATION_NVP( interfaces ); 87 ar & BOOST_SERIALIZATION_NVP( blittableType ); 88 //ar & BOOST_SERIALIZATION_NVP( dynamicMembers ); 89 //ar & BOOST_SERIALIZATION_NVP( staticMembers ); 90 //ar & BOOST_SERIALIZATION_NVP( methods ); 91 ar & BOOST_SERIALIZATION_NVP( ConstructorMemberSubIndex ); 92 ar & BOOST_SERIALIZATION_NVP( DestructorMemberSubIndex ); 93 ar & BOOST_SERIALIZATION_NVP( vtblNum ); 94 //ar & BOOST_SERIALIZATION_NVP( staticMethods ); 95 } 96 97 98 bool isReady; 78 99 79 100 public: … … 264 285 //線形リスト用 265 286 CClass *pobj_NextClass; 266 267 // XMLシリアライズ用268 private:269 friend class boost::serialization::access;270 template<class Archive> void serialize(Archive& ar, const unsigned int version)271 {272 ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP( Prototype );273 ar & BOOST_SERIALIZATION_NVP( classType );274 }275 287 276 288 -
trunk/jenga/include/smoothie/Namespace.h
r194 r200 5 5 #include <boost/foreach.hpp> 6 6 7 #include <jenga/include/common/BoostXmlSupport.h> 8 7 9 using namespace std; 8 10 9 11 class NamespaceScopes : public vector<string> 10 12 { 13 // XMLシリアライズ用 14 private: 15 friend class boost::serialization::access; 16 template<class Archive> void serialize(Archive& ar, const unsigned int version) 17 { 18 ar & boost::serialization::make_nvp("vector_string", boost::serialization::base_object<vector<string>>(*this)); 19 } 20 21 11 22 public: 12 23 NamespaceScopes(){} … … 73 84 class NamespaceScopesCollection : public vector<NamespaceScopes> 74 85 { 86 // XMLシリアライズ用 87 private: 88 friend class boost::serialization::access; 89 template<class Archive> void serialize(Archive& ar, const unsigned int version) 90 { 91 ar & boost::serialization::make_nvp("vector_NamespaceScopes", boost::serialization::base_object<vector<NamespaceScopes>>(*this)); 92 } 93 75 94 public: 76 95 bool IsExist( const NamespaceScopes &namespaceScopes ) const -
trunk/jenga/include/smoothie/Prototype.h
r192 r200 25 25 private: 26 26 mutable bool isUsing; 27 28 29 // XMLシリアライズ用 30 private: 31 friend class boost::serialization::access; 32 template<class Archive> void serialize(Archive& ar, const unsigned int version) 33 { 34 ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP( Symbol ); 35 } 36 27 37 28 38 public: … … 64 74 isUsing = true; 65 75 } 66 67 // XMLシリアライズ用68 private:69 friend class boost::serialization::access;70 template<class Archive> void serialize(Archive& ar, const unsigned int version)71 {72 ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP( Symbol );73 }74 75 76 }; 76 77 -
trunk/jenga/include/smoothie/Symbol.h
r190 r200 14 14 NamespaceScopes namespaceScopes; 15 15 string name; 16 17 // XMLシリアライズ用 18 private: 19 friend class boost::serialization::access; 20 template<class Archive> void serialize(Archive& ar, const unsigned int version) 21 { 22 ar & BOOST_SERIALIZATION_NVP( namespaceScopes ); 23 ar & BOOST_SERIALIZATION_NVP( name ); 24 } 25 16 26 public: 17 27 Symbol( const NamespaceScopes &namespaceScopes, const string &name ) … … 34 44 return name; 35 45 } 36 37 private:38 friend class boost::serialization::access;39 template<class Archive> void serialize(Archive& ar, const unsigned int version)40 {41 //ar & BOOST_SERIALIZATION_NVP( namespaceScopes );42 ar & BOOST_SERIALIZATION_NVP( name );43 }44 46 }; -
trunk/jenga/include/smoothie/Type.h
r197 r200 6 6 #include <boost/foreach.hpp> 7 7 8 #include <jenga/include/common/BoostXmlSupport.h> 9 8 10 #include <windows.h> 9 10 11 #include "BasicFixed.h" 11 12 … … 18 19 const CClass *pClass; 19 20 }; 21 22 // XMLシリアライズ用 23 private: 24 friend class boost::serialization::access; 25 template<class Archive> void serialize(Archive& ar, const unsigned int version) 26 { 27 ar & BOOST_SERIALIZATION_NVP( basicType ); 28 if( HasMember() ) 29 { 30 ar & boost::serialization::make_nvp("pClass", const_cast<CClass *&>(pClass)); 31 } 32 else 33 { 34 ar & BOOST_SERIALIZATION_NVP( index ); 35 } 36 } 20 37 21 38 public:
Note:
See TracChangeset
for help on using the changeset viewer.