AvTranscoder  0.9.4
C++APIforLibav/FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SubtitleProperties.cpp
Go to the documentation of this file.
1 #include "SubtitleProperties.hpp"
2 
4 
5 namespace avtranscoder
6 {
7 
8 std::ostream& operator<<(std::ostream& flux, const SubtitleProperties& subtitleProperties)
9 {
10  flux << detail::separator << " Subtitle stream " << detail::separator << std::endl;
11 
12  PropertyVector properties = subtitleProperties.asVector();
13  for(PropertyVector::iterator it = properties.begin(); it != properties.end(); ++it)
14  {
15  flux << std::setw(detail::keyWidth) << it->first << ": " << it->second << std::endl;
16  }
17 
18  return flux;
19 }
20 }
std::vector< std::pair< std::string, std::string > > PropertyVector
PropertyVector is a vector of pair, because the order of properties matters to us.
Definition: util.hpp:23
const size_t keyWidth
Definition: util.hpp:32
const std::string separator
Definition: util.hpp:33
std::ostream & operator<<(std::ostream &flux, const InputFile &input)
Definition: InputFile.cpp:171
PropertyVector asVector() const
Same data with a specific order.