Indentation changes.

This commit is contained in:
crs
2002-04-29 14:40:01 +00:00
parent 3ca72b35f3
commit ea6b347b18
72 changed files with 428 additions and 428 deletions

View File

@@ -4,13 +4,13 @@
#include "IJob.h"
class CFunctionJob : public IJob {
public:
public:
CFunctionJob(void (*func)(void*), void* arg = NULL);
// IJob overrides
virtual void run();
private:
private:
void (*m_func)(void*);
void* m_arg;
};

View File

@@ -4,19 +4,19 @@
#include <stdarg.h>
class CLog {
public:
public:
typedef void (*Outputter)(const char*);
static void print(const char*, ...);
static void printt(const char* file, int line, const char*, ...);
static void setOutputter(Outputter);
private:
private:
static void output(int priority, char* msg);
static char* vsprint(int pad, char*, int len, const char*, va_list);
static int nprint(const char*, va_list);
private:
private:
static Outputter s_outputter;
};

View File

@@ -135,7 +135,7 @@ static PTimeGetTime s_tgt = NULL;
//
class CStopwatchInit {
public:
public:
CStopwatchInit();
~CStopwatchInit();
};

View File

@@ -4,54 +4,54 @@
#include "common.h"
class CStopwatch {
public:
// the default constructor does an implicit reset() or setTrigger().
// if triggered == false then the clock starts ticking.
CStopwatch(bool triggered = false);
~CStopwatch();
public:
// the default constructor does an implicit reset() or setTrigger().
// if triggered == false then the clock starts ticking.
CStopwatch(bool triggered = false);
~CStopwatch();
// manipulators
// manipulators
// set the start time to the current time, returning the time since
// the last reset. this does not remove the trigger if it's set nor
// does it start a stopped clock. if the clock is stopped then
// subsequent reset()'s will return 0.
double reset();
// set the start time to the current time, returning the time since
// the last reset. this does not remove the trigger if it's set nor
// does it start a stopped clock. if the clock is stopped then
// subsequent reset()'s will return 0.
double reset();
// stop and start the stopwatch. while stopped, no time elapses.
// stop() does not remove the trigger but start() does, even if
// the clock was already started.
void stop();
void start();
// stop and start the stopwatch. while stopped, no time elapses.
// stop() does not remove the trigger but start() does, even if
// the clock was already started.
void stop();
void start();
// setTrigger() stops the clock like stop() except there's an
// implicit start() the next time (non-const) getTime() is called.
// this is useful when you want the clock to start the first time
// you check it.
void setTrigger();
// setTrigger() stops the clock like stop() except there's an
// implicit start() the next time (non-const) getTime() is called.
// this is useful when you want the clock to start the first time
// you check it.
void setTrigger();
// return the time since the last reset() (or call reset() and
// return zero if the trigger is set).
double getTime();
// return the time since the last reset() (or call reset() and
// return zero if the trigger is set).
double getTime();
operator double();
// accessors
// accessors
// returns true if the watch is stopped
bool isStopped() const;
// returns true if the watch is stopped
bool isStopped() const;
// return the time since the last reset(). these cannot trigger
// the clock to start so if the trigger is set it's as if it wasn't.
double getTime() const;
// return the time since the last reset(). these cannot trigger
// the clock to start so if the trigger is set it's as if it wasn't.
double getTime() const;
operator double() const;
private:
double getClock() const;
private:
double getClock() const;
private:
double m_mark;
bool m_triggered;
bool m_stopped;
private:
double m_mark;
bool m_triggered;
bool m_stopped;
};
#endif

View File

@@ -15,7 +15,7 @@
#define _CS(_x) _x
class CString : public std::string {
public:
public:
typedef char _e;
typedef _e CharT;
typedef std::allocator<_e> _a;

View File

@@ -4,7 +4,7 @@
#include "common.h"
class IInterface {
public:
public:
virtual ~IInterface() { }
};

View File

@@ -4,7 +4,7 @@
#include "IInterface.h"
class IJob : public IInterface {
public:
public:
virtual void run() = 0;
};

View File

@@ -5,13 +5,13 @@
template <class T>
class TMethodJob : public IJob {
public:
public:
TMethodJob(T* object, void (T::*method)(void*), void* arg = NULL);
// IJob overrides
virtual void run();
private:
private:
T* m_object;
void (T::*m_method)(void*);
void* m_arg;

View File

@@ -5,7 +5,7 @@
#include <exception>
class XBase : public std::exception {
public:
public:
XBase();
XBase(const CString& msg);
virtual ~XBase();
@@ -13,7 +13,7 @@ class XBase : public std::exception {
// std::exception overrides
virtual const char* what() const;
protected:
protected:
// returns a human readable string describing the exception
virtual CString getWhat() const throw() = 0;
@@ -21,12 +21,12 @@ class XBase : public std::exception {
virtual CString format(const char* id,
const char* defaultFormat, ...) const throw();
private:
private:
mutable CString m_what;
};
class MXErrno {
public:
public:
MXErrno();
MXErrno(int);
@@ -37,7 +37,7 @@ class MXErrno {
int getErrno() const;
const char* getErrstr() const;
private:
private:
int m_errno;
};