src/core/SyncEvolutionUtil.h File Reference

#include <base/test.h>
#include <boost/algorithm/string/case_conv.hpp>
#include <boost/algorithm/string/predicate.hpp>
#include <vector>
#include <sstream>
#include <string>
#include <utility>

Include dependency graph for SyncEvolutionUtil.h:

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

Go to the source code of this file.

Classes

class  Nocase< T >
class  Iequals< T >
class  UUID
class  ReadDir

Defines

#define SYNCEVOLUTION_TEST_SUITE_REGISTRATION(ATestFixtureType)

Typedefs

typedef pair< string, string > StringPair

Functions

string normalizePath (const string &path)
void mkdir_p (const string &path)
void rm_r (const string &path)
bool isDir (const string &path)


Define Documentation

#define SYNCEVOLUTION_TEST_SUITE_REGISTRATION ( ATestFixtureType   ) 

Value:

CPPUNIT_TEST_SUITE_NAMED_REGISTRATION( ATestFixtureType, "SyncEvolution" ); \
    extern "C" { int funambolAutoRegisterRegistry ## ATestFixtureType = 12345; }
Using this macro ensures that tests, even if defined in object files which are not normally linked into the test binary, are included in the test suite under the group "SyncEvolution".

Definition at line 106 of file SyncEvolutionUtil.h.


Typedef Documentation

typedef pair<string, string> StringPair

shorthand, primarily useful for BOOST_FOREACH macro

Definition at line 46 of file SyncEvolutionUtil.h.


Function Documentation

bool isDir ( const string &  path  ) 

true if the path refers to a directory

Definition at line 120 of file SyncEvolutionUtil.cpp.

References EvolutionSyncClient::throwError().

Referenced by FileSyncSource::open().

void mkdir_p ( const string &  path  ) 

ensure that m_path is writable, otherwise throw error

Definition at line 66 of file SyncEvolutionUtil.cpp.

References EvolutionSyncClient::throwError().

Referenced by FileConfigNode::flush(), and FileSyncSource::open().

string normalizePath ( const string &  path  ) 

remove multiple slashes in a row and dots directly after a slash if not followed by filename, remove trailing /

Definition at line 39 of file SyncEvolutionUtil.cpp.

Referenced by FileConfigTree::getChildren(), FileConfigTree::getRootPath(), and FileConfigTree::open().

void rm_r ( const string &  path  ) 


Generated on Sat Oct 18 17:16:59 2008 for SyncEvolution and Funambol by  doxygen 1.5.7.1