orca-robotics


INTRODUCTION
Overview
Download and Install
Documentation

REPOSITORY
Interfaces
Drivers
Libraries
Utilities
Software Map

DEVELOPER
Dashboard

PEOPLE
Contributors
Users

SourceForge.net Logo
Project
Download
Mailing lists

 

         

hydroiceutil Namespace Reference

libHydroUtil customizes libIceUtil to simplify writing Orca components. More...


Classes

class  Event
class  EventReceiver
 A class which lets outsiders to post events into its own event queue. More...
class  EventJob
class  ReceiverIdNotExistException
 This exception is raised when something is wrong with the hardware. More...
class  EventLoop
class  EventQueue
 Thread-safe event queue. More...
class  EventQueueHolder
 A class which lets outsiders to post events into its own event queue. More...
class  EventScheduler
class  Job
struct  JobQueueStatus
 Current status of the job queue. More...
class  JobQueue
 A queue of jobs to be processed. More...
class  LocalHistory
 Writes component's run history to a local file. More...
class  LocalTracer
 Sofisticated local tracing. More...
class  SimpleTracer
 Simple local tracing. More...

Time Utilities

void now (int &seconds, int &useconds)
 Current time in seconds and microseconds.
void timeFromIceUtil (const IceUtil::Time &time, int &seconds, int &useconds)
 Converts time in IceUtil format to seconds and microseconds.
std::string toDuration (const IceUtil::Time &t, const std::string &separator)
void timeFromDouble (double time, int &seconds, int &useconds)
IceUtil::Time timeFromDouble (double time)
 Convenience function, works as the one above.
double timeAsDouble (int seconds, int useconds)

Typedefs

typedef IceUtil::Handle< EventEventPtr
 Smart pointer to Event.
typedef IceUtil::Handle< EventJobEventJobPtr
 Ice smart pointer to the EventJob.
typedef IceUtil::Handle< EventLoopEventLoopPtr
 Ice smart pointer to EventLoop.
typedef IceUtil::Handle< EventQueueOptimizer > EventQueueOptimizerPtr
 Smart pointer to EventQueueOptimizer.
typedef IceUtil::Handle< EventQueueEventQueuePtr
 Smart pointer to EventQueue.
typedef IceUtil::Handle< EventQueueHolderEventQueueHolderPtr
 Smart pointer to EventQueueHolder.
typedef IceUtil::Handle< EventSchedulerEventSchedulerPtr
 Ice smart pointer to EventScheduler.
typedef IceUtil::Handle< JobJobPtr
 Ice smart pointer to job.
typedef IceUtil::Handle< JobQueueJobQueuePtr
 Ice smart pointer to job queue.


Detailed Description

libHydroUtil customizes libIceUtil to simplify writing Orca components.

This namespace is part of a library which aims at simplifying Orca component development.

See also:
libHydroIceUtil


Function Documentation

double hydroiceutil::timeAsDouble int  seconds,
int  useconds
 

Converts time in seconds and microseconds to a double in seconds. Time can be negative, but remember that seconds and microseconds are added to together. e.g. -10s:-100000us and -11s:900000us will both translate to -10.1s

void hydroiceutil::timeFromDouble double  time,
int &  seconds,
int &  useconds
 

Converts from number of seconds to seconds and microseconds. Time can be negative, in which case both seconds and microseconds are returned as negatives, e.g. -10.1s will translate to -10s:-100000us, not -11s:900000us.

std::string hydroiceutil::toDuration const IceUtil::Time &  time,
const std::string &  separator = ":"
 

Returns a string with time duration in the following format (with default separator): "D:H:M:S.sss" Numeric values are not padded, i.e. 5min appears as 5 (not 05). Separator string can be specified.

E.g. "0 0 58 12.232"

 

Webmaster: Tobias Kaupp (tobasco at users.sourceforge.net)


Generated for Orca Robotics by  doxygen 1.4.5