Added setting nullptr for Table's key
This commit is contained in:
parent
1c4917bead
commit
bc4b9aa163
|
|
@ -19,6 +19,7 @@
|
||||||
#include "booleanset.h"
|
#include "booleanset.h"
|
||||||
#include "decimalfield.h"
|
#include "decimalfield.h"
|
||||||
#include "numericfield.h"
|
#include "numericfield.h"
|
||||||
|
#include "voidfield.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set up namespace
|
* Set up namespace
|
||||||
|
|
|
||||||
|
|
@ -138,6 +138,7 @@ public:
|
||||||
Table &set(const std::string &name, int64_t value) { return set(name, LongLong(value)); }
|
Table &set(const std::string &name, int64_t value) { return set(name, LongLong(value)); }
|
||||||
Table &set(const std::string &name, const std::string &value) { return set(name, LongString(value)); }
|
Table &set(const std::string &name, const std::string &value) { return set(name, LongString(value)); }
|
||||||
Table &set(const std::string &name, const char *value) { return set(name, LongString(std::string(value))); }
|
Table &set(const std::string &name, const char *value) { return set(name, LongString(std::string(value))); }
|
||||||
|
Table &set(const std::string &name, nullptr_t) { return set(name, VoidField()); }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Is a certain field set in the table
|
* Is a certain field set in the table
|
||||||
|
|
|
||||||
|
|
@ -53,10 +53,10 @@
|
||||||
#include "amqpcpp/decimalfield.h"
|
#include "amqpcpp/decimalfield.h"
|
||||||
#include "amqpcpp/stringfield.h"
|
#include "amqpcpp/stringfield.h"
|
||||||
#include "amqpcpp/booleanset.h"
|
#include "amqpcpp/booleanset.h"
|
||||||
|
#include "amqpcpp/voidfield.h"
|
||||||
#include "amqpcpp/fieldproxy.h"
|
#include "amqpcpp/fieldproxy.h"
|
||||||
#include "amqpcpp/table.h"
|
#include "amqpcpp/table.h"
|
||||||
#include "amqpcpp/array.h"
|
#include "amqpcpp/array.h"
|
||||||
#include "amqpcpp/voidfield.h"
|
|
||||||
|
|
||||||
// envelope for publishing and consuming
|
// envelope for publishing and consuming
|
||||||
#include "amqpcpp/metadata.h"
|
#include "amqpcpp/metadata.h"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue