]> sigrok.org Git - pulseview.git/blobdiff - pv/util.h
Renamed C++ headers to .hpp
[pulseview.git] / pv / util.h
diff --git a/pv/util.h b/pv/util.h
deleted file mode 100644 (file)
index 572bed3..0000000
--- a/pv/util.h
+++ /dev/null
@@ -1,59 +0,0 @@
-/*
- * This file is part of the PulseView project.
- *
- * Copyright (C) 2012 Joel Holdsworth <joel@airwebreathe.org.uk>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
- */
-
-#ifndef PULSEVIEW_UTIL_H
-#define PULSEVIEW_UTIL_H
-
-#include <math.h>
-
-#include <QString>
-
-namespace pv {
-namespace util {
-
-extern const int FirstSIPrefixPower;
-
-/**
- * Formats a given time value with the specified SI prefix.
- * @param t The time value in seconds to format.
- * @param prefix The number of the prefix, from 0 for 'femto' up to
- *               8 for 'giga'.
- * @parma precision The number of digits after the decimal separator.
- * @param sign Whether or not to add a sign also for positive numbers.
- *
- * @return The formated value.
- */
-QString format_time(
-       double t, unsigned int prefix,
-       unsigned precision = 0, bool sign = true);
-
-/**
- * Formats a given time value with a SI prefix so that the
- * value is between 1 and 999.
- * @param second The time value in seconds to format.
- *
- * @return The formated value.
- */
-QString format_second(double second);
-
-} // namespace util
-} // namespace pv
-
-#endif // PULSEVIEW_UTIL_H