From 3b0c3b8206964b85bf3716c962d26dd15c4f285f Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Mon, 18 Nov 2024 22:24:33 +0900 Subject: Remove uncrustify-trinity. It is no longer necessary to maintain a customize trinity version. Upstream version can be used as is. Signed-off-by: Michele Calgaro --- .../tests/input/cpp/Timestamp.h | 169 --------------------- 1 file changed, 169 deletions(-) delete mode 100644 debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Timestamp.h (limited to 'debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Timestamp.h') diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Timestamp.h b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Timestamp.h deleted file mode 100644 index 60dc3791..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Timestamp.h +++ /dev/null @@ -1,169 +0,0 @@ -/** - * @file Timestamp.h - * Definition of class example::Timestamp. - */ - -#ifndef __Timestamp_h_ -#define __Timestamp_h_ - -#include - -namespace example { - -class IStreamable; -class InStream; -class OutStream; - -/** - * Timestamp is a timestamp with nanosecond resolution. - */ -class Timestamp - : public IStreamable -{ - -public: - - /** - * Default constructor. - */ - Timestamp(); - - /** - * Constructor. - * - * @param sec The seconds - * @param nsec The nanoseconds - */ - Timestamp(long sec, unsigned long nsec); - - /** - * Destructor. - */ - virtual ~Timestamp(); - - /** - * Adds two timestamps. - * - * @param rhs The other timestamp - * @return The resulting timestamp - */ - Timestamp operator+ (const Timestamp& rhs) const; - - /** - * Substracts two timestamps. - * - * @param rhs The other timestamp - * @return The resulting timestamp - */ - Timestamp operator- (const Timestamp& rhs) const; - - /** - * Compares two timestamps. - * - * @param rhs The other timestamp - * @return true if timestamp is smaller than the given timestamp - */ - bool operator< (const Timestamp& rhs) const; - - /** - * Compares two timestamps. - * - * @param rhs The other timestamp - * @return true if timestamp is greater than the given timestamp - */ - bool operator> (const Timestamp& rhs) const; - - /** - * Compares two timestamps. - * - * @param rhs The other timestamp - * @return true if timestamp is equal to the given timestamp - */ - bool operator== (const Timestamp& rhs) const; - - /** - * Compares two timestamps. - * - * @param rhs The other timestamp - * @return true if timestamp is not equal to the given timestamp - */ - bool operator!= (const Timestamp& rhs) const; - - /** - * Adds an other timestamp. - * - * @param rhs The other timestamp - */ - void operator+= (const Timestamp& rhs); - - /** - * Adds milliseconds. - * - * @param ms The milliseconds - * @return The resulting timestamp - */ - Timestamp addMilliseconds(unsigned long ms) const; - - /** - * Adds nanoseconds. - * - * @param ns The nanoseconds - * @return The resulting timestamp - */ - Timestamp addNanoseconds(unsigned long ns) const; - - /** - * Checks if this timestamp is zero. - * - * @return true if timestamp is zero - */ - bool isZero() const; - - /** - * Gets the milliseconds. - * @attention Negativ timestamp return zero - * - * @return The milliseconds - */ - unsigned long getMilliseconds() const; - - /** - * Divide timestamps by two. - * - * @return The resulting timestamp - */ - Timestamp divideByTwo(); - - /** - * Gets the string-representation. - * - * @return The string representation - */ - std::string getString() const; - - /** - * Gets the string-representation in milliseconds. - * - * @return The string representation - */ - std::string getStringMilliseconds() const; - - /** - * Resets the timestamp. - */ - void reset(); - - /** The seconds */ - long sec; - - /** The nanoseconds */ - unsigned long nsec; - - InStream& operator << (InStream& in); - - OutStream& operator >> (OutStream& out) const; - -}; -} // namespace - -#endif // __Timestamp_h_ -- cgit v1.2.1