29#include <Inventor/system/inttypes.h>
30#include <Inventor/SbBasic.h>
31#include <Inventor/SbString.h>
36#define SBTIME_UNDEF_MAX
45 SbTime(
const int32_t sec,
const long usec);
46 SbTime(
const struct timeval *
const tv);
47 static SbTime getTimeOfDay(
void);
48 void setToTimeOfDay(
void);
52 static SbTime maxTime(
void);
53 static void sleep(
int msec);
54 void setValue(
const double sec);
55 void setValue(
const int32_t sec,
const long usec);
56 void setValue(
const struct timeval *
const tv);
57 void setMsecValue(
const unsigned long msec);
58 double getValue(
void)
const;
59 void getValue(time_t & sec,
long & usec)
const;
60 void getValue(
struct timeval * tv)
const;
61 unsigned long getMsecValue(
void)
const;
62 SbString format(
const char *
const fmt =
"%S.%i")
const;
63 SbString formatDate(
const char *
const fmt = NULL)
const;
64 SbBool parsedate(
const char *
const date);
69 SbTime operator-(
void)
const;
70 friend COIN_DLL_API
SbTime operator *(
const double s,
const SbTime & tm);
71 friend COIN_DLL_API
SbTime operator *(
const SbTime & tm,
const double s);
72 friend COIN_DLL_API
SbTime operator /(
const SbTime & tm,
const double s);
73 SbTime & operator *=(
const double s);
74 SbTime & operator /=(
const double s);
75 double operator /(
const SbTime & tm)
const;
77 int operator ==(
const SbTime & tm)
const;
78 int operator !=(
const SbTime & tm)
const;
79 SbBool operator <(
const SbTime & tm)
const;
80 SbBool operator >(
const SbTime & tm)
const;
81 SbBool operator <=(
const SbTime & tm)
const;
82 SbBool operator >=(
const SbTime & tm)
const;
84 void print(FILE * fp)
const;
88 void addToString(
SbString & str,
const double val)
const;
93COIN_DLL_API
SbTime operator *(
const double s,
const SbTime & tm);
94COIN_DLL_API
SbTime operator *(
const SbTime & tm,
const double s);
95COIN_DLL_API
SbTime operator /(
const SbTime & tm,
const double s);
100#ifdef SBTIME_UNDEF_MAX
101#define max(a,b) (((a) > (b)) ? (a) : (b))
102#undef SBTIME_UNDEF_MAX
The SbString class is a string class with convenience functions for string operations.
Definition SbString.h:42
The SbTime class instances represents time values.
Definition SbTime.h:41
Copyright © 1998-2010 by Kongsberg Oil & Gas Technologies. All rights reserved.
Generated on Wed Jul 17 2024 for Coin by Doxygen 1.12.0.