Lines Matching defs:std

54 typedef std::auto_ptr< std::ostream > ostream_ptr;
61 osp = ostream_ptr(new std::ofstream("/dev/stdout"));
63 osp = ostream_ptr(new std::ofstream(path.c_str()));
65 throw std::runtime_error("Could not create file " + path.str());
69 static std::string
72 std::ostringstream output;
74 << std::setfill('0') << std::setw(6)
99 virtual void write_info(const std::string&, const std::string&) {}
101 virtual void write_tp_start(const std::string&, size_t) {}
102 virtual void write_tp_end(struct timeval*, const std::string&) {}
103 virtual void write_tc_start(const std::string&) {}
104 virtual void write_tc_stdout_line(const std::string&) {}
105 virtual void write_tc_stderr_line(const std::string&) {}
106 virtual void write_tc_end(const std::string&, struct timeval*,
107 const std::string&) {}
127 std::string m_tpname;
128 std::string m_tcname;
138 write_tp_start(const std::string& name,
147 write_tp_end(struct timeval* tv, const std::string& reason)
149 const std::string timestamp = format_tv(tv);
162 write_tc_start(const std::string& name)
169 write_tc_end(const std::string& state, struct timeval* tv,
170 const std::string& reason)
172 std::string str = m_tpname + ", " + m_tcname + ", " + state;
199 std::string m_tcname, m_tpname;
200 std::vector< std::string > m_failed_tcs;
201 std::map< std::string, std::string > m_expected_failures_tcs;
202 std::vector< std::string > m_failed_tps;
205 write_info(const std::string& what, const std::string& val)
224 write_tp_start(const std::string& tp, size_t ntcs)
239 write_tp_end(struct timeval* tv, const std::string& reason)
260 write_tc_start(const std::string& tcname)
269 write_tc_end(const std::string& state, struct timeval* tv,
270 const std::string& reason)
272 std::string str;
304 write_expected_failures(const std::map< std::string, std::string >& xfails,
305 std::ostream& os)
312 for (std::map< std::string, std::string >::const_iterator iter =
314 const std::string& name = (*iter).first;
315 const std::string& reason = (*iter).second;
385 std::string m_tcname, m_tpname;
388 std::string
389 attrval(const std::string& str)
395 std::string
396 elemval(const std::string& str)
398 std::ostringstream buf;
399 for (std::string::const_iterator iter = str.begin();
408 } else if (std::isalnum(character) || std::ispunct(character) ||
409 std::isspace(character)) {
419 write_info(const std::string& what, const std::string& val)
425 write_tp_start(const std::string& tp,
432 write_tp_end(struct timeval* tv, const std::string& reason)
441 write_tc_start(const std::string& tcname)
447 write_tc_stdout_line(const std::string& line)
453 write_tc_stderr_line(const std::string& line)
459 write_tc_end(const std::string& state, struct timeval* tv,
460 const std::string& reason)
462 std::string str;
511 typedef std::vector< writer* > outs_vector;
515 got_info(const std::string& what, const std::string& val)
531 got_tp_start(const std::string& tp, size_t ntcs)
539 got_tp_end(struct timeval* tv, const std::string& reason)
547 got_tc_start(const std::string& tcname)
555 got_tc_stdout_line(const std::string& line)
563 got_tc_stderr_line(const std::string& line)
571 got_tc_end(const std::string& state, struct timeval* tv,
572 const std::string& reason)
588 converter(std::istream& is) :
601 add_output(const std::string& fmt, const atf::fs::path& p)
610 throw std::runtime_error("Unknown format `" + fmt + "'");
621 typedef std::pair< std::string, atf::fs::path > fmt_path_pair;
622 std::vector< fmt_path_pair > m_oflags;
648 std::string str(arg);
649 std::string::size_type pos = str.find(':');
650 if (pos == std::string::npos)
651 throw std::runtime_error("Syntax error in -o option");
653 std::string fmt = str.substr(0, pos);
681 throw std::runtime_error("No arguments allowed");
687 std::set< atf::fs::path > paths;
688 for (std::vector< fmt_path_pair >::const_iterator iter = m_oflags.begin();
694 throw std::runtime_error("The file `" + p.str() + "' was "
700 converter cnv(std::cin);
701 for (std::vector< fmt_path_pair >::const_iterator iter = m_oflags.begin();