Index: src/libchcore/TTaskBaseData.h =================================================================== diff -u -N -r6f8b891b60eb0f33199fd29db75d4d9f4a22c248 -ra4635addad389b9e117679437a3e1b64a739ea96 --- src/libchcore/TTaskBaseData.h (.../TTaskBaseData.h) (revision 6f8b891b60eb0f33199fd29db75d4d9f4a22c248) +++ src/libchcore/TTaskBaseData.h (.../TTaskBaseData.h) (revision a4635addad389b9e117679437a3e1b64a739ea96) @@ -1,84 +1,84 @@ -// ============================================================================ -// Copyright (C) 2001-2014 by Jozef Starosczyk -// ixen@copyhandler.com -// -// This program is free software; you can redistribute it and/or modify -// it under the terms of the GNU Library General Public License -// (version 2) as published by the Free Software Foundation; -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU Library General Public -// License along with this program; if not, write to the -// Free Software Foundation, Inc., -// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -// ============================================================================ -#ifndef __TTASKBASEDATA_H__ -#define __TTASKBASEDATA_H__ - -#include "libchcore.h" -#include "ISerializerRowData.h" -#include -#include "TSharedModificationTracker.h" -#include "ETaskCurrentState.h" - -namespace chcore -{ - class LIBCHCORE_API TTaskBaseData - { -/* - private: - TTaskBaseData(const TTaskBaseData&); - TTaskBaseData& operator=(const TTaskBaseData&); -*/ - - public: - TTaskBaseData(); - ~TTaskBaseData(); - - TString GetTaskName() const; - void SetTaskName(const TString& strTaskName); - - ETaskCurrentState GetCurrentState() const; - void SetCurrentState(ETaskCurrentState eCurrentState); - - TSmartPath GetLogPath() const; - void SetLogPath(const TSmartPath& pathLog); - - TSmartPath GetDestinationPath() const; - void SetDestinationPath(const TSmartPath& pathDst); - - void Store(const ISerializerContainerPtr& spContainer) const; - void Load(const ISerializerContainerPtr& spContainer); - - void InitColumns(const ISerializerContainerPtr& spContainer) const; - - private: - enum EModifications - { - eMod_Added, - eMod_TaskName, - eMod_CurrentState, - eMod_LogPath, - eMod_DstPath, - - eMod_Last - }; - -#pragma warning(push) -#pragma warning(disable: 4251) - typedef std::bitset ModBitSet; - mutable ModBitSet m_setChanges; - - TSharedModificationTracker m_strTaskName; - TSharedModificationTracker m_eCurrentState; // current state of processing this task represents - TSharedModificationTracker m_pathLog; - TSharedModificationTracker m_pathDestinationPath; -#pragma warning(pop) - }; -} - -#endif +// ============================================================================ +// Copyright (C) 2001-2014 by Jozef Starosczyk +// ixen@copyhandler.com +// +// This program is free software; you can redistribute it and/or modify +// it under the terms of the GNU Library General Public License +// (version 2) as published by the Free Software Foundation; +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU Library General Public +// License along with this program; if not, write to the +// Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +// ============================================================================ +#ifndef __TTASKBASEDATA_H__ +#define __TTASKBASEDATA_H__ + +#include "libchcore.h" +#include "ISerializerRowData.h" +#include +#include "TSharedModificationTracker.h" +#include "ETaskCurrentState.h" + +namespace chcore +{ + class LIBCHCORE_API TTaskBaseData + { +/* + private: + TTaskBaseData(const TTaskBaseData&); + TTaskBaseData& operator=(const TTaskBaseData&); +*/ + + public: + TTaskBaseData(); + ~TTaskBaseData(); + + TString GetTaskName() const; + void SetTaskName(const TString& strTaskName); + + ETaskCurrentState GetCurrentState() const; + void SetCurrentState(ETaskCurrentState eCurrentState); + + TSmartPath GetLogPath() const; + void SetLogPath(const TSmartPath& pathLog); + + TSmartPath GetDestinationPath() const; + void SetDestinationPath(const TSmartPath& pathDst); + + void Store(const ISerializerContainerPtr& spContainer) const; + void Load(const ISerializerContainerPtr& spContainer); + + void InitColumns(const ISerializerContainerPtr& spContainer) const; + + private: + enum EModifications + { + eMod_Added, + eMod_TaskName, + eMod_CurrentState, + eMod_LogPath, + eMod_DstPath, + + eMod_Last + }; + +#pragma warning(push) +#pragma warning(disable: 4251) + typedef std::bitset ModBitSet; + mutable ModBitSet m_setChanges; + + TSharedModificationTracker m_strTaskName; + TSharedModificationTracker m_eCurrentState; // current state of processing this task represents + TSharedModificationTracker m_pathLog; + TSharedModificationTracker m_pathDestinationPath; +#pragma warning(pop) + }; +} + +#endif