Back to index

nordugrid-arc-nox  1.1.0~rc6
Functions
common.cpp File Reference
#include <string>
#include <iostream>
#include "schemaconv.h"

Go to the source code of this file.

Functions

void strprintf (std::ostream &out, const char *fmt, const std::string &arg1, const std::string &arg2, const std::string &arg3, const std::string &arg4, const std::string &arg5, const std::string &arg6, const std::string &arg7, const std::string &arg8, const std::string &arg9, const std::string &arg10)
void strprintf (std::string &out, const char *fmt, const std::string &arg1, const std::string &arg2, const std::string &arg3, const std::string &arg4, const std::string &arg5, const std::string &arg6, const std::string &arg7, const std::string &arg8, const std::string &arg9, const std::string &arg10)

Function Documentation

void strprintf ( std::ostream &  out,
const char *  fmt,
const std::string &  arg1,
const std::string &  arg2,
const std::string &  arg3,
const std::string &  arg4,
const std::string &  arg5,
const std::string &  arg6,
const std::string &  arg7,
const std::string &  arg8,
const std::string &  arg9,
const std::string &  arg10 
)

Definition at line 12 of file common.cpp.

                                                              {
  char buf[65536];
  buf[0]=0;
  snprintf(buf,sizeof(buf)-1,fmt,arg1.c_str(),arg2.c_str(),arg3.c_str(),
                                 arg4.c_str(),arg5.c_str(),arg6.c_str(),
                                 arg7.c_str(),arg8.c_str(),arg9.c_str(),
                                 arg10.c_str());
  buf[sizeof(buf)-1]=0;
  out<<buf;
}

Here is the caller graph for this function:

void strprintf ( std::string &  out,
const char *  fmt,
const std::string &  arg1,
const std::string &  arg2,
const std::string &  arg3,
const std::string &  arg4,
const std::string &  arg5,
const std::string &  arg6,
const std::string &  arg7,
const std::string &  arg8,
const std::string &  arg9,
const std::string &  arg10 
)

Definition at line 28 of file common.cpp.

                                                              {
  char buf[65536];
  buf[0]=0;
  snprintf(buf,sizeof(buf)-1,fmt,arg1.c_str(),arg2.c_str(),arg3.c_str(),
                                 arg4.c_str(),arg5.c_str(),arg6.c_str(),
                                 arg7.c_str(),arg8.c_str(),arg9.c_str(),
                                 arg10.c_str());
  buf[sizeof(buf)-1]=0;
  out+=buf;
}