summaryrefslogtreecommitdiff
path: root/src/Command.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-06-21 13:51:56 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-06-21 13:51:56 +0000
commitca4940622c05e50a50f77c621ade914029663446 (patch)
tree2715d87c6b4faa669ae317f6f95d9694630cd4a0 /src/Command.h
parentae957baa98d4f97ea2437596db5073f9c33d22ae (diff)
2010-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Changed naming standards for class member variable: now it looks like var_ instead of _var.
Diffstat (limited to 'src/Command.h')
-rw-r--r--src/Command.h34
1 files changed, 17 insertions, 17 deletions
diff --git a/src/Command.h b/src/Command.h
index 1fd2cdb2..2ac67beb 100644
--- a/src/Command.h
+++ b/src/Command.h
@@ -54,39 +54,39 @@ public:
STATUS_ONESHOT_REALTIME
};
private:
- STATUS _status;
+ STATUS status_;
- cuid_t _cuid;
- Logger* _logger;
+ cuid_t cuid_;
+ Logger* logger_;
- bool _readEvent;
- bool _writeEvent;
- bool _errorEvent;
- bool _hupEvent;
+ bool readEvent_;
+ bool writeEvent_;
+ bool errorEvent_;
+ bool hupEvent_;
protected:
Logger* getLogger() const
{
- return _logger;
+ return logger_;
}
bool readEventEnabled() const
{
- return _readEvent;
+ return readEvent_;
}
bool writeEventEnabled() const
{
- return _writeEvent;
+ return writeEvent_;
}
bool errorEventEnabled() const
{
- return _errorEvent;
+ return errorEvent_;
}
bool hupEventEnabled() const
{
- return _hupEvent;
+ return hupEvent_;
}
public:
Command(cuid_t cuid);
@@ -95,19 +95,19 @@ public:
virtual bool execute() = 0;
- cuid_t getCuid() const { return _cuid; }
+ cuid_t getCuid() const { return cuid_; }
- void setStatusActive() { _status = STATUS_ACTIVE; }
+ void setStatusActive() { status_ = STATUS_ACTIVE; }
- void setStatusInactive() { _status = STATUS_INACTIVE; }
+ void setStatusInactive() { status_ = STATUS_INACTIVE; }
- void setStatusRealtime() { _status = STATUS_REALTIME; }
+ void setStatusRealtime() { status_ = STATUS_REALTIME; }
void setStatus(STATUS status);
bool statusMatch(Command::STATUS statusFilter) const
{
- return statusFilter <= _status;
+ return statusFilter <= status_;
}
void transitStatus();