libs/EDoc/utils.cpp File Reference

#include "config.h"
#include "EDoc/utils.h"
#include "EDoc/exceptions.h"
#include <string>
#include <vector>
#include <iostream>

Go to the source code of this file.

Namespaces

namespace  EDoc

Functions

bool EDoc::PushBack (const std::string &name, std::vector< std::string > &list)
 (BRIEF DESC NOT PROVIDED).
std::string EDoc::GetFileExtension (std::string name)
 Returns the extension of the given file name.
std::pair< std::string, std::string > EDoc::SplitFileExtension (std::string name)
 Returns both the extension and the base name of the given file name.
std::string EDoc::CreateTempFilename (std::string base="EDoctmp")
 Creates a new temporary file.
std::vector< std::string > EDoc::Split (std::string str, char sep= ' ')
 Splits the given string into a vector of strings using sep as a seperator.
int EDoc::RunProgram (std::string command_in)
 Executes the given command and returns its exit status.
int EDoc::RunProgramRedirect (std::string &out, std::string &err, std::string command)
 Executes the given command and returns its exit status.
static int EDoc::mkdirs (char *path, mode_t mode)
 (BRIEF DESC NOT PROVIDED).
void EDoc::MkDirs (std::string dir)
 Creates a directory structure if it does not exist.
void EDoc::CopyFile (std::string source, std::string destination)
 Copies source file to destination file.
bool EDoc::FileExists (std::string filename)
 Returns true if the specified filename exists as a file.
static const std::string EDoc::white_space (" \t\r\n")
std::string EDoc::TrimWhitespace (const std::string &str)
 Trims all whitespace from the beginning and end of the string.
std::string EDoc::MakeTemporaryFile (std::string prefix="", std::string suffix="", std::string directory="/tmp")
 Creates a temporary file on the system using the given template.

Variables

std::list< std::string > EDoc::open_temp_files


Generated on Tue Jan 20 18:26:08 2009 for EDoc-0.2.1 by  doxygen 1.5.1