FACT++  1.0
string DataLogger::CompileFileName ( const string &  service,
const string &  extension,
const Time time = Time() 
) const
private

Form the file names only.

Compiles a file name

Parameters
paththe base path where to put the file
timethe time at which the file is created
servicethe service name, if any
extensionthe extension to add, if any

Definition at line 835 of file datalogger.cc.

References Time::NightAsInt(), and str.

836 {
837  ostringstream str;
838 
839  const Time ftime(time);//removed this as already done by nightAsInt: -boost::posix_time::hours(12));
840  str << ftime.NightAsInt();
841 
842  if (!service.empty())
843  str << '.' << service;
844 
845  if (!extension.empty())
846  str << "." << extension;
847 
848  return str.str();
849 }
Adds some functionality to boost::posix_time::ptime for our needs.
Definition: Time.h:30
char str[80]
Definition: test_client.c:7

+ Here is the call graph for this function: