Код: Выделить всё
enum class MyVersion {
V1 = 1,
V11 = 2,
V2 = 3
// ...
};
Код: Выделить всё
struct MyProperty {
int id;
string name;
MyVersion version;
// ...
};
struct MyPropertySet {
int id;
string name;
MyVersion version;
vector properties;
};
- (который дает мне все наборы свойств определенной версии)
Код: Выделить всё
std::vector getPropertySets(const MyVersion version); - (который дает мне все свойства данного набора свойств данной версии).
Код: Выделить всё
std::vector getProperties(const MyVersion version, const MyPropertySet& propertySet);
Подробнее здесь: https://stackoverflow.com/questions/797 ... t-database
Мобильная версия