PIDir fix PICoutManipulator

git-svn-id: svn://db.shs.com.ru/pip@68 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
2015-04-07 09:40:58 +00:00
parent 8e7b44f6be
commit 51da261a56
3 changed files with 4 additions and 2 deletions

View File

@@ -32,7 +32,7 @@ class PIP_EXPORT PIDiagnostics: public PITimer
friend class PIConnection;
public:
//! Constructs an empty diagnostics and if "strat_" start it
//! Constructs an empty diagnostics and if "start_" start it
PIDiagnostics(bool start_ = true);
virtual ~PIDiagnostics() {;}

View File

@@ -165,6 +165,7 @@ PIString PIDir::relative(const PIString & path) const {
PIDir & PIDir::setDir(const PIString & path) {
path_ = path;
#ifdef WINDOWS
path_.replaceAll("\\", separator);
if (path_.length() > 2)
if (path_.mid(1, 2).contains(":"))
path_.prepend(separator);

View File

@@ -113,12 +113,13 @@ int main (int argc, char * argv[]) {
if (fls.size() > 0) {
piCout << "send files" << fls;
f.startSend(fls);
PICout(0) << "\n";
return 0;
} else {
piCout << "wait for receiving";
}
WAIT_FOR_EXIT
PICout() << "\n";
PICout(0) << "\n";
return 0;
}