Lines Matching defs:os

27 void writeLength(ostream &os, short len)
30 os.write((char *)&len, sizeof(short));
56 ostream& operator << (ostream &os, const DATETIME &attr)
58 return os;
79 ostream &IppAttribute::output(ostream &os) const
81 os << (unsigned char)tag;
82 return os;
85 ostream &IppAttribute::print(ostream &os) const
87 os << "Tag: " << hex << (int)tag << '\n';
88 return os;
123 ostream &IppNamedAttribute::output(ostream &os) const
125 IppAttribute::output(os);
127 writeLength(os, name.length());
128 os << name;
130 return os;
133 ostream &IppNamedAttribute::print(ostream &os) const
135 IppAttribute::print(os);
136 os << '\t' << "Name: " << name << '\n';
137 return os;
170 ostream &IppNoValueAttribute::output(ostream &os) const
172 IppAttribute::output(os);
174 writeLength(os, 0);
176 return os;
179 ostream &IppNoValueAttribute::print(ostream &os) const
181 return IppNamedAttribute::print(os);
217 ostream &IppIntegerAttribute::output(ostream &os) const
219 IppNamedAttribute::output(os);
221 writeLength(os, 4);
223 os.write((char *)&val, sizeof(val));
224 return os;
227 ostream &IppIntegerAttribute::print(ostream &os) const
229 IppNamedAttribute::print(os);
230 os << '\t' << "Value: " << dec << value << '\n';
231 return os;
269 ostream &IppBooleanAttribute::output(ostream &os) const
271 IppNamedAttribute::output(os);
273 writeLength(os, 1);
275 os.write((char *)&c, sizeof(c));
277 return os;
280 ostream &IppBooleanAttribute::print(ostream &os) const
282 IppNamedAttribute::print(os);
283 os << '\t' << "Value: " << value << '\n';
284 return os;
321 ostream &IppDatetimeAttribute::output(ostream &os) const
323 IppNamedAttribute::output(os);
325 writeLength(os, 11);
326 os << datetime;
328 return os;
331 ostream &IppDatetimeAttribute::print(ostream &os) const
333 IppNamedAttribute::print(os);
334 os << '\t' << "Value(DateTime): " << datetime << '\n';
335 return os;
372 ostream &IppStringAttribute::output(ostream &os) const
374 IppNamedAttribute::output(os);
376 writeLength(os, text.length());
377 os << text;
379 return os;
382 ostream &IppStringAttribute::print(ostream &os) const
384 IppNamedAttribute::print(os);
385 os << '\t' << "Value: " << text << '\n';
386 return os;
433 ostream &IppDoubleStringAttribute::output(ostream &os) const
435 IppNamedAttribute::output(os);
437 writeLength(os, text1.length());
438 os << text1;
440 writeLength(os, text2.length());
441 os << text2;
443 return os;
446 ostream &IppDoubleStringAttribute::print(ostream &os) const
448 IppNamedAttribute::print(os);
449 os << '\t' << "Value1: " << text1 << '\n';
450 os << '\t' << "Value2: " << text2 << '\n';
451 return os;
506 ostream &IppResolutionAttribute::output(ostream &os) const
508 IppNamedAttribute::output(os);
510 writeLength(os, 4);
512 os.write((char *)&val, sizeof(val));
514 writeLength(os, 4);
516 os.write((char *)&val, sizeof(val));
518 writeLength(os, 1);
520 os.write((char *)&c, sizeof(c));
522 return os;
525 ostream &IppResolutionAttribute::print(ostream &os) const
527 IppNamedAttribute::print(os);
528 os << '\t' << "Value(xres): " << dec << xres << '\n';
529 os << '\t' << "Value(yres): " << dec << yres << '\n';
530 os << '\t' << "Value(unit): " << dec << resolution_units << '\n';
531 return os;
576 ostream &IppRangeOfIntegerAttribute::output(ostream &os) const
578 IppNamedAttribute::output(os);
580 writeLength(os, 4);
582 os.write((char *)&val, sizeof(val));
584 writeLength(os, 4);
586 os.write((char *)&val, sizeof(val));
588 return os;
591 ostream &IppRangeOfIntegerAttribute::print(ostream &os) const
593 IppNamedAttribute::print(os);
594 os << '\t' << "Value(lower): " << dec << lower << '\n';
595 os << '\t' << "Value(upper): " << dec << upper << '\n';
596 return os;
796 ostream &IppContent::output(ostream &os) const
799 os.write((char *)&ns_version, sizeof(ns_version)); // version-number
802 os.write((char *)&ns_operation_id, sizeof(ns_operation_id)); // operation-id
805 os.write((char *)&ns_request_id, sizeof(ns_request_id)); // request-id
808 os << *(*it);
823 os.put(c);
828 return os;
960 ostream &IppContent::print(ostream &os) const
962 os << "version: " << hex << version << '\n';
963 os << "operation_id: " << hex << operation_id << '\n';
964 os << "request_id: " << hex << request_id << '\n';
967 (*it)->print(os);
970 return os;