Lines Matching refs:val
218 static bool getLong(Glib::ustring &str, long *val)
225 *val = ival;
229 static bool getULong(Glib::ustring &str, unsigned long *val)
236 *val = ival;
240 static bool getDouble(Glib::ustring &str, double *val)
247 *val = ival;
253 const Reader &BasicReader::readBool (bool& val )
257 val = true;
259 val = false;
263 const Reader &BasicReader::readShort (short& val )
268 val = (short) ival;
272 const Reader &BasicReader::readUnsignedShort (unsigned short& val )
277 val = (unsigned short) ival;
281 const Reader &BasicReader::readInt (int& val )
286 val = (int) ival;
290 const Reader &BasicReader::readUnsignedInt (unsigned int& val )
295 val = (unsigned int) ival;
299 const Reader &BasicReader::readLong (long& val )
304 val = ival;
308 const Reader &BasicReader::readUnsignedLong (unsigned long& val )
313 val = ival;
317 const Reader &BasicReader::readFloat (float& val )
322 val = (float)ival;
326 const Reader &BasicReader::readDouble (double& val )
331 val = ival;
539 Writer &BasicWriter::writeBool (bool val )
541 if (val)
552 Writer &BasicWriter::writeShort (short val )
554 gchar *buf = g_strdup_printf("%d", val);
567 Writer &BasicWriter::writeUnsignedShort (unsigned short val )
569 gchar *buf = g_strdup_printf("%u", val);
580 Writer &BasicWriter::writeInt (int val)
582 gchar *buf = g_strdup_printf("%d", val);
593 Writer &BasicWriter::writeUnsignedInt (unsigned int val)
595 gchar *buf = g_strdup_printf("%u", val);
606 Writer &BasicWriter::writeLong (long val)
608 gchar *buf = g_strdup_printf("%ld", val);
619 Writer &BasicWriter::writeUnsignedLong(unsigned long val)
621 gchar *buf = g_strdup_printf("%lu", val);
632 Writer &BasicWriter::writeFloat(float val)
635 gchar *buf = g_strdup_printf("%8.3f", val);
641 std::string tmp = ftos(val, 'g', 8, 3, 0);
650 Writer &BasicWriter::writeDouble(double val)
653 gchar *buf = g_strdup_printf("%8.3f", val);
659 std::string tmp = ftos(val, 'g', 8, 3, 0);
666 Writer& operator<< (Writer &writer, char val)
667 { return writer.writeChar(val); }
669 Writer& operator<< (Writer &writer, Glib::ustring &val)
670 { return writer.writeUString(val); }
672 Writer& operator<< (Writer &writer, std::string &val)
673 { return writer.writeStdString(val); }
675 Writer& operator<< (Writer &writer, char const *val)
676 { return writer.writeString(val); }
678 Writer& operator<< (Writer &writer, bool val)
679 { return writer.writeBool(val); }
681 Writer& operator<< (Writer &writer, short val)
682 { return writer.writeShort(val); }
684 Writer& operator<< (Writer &writer, unsigned short val)
685 { return writer.writeUnsignedShort(val); }
687 Writer& operator<< (Writer &writer, int val)
688 { return writer.writeInt(val); }
690 Writer& operator<< (Writer &writer, unsigned int val)
691 { return writer.writeUnsignedInt(val); }
693 Writer& operator<< (Writer &writer, long val)
694 { return writer.writeLong(val); }
696 Writer& operator<< (Writer &writer, unsigned long val)
697 { return writer.writeUnsignedLong(val); }
699 Writer& operator<< (Writer &writer, float val)
700 { return writer.writeFloat(val); }
702 Writer& operator<< (Writer &writer, double val)
703 { return writer.writeDouble(val); }