| 1 |
////////////////////////////////////////////////////////////////////////////// |
| 2 |
////////////////////////////////////////////////////////////////////////////// |
| 3 |
// |
| 4 |
// copyright : (C) 2014 Eran Ifrah |
| 5 |
// file name : view.cpp |
| 6 |
// |
| 7 |
// ------------------------------------------------------------------------- |
| 8 |
// A |
| 9 |
// _____ _ _ _ _ |
| 10 |
// / __ \ | | | | (_) | |
| 11 |
// | / \/ ___ __| | ___| | _| |_ ___ |
| 12 |
// | | / _ \ / _ |/ _ \ | | | __/ _ ) |
| 13 |
// | \__/\ (_) | (_| | __/ |___| | || __/ |
| 14 |
// \____/\___/ \__,_|\___\_____/_|\__\___| |
| 15 |
// |
| 16 |
// F i l e |
| 17 |
// |
| 18 |
// This program is free software; you can redistribute it and/or modify |
| 19 |
// it under the terms of the GNU General Public License as published by |
| 20 |
// the Free Software Foundation; either version 2 of the License, or |
| 21 |
// (at your option) any later version. |
| 22 |
// |
| 23 |
////////////////////////////////////////////////////////////////////////////// |
| 24 |
////////////////////////////////////////////////////////////////////////////// |
| 25 |
|
| 26 |
#include "view.h" |
| 27 |
|
| 28 |
XS_IMPLEMENT_CLONABLE_CLASS(View,xsSerializable); |
| 29 |
|
| 30 |
View::View():xsSerializable() |
| 31 |
{ |
| 32 |
initSerializable(); |
| 33 |
} |
| 34 |
View::View(const View& obj):xsSerializable(obj) |
| 35 |
{ |
| 36 |
m_name = obj.m_name; |
| 37 |
m_parentName = obj.m_parentName; |
| 38 |
m_select = obj.m_select; |
| 39 |
initSerializable(); |
| 40 |
} |
| 41 |
|
| 42 |
View::View(IDbAdapter* dbAdapter,const wxString& name, const wxString& parentName, const wxString& select):xsSerializable() |
| 43 |
{ |
| 44 |
m_name = name; |
| 45 |
m_parentName = parentName; |
| 46 |
m_select = select; |
| 47 |
m_pDbAdapter = dbAdapter; |
| 48 |
initSerializable(); |
| 49 |
} |
| 50 |
View::~View() |
| 51 |
{ |
| 52 |
} |
| 53 |
|
| 54 |
|
| 55 |
|
| 56 |
void View::initSerializable() |
| 57 |
{ |
| 58 |
XS_SERIALIZE(m_name,wxT("m_name")); |
| 59 |
XS_SERIALIZE(m_parentName,wxT("m_parentName")); |
| 60 |
XS_SERIALIZE(m_select,wxT("m_select")); |
| 61 |
} |
| 62 |
|