Enhancement
- Added ostream converter for Path object.
This commit is contained in:
@@ -36,6 +36,13 @@
|
||||
#include <Path.h>
|
||||
#include <cmake.h>
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
std::ostream& operator<< (std::ostream& out, const Path& path)
|
||||
{
|
||||
out << path._data;
|
||||
return out;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
Path::Path ()
|
||||
{
|
||||
|
||||
@@ -29,6 +29,7 @@
|
||||
#define INCLUDED_PATH
|
||||
#define L10N // Localization complete.
|
||||
|
||||
#include <iostream>
|
||||
#include <vector>
|
||||
#include <string>
|
||||
|
||||
@@ -62,5 +63,7 @@ public:
|
||||
std::string _data;
|
||||
};
|
||||
|
||||
std::ostream& operator<< (std::ostream&, const Path&);
|
||||
|
||||
#endif
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
Reference in New Issue
Block a user