Index: src/libchcore/TPath.cpp =================================================================== diff -u -r293e52b38d46653068006262172018a0f0d0a31c -rb1e03eb232a784d6e2d40f67cbbbb33be0972228 --- src/libchcore/TPath.cpp (.../TPath.cpp) (revision 293e52b38d46653068006262172018a0f0d0a31c) +++ src/libchcore/TPath.cpp (.../TPath.cpp) (revision b1e03eb232a784d6e2d40f67cbbbb33be0972228) @@ -26,11 +26,10 @@ #pragma warning(pop) #include "../libicpf/exception.h" #include -#include "TBinarySerializer.h" -#include "SerializationHelpers.h" #include "TCoreException.h" #include "ErrorCodes.h" #include "TPathContainer.h" +#include "TStringArray.h" BEGIN_CHCORE_NAMESPACE @@ -1072,56 +1071,7 @@ return m_pPath->m_strPath.GetLength(); } -void TSmartPath::Serialize(TReadBinarySerializer& rSerializer) -{ - PrepareToWrite(); - Serializers::Serialize(rSerializer, m_pPath->m_strPath); -} - -void TSmartPath::Serialize(TWriteBinarySerializer& rSerializer) const -{ - if(m_pPath) - Serializers::Serialize(rSerializer, m_pPath->m_strPath); - else - Serializers::Serialize(rSerializer, TString()); -} - // ============================================================================ -/// chcore::TSmartPath::StoreInConfig -/// @date 2011/04/05 -/// -/// @brief Stores the path in configuration file. -/// @param[in] rConfig - configuration object to store information in. -/// @param[in] pszPropName - property name under which to store the path. -// ============================================================================ -void TSmartPath::StoreInConfig(TConfig& rConfig, PCTSTR pszPropName) const -{ - rConfig.SetValue(pszPropName, m_pPath ? m_pPath->m_strPath : TString()); -} - -// ============================================================================ -/// chcore::TSmartPath::ReadFromConfig -/// @date 2011/04/05 -/// -/// @brief Reads a path from configuration file. -/// @param[in] rConfig - configuration object to read path from. -/// @param[in] pszPropName - property name from under which to read the path. -/// @return True if path properly read, false otherwise. -// ============================================================================ -bool TSmartPath::ReadFromConfig(const TConfig& rConfig, PCTSTR pszPropName) -{ - TString wstrPath; - if(rConfig.GetValue(pszPropName, wstrPath)) - { - PrepareToWrite(); - m_pPath->m_strPath = wstrPath; - return true; - } - else - return false; -} - -// ============================================================================ /// TSmartPath::AppendIfNotExists /// @date 2009/11/29 ///