Main Page | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages

new_sim_utils.h File Reference

The file includes an some utilities and a class for time handling
cClass. More...

#include <sys/time.h>

Include dependency graph for new_sim_utils.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  cTime
 The time class can be used to work with time values. More...

Defines

#define dDateStringSize   11
 Size of a date string.
#define dTimeStringSize   9
 Size of a time string.
#define dDateTimeStringSize   20
 Size of a date and time string.

Enumerations

enum  tNewSimulatorFruState {
  eFruStateNotInstalled = 0, eFruStateInactive = 1, eFruStateActivationRequest = 2, eFruStateActivationInProgress = 3,
  eFruStateActive = 4, eFruStateDeactivationRequest = 5, eFruStateDeactivationInProgress = 6, eFruStateCommunicationLost = 7
}
 Mapping Fru states to the ipmi state numbering.

Functions

const char * NewSimulatorFruStateToString (tNewSimulatorFruState state)
 Returns a string for a Fru state.
void NewSimulatorDateToString (unsigned int time, char *str)
 Fill a string a with date information.
void NewSimulatorTimeToString (unsigned int time, char *str)
 Fill a string a with time information.
void NewSimulatorDateTimeToString (unsigned int time, char *str)
 Fill a string a with date and time information.


Detailed Description

The file includes an some utilities and a class for time handling
cClass.

Author:
Lars Wetzel <larswetzel@users.sourceforge.net>
Version:
0.1
Date:
2010
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. This file and program are licensed under a BSD style license. See the Copying file included with the OpenHPI distribution for full licensing terms.

The new Simulator plugin is adapted from the ipmidirect plugin. Thanks to Thomas Kanngieser <thomas.kanngieser@fci.com>


Function Documentation

void NewSimulatorDateTimeToString unsigned int  t,
char *  str
 

Fill a string a with date and time information.

Parameters:
t time value
str pointer on the string to be filled

void NewSimulatorDateToString unsigned int  t,
char *  str
 

Fill a string a with date information.

Parameters:
t time value
str pointer on the string to be filled

const char* NewSimulatorFruStateToString tNewSimulatorFruState  val  ) 
 

Returns a string for a Fru state.

Parameters:
val state of the FRU
Returns:
string with the FRU state text

void NewSimulatorTimeToString unsigned int  t,
char *  str
 

Fill a string a with time information.

Parameters:
t time value
str pointer on the string to be filled


Generated on Mon Apr 26 14:38:43 2010 for New Simulator by  doxygen 1.4.4