AppUtil.cc File Reference

#include <unistd.h>
#include <string>
#include <sys/stat.h>
#include <sys/types.h>
#include <dirent.h>
#include <locale>
#include <boost/algorithm/string.hpp>
#include <blocxx/AppenderLogger.hpp>
#include <blocxx/FileAppender.hpp>
#include <blocxx/Logger.hpp>
#include <blocxx/LogMessage.hpp>
#include "y2storage/AsciiFile.h"
#include "y2storage/StorageTmpl.h"
#include "y2storage/AppUtil.h"
#include "y2storage/SystemCmd.h"

Namespaces

namespace  storage

Functions

string storage::dupDash (const string &s)
bool storage::searchFile (AsciiFile &File_Cr, string Pat_Cv, string &Line_Cr)
bool storage::searchFile (AsciiFile &File_Cr, string Pat_Cv, string &Line_Cr, int &LineNr_ir)
void storage::createPath (string Path_Cv)
bool storage::checkDir (string Path_Cv)
bool storage::checkSymlink (string Path_Cv)
bool storage::checkBlockDevice (string Path_Cv)
bool storage::checkNormalFile (string Path_Cv)
string storage::extractNthWord (int Num_iv, const string &Line_Cv, bool GetRest_bi)
list< string > storage::splitString (const string &s, const string &delChars, bool multipleDelim, bool skipEmpty, const string &quotes)
string storage::mergeString (const list< string > &l, const string &del)
map< string, string > storage::makeMap (const list< string > &l, const string &delim, const string &removeSur)
string storage::normalizeDevice (const string &dev)
bool storage::isNfsDev (const string &dev)
void storage::normalizeDevice (string &dev)
string storage::undevDevice (const string &dev)
void storage::undevDevice (string &dev)
void storage::createLogger (const string &lcomponent, const string &name, const string &logpath, const string &logfile)
bool storage::testLogLevel (LogLevel level)
void storage::prepareLogStream (std::ostringstream &s)
void storage::logMsg (LogLevel level, const char *file, unsigned line, const char *func, const string &str)
void storage::logMsgVaArgs (LogLevel level, const char *file, unsigned line, const char *func, const char *format,...)
int storage::readlink (const char *path, string &buf)
map< string, string > storage::getUdevLinks (const char *path)
void storage::getUdevMap (const char *path, map< string, list< string >> &m)
void storage::getRevUdevMap (const char *path, map< string, string > &m)
unsigned storage::getMajorDevices (const string &driver)
string storage::sformat (const char *format,...)
int storage::numSuffixes ()
string storage::getSuffix (int i, bool classic, bool sloppy=false)
string storage::byteToHumanString (unsigned long long size, bool classic, int precision, bool omit_zeroes)
bool storage::humanStringToByte (const string &str, bool classic, unsigned long long &size)

Variables

static const blocxx::String storage::component = "libstorage"
const string storage::app_ws = " \t\n"

Generated on Sun Dec 7 21:01:50 2008 for yast2-storage by  doxygen 1.5.6