Enhancement

- Added ostream converter for Path object.
This commit is contained in:
Paul Beckingham 2012-06-02 12:52:13 -04:00
parent b63bd9e985
commit 65e8cc63fc
2 changed files with 10 additions and 0 deletions

View file

@ -36,6 +36,13 @@
#include <Path.h> #include <Path.h>
#include <cmake.h> #include <cmake.h>
////////////////////////////////////////////////////////////////////////////////
std::ostream& operator<< (std::ostream& out, const Path& path)
{
out << path._data;
return out;
}
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
Path::Path () Path::Path ()
{ {

View file

@ -29,6 +29,7 @@
#define INCLUDED_PATH #define INCLUDED_PATH
#define L10N // Localization complete. #define L10N // Localization complete.
#include <iostream>
#include <vector> #include <vector>
#include <string> #include <string>
@ -62,5 +63,7 @@ public:
std::string _data; std::string _data;
}; };
std::ostream& operator<< (std::ostream&, const Path&);
#endif #endif
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////