| 1 |
////////////////////////////////////////////////////////////////////////////// |
| 2 |
////////////////////////////////////////////////////////////////////////////// |
| 3 |
// |
| 4 |
// copyright : (C) 2008 by Eran Ifrah |
| 5 |
// file name : setters_getters_data.h |
| 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 |
#ifndef SETTERS_GETTERS_DATA_H |
| 26 |
#define SETTERS_GETTERS_DATA_H |
| 27 |
|
| 28 |
#include "serialized_object.h" |
| 29 |
|
| 30 |
enum SettersGetters { |
| 31 |
SG_KEEP_UNDERSCORES, |
| 32 |
SG_LOWER_CASE_LETTER, |
| 33 |
SG_REMOVE_M_PREFIX |
| 34 |
}; |
| 35 |
|
| 36 |
class WXDLLIMPEXP_CL SettersGettersData : public SerializedObject |
| 37 |
{ |
| 38 |
size_t m_flags; |
| 39 |
public: |
| 40 |
SettersGettersData(); |
| 41 |
virtual ~SettersGettersData(); |
| 42 |
|
| 43 |
const size_t &GetFlags() const {return m_flags;} |
| 44 |
void SetFlags(const size_t &flags){m_flags = flags;} |
| 45 |
|
| 46 |
void Serialize(Archive &arch); |
| 47 |
void DeSerialize(Archive &arch); |
| 48 |
}; |
| 49 |
|
| 50 |
#endif // SETTERS_GETTERS_DATA_H |
| 51 |
|
| 52 |
|