MCPcopy Create free account
hub / github.com/KDE/labplot / readParameterElement

Method readParameterElement

src/3rdparty/liborigin/OriginAnyParser.cpp:773–803  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

771}
772
773bool OriginAnyParser::readParameterElement()
774{
775 LOG_PRINT(logfile, "readParameterElement()\n")
776 // get parameter name
777 string par_name;
778 char c;
779
780 getline(file, par_name);
781 if (par_name[0] == '\0') {
782 unsigned int eof_parameters_mark = readObjectSize();
783 if (eof_parameters_mark != 0) {
784 LOG_PRINT(logfile, "Wrong end of parameters mark\n")
785 }
786 return false;
787 }
788 LOG_PRINT(logfile, " %s:", par_name.c_str())
789 // get value
790 double value;
791 file >> value;
792 LOG_PRINT(logfile, " %g\n", value)
793 // read the '\n'
794 file >> c;
795 if (c != '\n') {
796 curpos = file.tellg();
797 LOG_PRINT(logfile, "Wrong delimiter %c at %" PRId64 " [0x%" PRIx64 "]\n", c, curpos, curpos)
798 parseError = 6;
799 return false;
800 }
801
802 return true;
803}
804
805bool OriginAnyParser::readNoteElement()
806{

Callers

nothing calls this directly

Calls 1

tellgMethod · 0.45

Tested by

no test coverage detected