%{ #include "Model/DRunRange.h" using namespace ccdb; %} class DRunRange { %rename(_GetId) GetId() const; %rename(_SetId) SetId(int); %rename(_GetMax) GetMax() const; %rename(_SetMax) SetMax(int); %rename(_GetMin) GetMin() const; %rename(_SetMin) SetMin(int); %rename(_GetName) GetName() const; %rename(_SetName) SetName(std::string); %rename(_GetComment) GetComment() const; %rename(_SetComment) SetComment(std::string); %rename(set_range) SetRange(int, int); %rename(_GetCreatedTime) GetCreatedTime() const; %rename(_SetCreatedTime) SetCreatedTime(time_t); %rename(_GetModifiedTime) GetModifiedTime() const; %rename(_SetModifiedTime) SetModifiedTime(time_t); public: DRunRange(); virtual ~DRunRange(); int GetId() const; //! Database id int GetMax() const; /// int GetMin() const; std::string GetName() const; std::string GetComment() const; void SetId(int val); void SetMax(int val); void SetMin(int val); void SetName(std::string val); void SetComment(std::string val); void SetRange(int min, int max); time_t GetCreatedTime() const; void SetCreatedTime(time_t val); time_t GetModifiedTime() const; void SetModifiedTime(time_t val); %pythoncode%{ __swig_getmethods__["db_id"] = _GetId __swig_setmethods__["db_id"] = _SetId if _newclass:db_id = _swig_property(_GetId, _SetId) __swig_getmethods__["max"] = _GetMax __swig_setmethods__["max"] = _SetMax if _newclass:max = _swig_property(_GetMax, _SetMax) __swig_getmethods__["min"] = _GetMin __swig_setmethods__["min"] = _SetMin if _newclass:min = _swig_property(_GetMin, _SetMin) __swig_getmethods__["name"] = _GetName __swig_setmethods__["name"] = _SetName if _newclass:name = _swig_property(_GetName, _SetName) __swig_getmethods__["comment"] = _GetComment __swig_setmethods__["comment"] = _SetComment if _newclass:comment = _swig_property(_GetComment, _SetComment) __swig_getmethods__["created_time"] = _GetCreatedTime __swig_setmethods__["created_time"] = _SetCreatedTime if _newclass:created_time = _swig_property(_GetCreatedTime, _SetCreatedTime) __swig_getmethods__["modified_time"] = _GetModifiedTime __swig_setmethods__["modified_time"] = _SetModifiedTime if _newclass:modified_time = _swig_property(_GetModifiedTime, _SetModifiedTime) %} };