diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2022-05-06 13:43:02 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2022-05-06 13:49:57 +0900 |
commit | 80a31d6c8a114799dc5284086ffce2e9be34c50e (patch) | |
tree | 1719891657e76c04f063f5ff7b5fdf63d9e562c3 /debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/input/cpp/Timestamp.h | |
parent | e6ba08c3b21cdb14ee3a97b5d584759a4597b54b (diff) | |
download | extra-dependencies-80a31d6c8a114799dc5284086ffce2e9be34c50e.tar.gz extra-dependencies-80a31d6c8a114799dc5284086ffce2e9be34c50e.zip |
uncrustify-trinity: updated based on upstream version 0.75.0
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/input/cpp/Timestamp.h')
-rw-r--r-- | debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/input/cpp/Timestamp.h | 169 |
1 files changed, 0 insertions, 169 deletions
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/input/cpp/Timestamp.h b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/input/cpp/Timestamp.h deleted file mode 100644 index 60dc3791..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/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 <string>
-
-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_
|