blob: e213b41638dc30239b6add790cd65ad81cee2ed6 [file] [log] [blame]
#ifndef SHAREDDATALAYER_CLI_COMMON_HPP
#define SHAREDDATALAYER_CLI_COMMON_HPP
#include <functional>
#include <iostream>
#include <sdl/syncstorage.hpp>
namespace shareddatalayer
{
namespace cli
{
inline std::ostream& operator<<(std::ostream &out, const SyncStorage::Data &data)
{
for (const auto& d : data)
out << d;
return out;
}
inline std::ostream& operator<<(std::ostream& out, const SyncStorage::DataMap& dataMap)
{
for (const auto& d : dataMap)
out << d.first << " " << d.second;
return out;
}
}
}
#endif