mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-27 02:53:10 +01:00
Remove typeName
This commit is contained in:
@@ -96,11 +96,6 @@ struct ElementTraits<Array>
|
|||||||
|
|
||||||
static const char marker = '*';
|
static const char marker = '*';
|
||||||
|
|
||||||
static std::string typeName()
|
|
||||||
{
|
|
||||||
return "Array";
|
|
||||||
}
|
|
||||||
|
|
||||||
static std::string toString(const Array& value)
|
static std::string toString(const Array& value)
|
||||||
{
|
{
|
||||||
std::stringstream result;
|
std::stringstream result;
|
||||||
|
|||||||
@@ -71,6 +71,7 @@ public:
|
|||||||
/// Disconnects from the Redis server
|
/// Disconnects from the Redis server
|
||||||
|
|
||||||
RedisType::Ptr sendCommand(const Array& command);
|
RedisType::Ptr sendCommand(const Array& command);
|
||||||
|
/// Sends a Redis command to the server and returns the reply
|
||||||
|
|
||||||
template<typename T>
|
template<typename T>
|
||||||
void sendCommand(const Array& command, T& result)
|
void sendCommand(const Array& command, T& result)
|
||||||
|
|||||||
@@ -57,11 +57,6 @@ struct ElementTraits<Error>
|
|||||||
|
|
||||||
static const char marker = '-';
|
static const char marker = '-';
|
||||||
|
|
||||||
static std::string typeName()
|
|
||||||
{
|
|
||||||
return "Error";
|
|
||||||
}
|
|
||||||
|
|
||||||
static std::string toString(const Error& value)
|
static std::string toString(const Error& value)
|
||||||
{
|
{
|
||||||
return marker + value.getMessage() + "\r\n";
|
return marker + value.getMessage() + "\r\n";
|
||||||
|
|||||||
@@ -71,11 +71,6 @@ struct ElementTraits<Poco::Int64>
|
|||||||
|
|
||||||
static const char marker = ':';
|
static const char marker = ':';
|
||||||
|
|
||||||
static std::string typeName()
|
|
||||||
{
|
|
||||||
return "Integer";
|
|
||||||
}
|
|
||||||
|
|
||||||
static std::string toString(const Poco::Int64& value)
|
static std::string toString(const Poco::Int64& value)
|
||||||
{
|
{
|
||||||
return marker + NumberFormatter::format(value) + "\r\n";
|
return marker + NumberFormatter::format(value) + "\r\n";
|
||||||
@@ -88,11 +83,6 @@ struct ElementTraits<std::string>
|
|||||||
{
|
{
|
||||||
enum { TypeId = RedisType::REDIS_SIMPLE_STRING };
|
enum { TypeId = RedisType::REDIS_SIMPLE_STRING };
|
||||||
|
|
||||||
static std::string typeName()
|
|
||||||
{
|
|
||||||
return "Simple String";
|
|
||||||
}
|
|
||||||
|
|
||||||
static const char marker = '+';
|
static const char marker = '+';
|
||||||
|
|
||||||
static std::string toString(const std::string& value)
|
static std::string toString(const std::string& value)
|
||||||
@@ -110,11 +100,6 @@ struct ElementTraits<BulkString>
|
|||||||
{
|
{
|
||||||
enum { TypeId = RedisType::REDIS_BULK_STRING };
|
enum { TypeId = RedisType::REDIS_BULK_STRING };
|
||||||
|
|
||||||
static std::string typeName()
|
|
||||||
{
|
|
||||||
return "Bulk String";
|
|
||||||
}
|
|
||||||
|
|
||||||
static const char marker = '$';
|
static const char marker = '$';
|
||||||
|
|
||||||
static std::string toString(const BulkString& value)
|
static std::string toString(const BulkString& value)
|
||||||
|
|||||||
Reference in New Issue
Block a user