File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -204,4 +204,12 @@ bool ProfileLoader::checkAudioProfile( const Profile& profileToCheck )
204
204
return isValid;
205
205
}
206
206
207
+ // To print a profile
208
+ std::ostream &operator <<( std::ostream &os, const ProfileLoader::Profile &profile )
209
+ {
210
+ for ( ProfileLoader::Profile::const_iterator it = profile.begin (); it != profile.end (); ++it )
211
+ os << " (" << it->first << " , " << it->second << " )" << std::endl;
212
+ return os;
213
+ }
214
+
207
215
}
Original file line number Diff line number Diff line change 6
6
#include < string>
7
7
#include < vector>
8
8
#include < map>
9
+ #include < iostream>
9
10
10
11
namespace avtranscoder
11
12
{
@@ -73,5 +74,8 @@ class AvExport ProfileLoader
73
74
Profiles _profiles;
74
75
};
75
76
77
+ // To print a profile
78
+ std::ostream &operator <<( std::ostream &os, const ProfileLoader::Profile &profile );
79
+
76
80
}
77
81
#endif
You can’t perform that action at this time.
0 commit comments