DOM: Demoted from class to functions
- The DOM object contains no members, and only two (effectively) const methods. Demoting DOM to function calls reduces coupling with Context.
This commit is contained in:
12
src/DOM.h
12
src/DOM.h
@@ -30,16 +30,8 @@
|
||||
#include <string>
|
||||
#include <Variant.h>
|
||||
#include <Task.h>
|
||||
#include <time.h>
|
||||
|
||||
class DOM
|
||||
{
|
||||
public:
|
||||
bool get (const std::string&, Variant&);
|
||||
bool get (const std::string&, const Task&, Variant&);
|
||||
|
||||
private:
|
||||
};
|
||||
bool getDOM (const std::string&, Variant&);
|
||||
bool getDOM (const std::string&, const Task&, Variant&);
|
||||
|
||||
#endif
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
Reference in New Issue
Block a user