Index: src/libchengine/TSizeFormatter.cpp =================================================================== diff -u -r0d5b67ee96b435d63f7bf075dc8e28603793b187 -r1019bc9df4e044491b7102c37c8cac33cf56fb4a --- src/libchengine/TSizeFormatter.cpp (.../TSizeFormatter.cpp) (revision 0d5b67ee96b435d63f7bf075dc8e28603793b187) +++ src/libchengine/TSizeFormatter.cpp (.../TSizeFormatter.cpp) (revision 1019bc9df4e044491b7102c37c8cac33cf56fb4a) @@ -94,7 +94,7 @@ bool TSizeFormatter::ReadFromConfig(chengine::TConfig& rConfig, PCTSTR pszNodeName) { std::wstring strBuffer; - chengine::TString strValue; + string::TString strValue; if(!GetConfigValue(rConfig, Concat(strBuffer, pszNodeName, _T("Bytes")), strValue)) return false; Index: src/libchengine/TSpeedTracker.cpp =================================================================== diff -u -r0d5b67ee96b435d63f7bf075dc8e28603793b187 -r1019bc9df4e044491b7102c37c8cac33cf56fb4a --- src/libchengine/TSpeedTracker.cpp (.../TSpeedTracker.cpp) (revision 0d5b67ee96b435d63f7bf075dc8e28603793b187) +++ src/libchengine/TSpeedTracker.cpp (.../TSpeedTracker.cpp) (revision 1019bc9df4e044491b7102c37c8cac33cf56fb4a) @@ -2,12 +2,15 @@ #include "TSpeedTracker.h" #include #include -#include "ErrorCodes.h" -#include "TCoreException.h" -#include "MathFunctions.h" +#include "../libchcore/ErrorCodes.h" #include -#include "TStringArray.h" +#include "../libchcore/TCoreException.h" +#include "../libchcore/MathFunctions.h" +#include "../libstring/TStringArray.h" +using namespace chcore; +using namespace string; + namespace chengine { TSpeedTracker::TSpeedTracker(unsigned long long ullTrackTime, unsigned long long ullSampleTime) : Index: src/libchengine/TSpeedTracker.h =================================================================== diff -u -r0d5b67ee96b435d63f7bf075dc8e28603793b187 -r1019bc9df4e044491b7102c37c8cac33cf56fb4a --- src/libchengine/TSpeedTracker.h (.../TSpeedTracker.h) (revision 0d5b67ee96b435d63f7bf075dc8e28603793b187) +++ src/libchengine/TSpeedTracker.h (.../TSpeedTracker.h) (revision 1019bc9df4e044491b7102c37c8cac33cf56fb4a) @@ -1,7 +1,7 @@ #ifndef __TSPEEDTRACKER_H__ #define __TSPEEDTRACKER_H__ -#include "TString.h" +#include "../libstring/TString.h" namespace chengine { @@ -19,8 +19,8 @@ // retrieves speed per second double GetSpeed() const; - TString ToString() const; - void FromString(const TString& strData); + string::TString ToString() const; + void FromString(const string::TString& strData); private: static double NormalizeValueByTime(unsigned long long ullValue, unsigned long long ullTime, unsigned long long ullNormalizeTime = 1000); Index: src/libchengine/TaskID.h =================================================================== diff -u -r0d5b67ee96b435d63f7bf075dc8e28603793b187 -r1019bc9df4e044491b7102c37c8cac33cf56fb4a --- src/libchengine/TaskID.h (.../TaskID.h) (revision 0d5b67ee96b435d63f7bf075dc8e28603793b187) +++ src/libchengine/TaskID.h (.../TaskID.h) (revision 1019bc9df4e044491b7102c37c8cac33cf56fb4a) @@ -19,11 +19,11 @@ #ifndef __TASKID_H__ #define __TASKID_H__ -#include "SerializerDataTypes.h" +#include "../libserializer/SerializerDataTypes.h" namespace chengine { - typedef object_id_t taskid_t; + typedef serializer::object_id_t taskid_t; enum ENoTaskID { NoTaskID = 0 }; } Index: src/libchengine/Tests/TestsTConfig.cpp =================================================================== diff -u -r0d5b67ee96b435d63f7bf075dc8e28603793b187 -r1019bc9df4e044491b7102c37c8cac33cf56fb4a --- src/libchengine/Tests/TestsTConfig.cpp (.../TestsTConfig.cpp) (revision 0d5b67ee96b435d63f7bf075dc8e28603793b187) +++ src/libchengine/Tests/TestsTConfig.cpp (.../TestsTConfig.cpp) (revision 1019bc9df4e044491b7102c37c8cac33cf56fb4a) @@ -6,10 +6,12 @@ #include #include #include "../TConfig.h" -#include "../TStringArray.h" #include "../TConfigArray.h" +#include "../../libstring/TStringArray.h" using namespace chengine; +using namespace string; +using namespace chcore; namespace { Index: src/libchengine/Tests/TestsTDestinationPathProvider.cpp =================================================================== diff -u -r0d5b67ee96b435d63f7bf075dc8e28603793b187 -r1019bc9df4e044491b7102c37c8cac33cf56fb4a --- src/libchengine/Tests/TestsTDestinationPathProvider.cpp (.../TestsTDestinationPathProvider.cpp) (revision 0d5b67ee96b435d63f7bf075dc8e28603793b187) +++ src/libchengine/Tests/TestsTDestinationPathProvider.cpp (.../TestsTDestinationPathProvider.cpp) (revision 1019bc9df4e044491b7102c37c8cac33cf56fb4a) @@ -7,6 +7,8 @@ using namespace testing; using namespace chengine; +using namespace string; +using namespace chcore; class IFilesystemMock : public IFilesystem { Fisheye: Tag 1019bc9df4e044491b7102c37c8cac33cf56fb4a refers to a dead (removed) revision in file `src/libchengine/Tests/TestsTModificationTracker.cpp'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 1019bc9df4e044491b7102c37c8cac33cf56fb4a refers to a dead (removed) revision in file `src/libchengine/Tests/TestsTSQLiteDatabase.cpp'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 1019bc9df4e044491b7102c37c8cac33cf56fb4a refers to a dead (removed) revision in file `src/libchengine/Tests/TestsTSQLiteStatement.cpp'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 1019bc9df4e044491b7102c37c8cac33cf56fb4a refers to a dead (removed) revision in file `src/libchengine/Tests/TestsTSharedModificationTracker.cpp'. Fisheye: No comparison available. Pass `N' to diff? Index: src/libchengine/Tests/TestsTSpeedTracker.cpp =================================================================== diff -u -r0d5b67ee96b435d63f7bf075dc8e28603793b187 -r1019bc9df4e044491b7102c37c8cac33cf56fb4a --- src/libchengine/Tests/TestsTSpeedTracker.cpp (.../TestsTSpeedTracker.cpp) (revision 0d5b67ee96b435d63f7bf075dc8e28603793b187) +++ src/libchengine/Tests/TestsTSpeedTracker.cpp (.../TestsTSpeedTracker.cpp) (revision 1019bc9df4e044491b7102c37c8cac33cf56fb4a) @@ -2,7 +2,7 @@ #include "gtest/gtest.h" #include "gmock/gmock.h" #include "../TSpeedTracker.h" -#include "../TCoreException.h" +#include "../../libchcore/TCoreException.h" using namespace chengine; @@ -88,7 +88,7 @@ TSpeedTracker tTracker(1000, 100); // track last second with 100ms samples tTracker.AddSample(0, 0); // start tTracker.AddSample(8000, 110); - EXPECT_THROW(tTracker.AddSample(4000, 40), TCoreException); + EXPECT_THROW(tTracker.AddSample(4000, 40), chcore::TCoreException); } TEST(TSpeedTrackerTests, MultipleSamplesCornerCase_VeryLargeInterval) @@ -160,9 +160,9 @@ TEST(TSpeedTrackerTests, ConstructionWithBadParams) { // zero length sample is not allowed - EXPECT_THROW(TSpeedTracker tTracker(5000, 0), TCoreException); + EXPECT_THROW(TSpeedTracker tTracker(5000, 0), chcore::TCoreException); // tracking time less than sample time is not allowed - EXPECT_THROW(TSpeedTracker tTracker(0, 1000), TCoreException); + EXPECT_THROW(TSpeedTracker tTracker(0, 1000), chcore::TCoreException); } TEST(TSpeedTrackerTests, MultipleVeryShortSamplesWithZeroIntervalData_CornerCase) Index: src/libchengine/libchengine.vcxproj.filters =================================================================== diff -u -r0d5b67ee96b435d63f7bf075dc8e28603793b187 -r1019bc9df4e044491b7102c37c8cac33cf56fb4a --- src/libchengine/libchengine.vcxproj.filters (.../libchengine.vcxproj.filters) (revision 0d5b67ee96b435d63f7bf075dc8e28603793b187) +++ src/libchengine/libchengine.vcxproj.filters (.../libchengine.vcxproj.filters) (revision 1019bc9df4e044491b7102c37c8cac33cf56fb4a) @@ -27,15 +27,6 @@ {1fddd996-c723-4b09-9c98-868df98fe204} - - {2a642b1a-83b2-4643-ac85-d040e8904d4d} - - - {3ce71f46-ef32-4c71-9ac0-bcb36d6b6e99} - - - {0b6550bf-a20b-4f12-9469-bd3e3bfa40fa} - {e6da867d-b0bd-42d5-a0c8-43542984582f} @@ -45,18 +36,12 @@ {0f10fd6b-7813-419a-a276-cedaa42bc7bc} - - {d920c603-b44c-47ce-89c3-ead84fc29116} - {b7eef53f-fb70-4f50-aa6d-0a699bb20f25} {28670d3c-b5d8-4acb-91aa-c886efae641c} - - {9d121063-367c-4424-8009-12b3635e0fed} - {30d60be9-a936-4191-a66d-64e127f3d258} @@ -66,9 +51,6 @@ {3de9b5f5-44fa-4e4b-9a63-f93d940d537a} - - {a77c6575-b7b7-4683-9295-d5173da8c76b} - {b5e932b3-5a5a-465b-8ade-3354c81e1996} @@ -161,9 +143,6 @@ Source Files\Task Manager - - Source Files\Tools - Source Files\Tools @@ -185,96 +164,24 @@ Source Files\Library files - - Source Files\Tools - Source Files\Tools Source Files\Tools - - Source Files\Tools - - - Source Files\Tools - - - Source Files\Tools - - - Source Files\Tools - - - Source Files\Tools - Source Files\Tools Source Files\Tools - - Source Files\Tools - Source Files\Feedback Source Files\Feedback - - Source Files\Serialization\SQLite\SQLite Schemas - - - Source Files\Serialization\SQLite\SQLite Schemas - - - Source Files\Serialization\SQLite\SQLite Schemas - - - Source Files\Serialization\SQLite - - - Source Files\Serialization\SQLite - - - Source Files\Serialization\SQLite - - - Source Files\Serialization\SQLite - - - Source Files\Serialization\SQLite - - - Source Files\Serialization\SQLite - - - Source Files\Serialization\SQLite - - - Source Files\Serialization - - - Source Files\Serialization - - - Source Files\Serialization - - - Source Files\Serialization - - - Source Files\Serialization - - - Source Files\Serialization - - - Source Files\Serialization - Source Files\SubTasks @@ -299,27 +206,9 @@ Source Files\Tools\SQLite - - Source Files\Tools - - - Source Files\Tools - - - Source Files\Tools - - - Source Files\Tools - Source Files\Tools - - Source Files\Tools - - - Source Files\Tools - Source Files\Tools\Config @@ -335,21 +224,9 @@ Source Files\Tools\Config - - Source Files\Tools\ModificationTrackers - - - Source Files\Tools\ModificationTrackers - - - Source Files\Serialization - Source Files\Task - - Source Files\Tools - Source Files\Tools @@ -374,15 +251,6 @@ Source Files\Feedback - - Source Files\Serialization\Fake - - - Source Files\Tools - - - Source Files\Tools - Source Files\Task Config @@ -395,12 +263,6 @@ Source Files\Feedback - - Source Files\Tools - - - Source Files\Tools - Source Files\Filesystems @@ -425,9 +287,6 @@ Source Files\Filesystems\Local - - Source Files\Tools - Source Files\Tools @@ -437,15 +296,6 @@ Source Files\Tools - - Source Files\Tools\Exceptions - - - Source Files\Tools\Exceptions - - - Source Files\Tools\Exceptions - Source Files\Filesystems\Exceptions @@ -461,9 +311,6 @@ Source Files\Library files - - Source Files\Tools - Tests @@ -497,12 +344,6 @@ Source Files\Tools - - Source Files\Tools - - - Source Files\Tools - Source Files\Shared @@ -620,87 +461,18 @@ Source Files\Tools - - Source Files\Tools - - - Source Files\Tools - - - Source Files\Tools - - - Source Files\Tools - - - Source Files\Tools - Source Files\Tools Source Files\Tools - - Source Files\Tools - Source Files\Feedback Source Files\Feedback - - Source Files\Serialization\SQLite\SQLite Schemas - - - Source Files\Serialization\SQLite\SQLite Schemas - - - Source Files\Serialization\SQLite\SQLite Schemas - - - Source Files\Serialization\SQLite - - - Source Files\Serialization\SQLite - - - Source Files\Serialization\SQLite - - - Source Files\Serialization\SQLite - - - Source Files\Serialization\SQLite - - - Source Files\Serialization\SQLite - - - Source Files\Serialization\SQLite - - - Source Files\Serialization - - - Source Files\Serialization - - - Source Files\Serialization - - - Source Files\Serialization - - - Source Files\Serialization - - - Source Files\Serialization - - - Source Files\Serialization - Source Files\SubTasks @@ -722,24 +494,9 @@ Source Files\Tools\SQLite - - Source Files\Tools - - - Source Files\Tools - - - Source Files\Tools - Source Files\Tools - - Source Files\Tools - - - Source Files\Tools - Source Files\Tools\Config @@ -755,36 +512,12 @@ Source Files\Tools\Config - - Source Files\Serialization - Source Files\Task - - Source Files\Tools - - - Tests - - - Tests - Tests - - Tests - - - Tests - - - Tests - - - Tests - Tests @@ -812,39 +545,15 @@ Source Files\Feedback - - Source Files\Serialization\Fake - - - Source Files\Tools - Source Files\Task Config Source Files\Task Config - - Tests - - - Tests - - - Source Files\Tools - - - Source Files\Tools - - - Tests - Tests - - Tests - Source Files\Filesystems @@ -863,15 +572,6 @@ Source Files\Filesystems\Local - - Source Files\Tools\Exceptions - - - Source Files\Tools\Exceptions - - - Source Files\Tools\Exceptions - Source Files\Filesystems\Exceptions @@ -947,12 +647,6 @@ Source Files\Tools - - Source Files\Tools - - - Source Files\Tools - Source Files\Filesystems\OverlappedIO\Feedback Wrappers Index: src/libstring/Tests/TestsTString.cpp =================================================================== diff -u -r0d5b67ee96b435d63f7bf075dc8e28603793b187 -r1019bc9df4e044491b7102c37c8cac33cf56fb4a --- src/libstring/Tests/TestsTString.cpp (.../TestsTString.cpp) (revision 0d5b67ee96b435d63f7bf075dc8e28603793b187) +++ src/libstring/Tests/TestsTString.cpp (.../TestsTString.cpp) (revision 1019bc9df4e044491b7102c37c8cac33cf56fb4a) @@ -4,7 +4,6 @@ #include "../TString.h" #include "../TStringException.h" #include "../TStringArray.h" -#include "../TCoreException.h" using namespace string; @@ -426,7 +425,7 @@ EXPECT_EQ(arrSplitted.GetAt(6), _T("")); EXPECT_EQ(arrSplitted.GetAt(7), _T("")); EXPECT_EQ(arrSplitted.GetAt(8), _T("")); - EXPECT_THROW(arrSplitted.GetAt(9), TCoreException); + EXPECT_THROW(arrSplitted.GetAt(9), TStringException); } TEST(TStringTests, Split_NormalStringMultipleSeparators) @@ -443,7 +442,7 @@ EXPECT_EQ(arrSplitted.GetAt(6), _T("")); EXPECT_EQ(arrSplitted.GetAt(7), _T("")); EXPECT_EQ(arrSplitted.GetAt(8), _T("")); - EXPECT_THROW(arrSplitted.GetAt(9), TCoreException); + EXPECT_THROW(arrSplitted.GetAt(9), TStringException); } TEST(TStringTests, CompareCaseSensitive_WithPtrToString)