Enhancement
- Added ostream converter for Path object.
This commit is contained in:
@@ -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 ()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|||||||
Reference in New Issue
Block a user