Exemple #1
0
const BOOL fwrite_containerconfig_ex(FILE* const f, const container_t* const c)
{
	assert(f != NULL);
	assert(c != NULL);

	const int n = fprintf(f, "container = %s\n", container_to_string(c->type));
	if (n <= 0) return FALSE;

	switch (c->type)
	{
	case CONTAINER_BLOOMFILTER:
		return fwrite_bloomconfig_ex(f, c->data);
	default:
		return FALSE;
	}
}
Exemple #2
0
std::string any_value_to_string(const std::vector<Any>& val)
{
  return container_to_string(val.begin(), val.end());
}
Exemple #3
0
std::string any_value_to_string(const std::list<std::string>& val)
{
  return container_to_string(val.begin(), val.end());
}