#include <boost/foreach.hpp>
using std::string;
-using std::stringstream;
-using std::ostream;
using std::list;
using std::pair;
using std::make_pair;
}
if (_annotation_text != other_cpl->_annotation_text && !opt.cpl_annotation_texts_can_differ) {
- stringstream s;
- s << "CPL: annotation texts differ: " << _annotation_text << " vs " << other_cpl->_annotation_text << "\n";
- note (DCP_ERROR, s.str ());
+ string const s = "CPL: annotation texts differ: " + _annotation_text + " vs " + other_cpl->_annotation_text + "\n";
+ note (DCP_ERROR, s);
return false;
}
#include <boost/filesystem.hpp>
#include <boost/algorithm/string.hpp>
#include <boost/foreach.hpp>
-#include <iostream>
using std::string;
using std::list;
using std::cout;
-using std::ostream;
using std::make_pair;
using std::map;
using std::cout;
#include "util.h"
#include "local_time.h"
#include <asdcp/AS_DCP.h>
-#include <sstream>
#include <iomanip>
#include <time.h>
#include "picture_asset_writer_common.cc"
-using std::istream;
-using std::ostream;
using std::string;
using boost::shared_ptr;
using namespace dcp;
#include <boost/utility.hpp>
#include <stdint.h>
#include <string>
-#include <fstream>
namespace dcp {
#include <boost/filesystem.hpp>
#include <list>
#include <stdexcept>
-#include <iostream>
-#include <sstream>
using std::string;
-using std::ostream;
using std::list;
using std::vector;
using std::max;
-using std::stringstream;
using std::pair;
using std::make_pair;
-using std::istream;
-using std::cout;
using boost::shared_ptr;
using namespace dcp;
#include <inttypes.h>
#include <stdint.h>
-using std::istream;
-using std::ostream;
using std::string;
using boost::shared_ptr;
using namespace dcp;
#include <boost/utility.hpp>
#include <stdint.h>
#include <string>
-#include <fstream>
namespace dcp {
#include "compose.hpp"
#include <libcxml/cxml.h>
#include <libxml++/libxml++.h>
-#include <iostream>
using std::pair;
using std::cout;
using std::string;
-using std::stringstream;
using std::make_pair;
using boost::shared_ptr;
using namespace dcp;
ReelAsset::equals (shared_ptr<const ReelAsset> other, EqualityOptions opt, NoteHandler note) const
{
if (_annotation_text != other->_annotation_text) {
- stringstream s;
- s << "Reel: annotation texts differ (" << _annotation_text << " vs " << other->_annotation_text << ")\n";
+ string const s = "Reel: annotation texts differ (" + _annotation_text + " vs " + other->_annotation_text + ")\n";
if (!opt.reel_annotation_texts_can_differ) {
- note (DCP_ERROR, s.str ());
+ note (DCP_ERROR, s);
return false;
} else {
- note (DCP_NOTE, s.str ());
+ note (DCP_NOTE, s);
}
}
using std::bad_cast;
using std::string;
-using std::stringstream;
using boost::shared_ptr;
using boost::dynamic_pointer_cast;
using boost::optional;
using std::string;
using std::list;
-using std::stringstream;
-using std::cout;
using std::vector;
using std::map;
using boost::shared_ptr;
if (!ASDCP_FAILURE (r)) {
string s;
reader->ReadTimedTextResource (s, 0, 0);
- stringstream t;
- t << s;
- xml->read_stream (t);
+ xml->read_string (s);
ASDCP::WriterInfo info;
reader->FillWriterInfo (info);
_id = read_writer_info (info);
#include <asdcp/AS_DCP.h>
#include <libxml++/nodes/element.h>
#include <boost/filesystem.hpp>
-#include <iostream>
#include <stdexcept>
using std::string;
-using std::stringstream;
-using std::ostream;
using std::vector;
using std::list;
using boost::shared_ptr;
#include "picture_asset_writer_common.cc"
-using std::istream;
-using std::ostream;
using std::string;
using boost::shared_ptr;
using namespace dcp;
#include <boost/algorithm/string.hpp>
#include <boost/shared_array.hpp>
#include <boost/foreach.hpp>
-#include <fstream>
using std::string;
using std::list;
-using std::ostream;
-using std::ofstream;
-using std::stringstream;
using std::cout;
using std::cerr;
using std::map;
#include <boost/filesystem.hpp>
#include <boost/algorithm/string.hpp>
#include <stdexcept>
-#include <sstream>
#include <iostream>
#include <iomanip>
using std::string;
using std::wstring;
using std::cout;
-using std::stringstream;
using std::min;
using std::max;
using std::list;