tests/perftest/runprocess.h File Reference

#include <string>

Include dependency graph for runprocess.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ReadError
 Exception thrown if we encounter a read error. More...
struct  NoSuchProgram
 Exception thrown if the program isn't found. More...

Functions

std::string stdout_to_string (const std::string &cmd)
 Run command cmd, capture its stdout, and return it as a std::string.


Function Documentation

std::string stdout_to_string ( const std::string &  cmd  ) 

Run command cmd, capture its stdout, and return it as a std::string.

Definition at line 38 of file runprocess.cc.

References C_isspace().

Referenced by get_distro(), get_loadavg(), get_ncpus(), get_svnbranch(), and get_svnrev().


Documentation for Xapian (version 1.2.9).
Generated on 10 May 2012 by Doxygen 1.5.9.