Lines Matching defs:std

51 typedef std::auto_ptr< std::ostream > ostream_ptr;
58 osp = ostream_ptr(new std::ofstream("/dev/stdout"));
60 osp = ostream_ptr(new std::ofstream(path.c_str()));
62 throw std::runtime_error("Could not create file " + path.str());
66 static std::string
69 std::ostringstream output;
71 << std::setfill('0') << std::setw(6)
96 virtual void write_info(const std::string&, const std::string&) {}
98 virtual void write_tp_start(const std::string&, size_t) {}
99 virtual void write_tp_end(struct timeval*, const std::string&) {}
100 virtual void write_tc_start(const std::string&) {}
101 virtual void write_tc_stdout_line(const std::string&) {}
102 virtual void write_tc_stderr_line(const std::string&) {}
103 virtual void write_tc_end(const std::string&, struct timeval*,
104 const std::string&) {}
124 std::string m_tpname;
125 std::string m_tcname;
135 write_tp_start(const std::string& name,
144 write_tp_end(struct timeval* tv, const std::string& reason)
146 const std::string timestamp = format_tv(tv);
159 write_tc_start(const std::string& name)
166 write_tc_end(const std::string& state, struct timeval* tv,
167 const std::string& reason)
169 std::string str = m_tpname + ", " + m_tcname + ", " + state;
196 std::string m_tcname, m_tpname;
197 std::vector< std::string > m_failed_tcs;
198 std::map< std::string, std::string > m_expected_failures_tcs;
199 std::vector< std::string > m_failed_tps;
202 write_info(const std::string& what, const std::string& val)
221 write_tp_start(const std::string& tp, size_t ntcs)
236 write_tp_end(struct timeval* tv, const std::string& reason)
257 write_tc_start(const std::string& tcname)
266 write_tc_end(const std::string& state, struct timeval* tv,
267 const std::string& reason)
269 std::string str;
290 std::abort();
301 write_expected_failures(const std::map< std::string, std::string >& xfails,
302 std::ostream& os)
309 for (std::map< std::string, std::string >::const_iterator iter =
311 const std::string& name = (*iter).first;
312 const std::string& reason = (*iter).second;
382 std::string m_tcname, m_tpname;
385 std::string
386 attrval(const std::string& str)
392 std::string
393 elemval(const std::string& str)
395 std::ostringstream buf;
396 for (std::string::const_iterator iter = str.begin();
405 } else if (std::isalnum(character) || std::ispunct(character) ||
406 std::isspace(character)) {
416 write_info(const std::string& what, const std::string& val)
422 write_tp_start(const std::string& tp,
429 write_tp_end(struct timeval* tv, const std::string& reason)
438 write_tc_start(const std::string& tcname)
444 write_tc_stdout_line(const std::string& line)
450 write_tc_stderr_line(const std::string& line)
456 write_tc_end(const std::string& state, struct timeval* tv,
457 const std::string& reason)
459 std::string str;
473 std::abort();
508 typedef std::vector< writer* > outs_vector;
512 got_info(const std::string& what, const std::string& val)
528 got_tp_start(const std::string& tp, size_t ntcs)
536 got_tp_end(struct timeval* tv, const std::string& reason)
544 got_tc_start(const std::string& tcname)
552 got_tc_stdout_line(const std::string& line)
560 got_tc_stderr_line(const std::string& line)
568 got_tc_end(const std::string& state, struct timeval* tv,
569 const std::string& reason)
585 converter(std::istream& is) :
598 add_output(const std::string& fmt, const tools::fs::path& p)
607 throw std::runtime_error("Unknown format `" + fmt + "'");
618 typedef std::pair< std::string, tools::fs::path > fmt_path_pair;
619 std::vector< fmt_path_pair > m_oflags;
645 std::string str(arg);
646 std::string::size_type pos = str.find(':');
647 if (pos == std::string::npos)
648 throw std::runtime_error("Syntax error in -o option");
650 std::string fmt = str.substr(0, pos);
658 std::abort();
678 throw std::runtime_error("No arguments allowed");
684 std::set< tools::fs::path > paths;
685 for (std::vector< fmt_path_pair >::const_iterator iter = m_oflags.begin();
691 throw std::runtime_error("The file `" + p.str() + "' was "
697 converter cnv(std::cin);
698 for (std::vector< fmt_path_pair >::const_iterator iter = m_oflags.begin();