Index: src/libchcore/TPath.h =================================================================== diff -u -N -r44307d01df646fd0320eff428856b0676761d34d -rb684bec49aaaea4b89ab2e599497f4085d8698a3 --- src/libchcore/TPath.h (.../TPath.h) (revision 44307d01df646fd0320eff428856b0676761d34d) +++ src/libchcore/TPath.h (.../TPath.h) (revision b684bec49aaaea4b89ab2e599497f4085d8698a3) @@ -21,6 +21,7 @@ #include #include "libchcore.h" +#include "TConfig.h" BEGIN_CHCORE_NAMESPACE @@ -41,7 +42,7 @@ static void Delete(TPath* pPath); protected: - tstring_t m_strPath; + std::wstring m_strPath; long m_lRefCount; friend class TSmartPath; @@ -145,6 +146,9 @@ } } + void StoreInConfig(chcore::TConfig& rConfig, PCTSTR pszPropName) const; + bool ReadFromConfig(const chcore::TConfig& rConfig, PCTSTR pszPropName); + BOOST_SERIALIZATION_SPLIT_MEMBER(); protected: @@ -181,6 +185,9 @@ size_t GetCount() const; bool IsEmpty() const; + void StoreInConfig(chcore::TConfig& rConfig, PCTSTR pszPropName) const; + bool ReadFromConfig(const chcore::TConfig& rConfig, PCTSTR pszPropName); + private: #pragma warning(push) #pragma warning(disable: 4251) @@ -190,4 +197,7 @@ END_CHCORE_NAMESPACE +CONFIG_MEMBER_SERIALIZATION(TSmartPath) +CONFIG_MEMBER_SERIALIZATION(TPathContainer) + #endif