PIDir fix PICoutManipulator
git-svn-id: svn://db.shs.com.ru/pip@68 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
@@ -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() {;}
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user