memgraph/data_model/json/null.hpp

31 lines
388 B
C++
Raw Normal View History

2015-06-22 04:20:36 +08:00
#ifndef MEMGRAPH_DATA_MODEL_JSON_NULL_HPP
#define MEMGRAPH_DATA_MODEL_JSON_NULL_HPP
2015-06-22 03:15:46 +08:00
#include "json.hpp"
namespace json {
class Null final : public Json
{
public:
Null() {}
virtual bool is_null() const;
virtual operator std::string() const;
};
bool Null::is_null() const
{
return true;
}
Null::operator std::string() const
{
return "null";
}
}
#endif