diff options
| author | Kim van der Riet <kpvdr@apache.org> | 2012-08-02 15:31:51 +0000 |
|---|---|---|
| committer | Kim van der Riet <kpvdr@apache.org> | 2012-08-02 15:31:51 +0000 |
| commit | 04877fec0c6346edec67072d7f2d247740cf2af5 (patch) | |
| tree | e14572fc8cfc2862d32d422c7360754db8967c06 /cpp/src/qpid/asyncStore/RunState.cpp | |
| parent | 80bfab9ed823cebd9f8f58b559fd32df108bcf7d (diff) | |
| download | qpid-python-04877fec0c6346edec67072d7f2d247740cf2af5.tar.gz | |
QPID-3858: WIP: Added smoke test to cmake, code format tidy-up
git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/asyncstore@1368541 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/asyncStore/RunState.cpp')
| -rw-r--r-- | cpp/src/qpid/asyncStore/RunState.cpp | 27 |
1 files changed, 9 insertions, 18 deletions
diff --git a/cpp/src/qpid/asyncStore/RunState.cpp b/cpp/src/qpid/asyncStore/RunState.cpp index 737d8eb367..9ad05655ed 100644 --- a/cpp/src/qpid/asyncStore/RunState.cpp +++ b/cpp/src/qpid/asyncStore/RunState.cpp @@ -42,49 +42,41 @@ RunState::RunState(const RunState& s) : qpid::asyncStore::jrnl2::State<RunState_t>(s) {} -RunState::~RunState() -{} +RunState::~RunState() {} void -RunState::setInitializing() -{ +RunState::setInitializing() { set(RS_INITIALIZING); } void -RunState::setRestoring() -{ +RunState::setRestoring() { set(RS_RESTORING); } void -RunState::setRunning() -{ +RunState::setRunning() { set(RS_RUNNING); } void -RunState::setStopping() -{ +RunState::setStopping() { set(RS_STOPPING); } void -RunState::setStopped() -{ +RunState::setStopped() { set(RS_STOPPED); } const char* -RunState::getAsStr() const -{ +RunState::getAsStr() const { return s_toStr(m_state); } //static const char* -RunState::s_toStr(const RunState_t s) -{ +RunState::s_toStr(const RunState_t s) { switch (s) { case RS_NONE: return "WR_NONE"; @@ -107,8 +99,7 @@ RunState::s_toStr(const RunState_t s) // private void -RunState::set(const RunState_t s) -{ +RunState::set(const RunState_t s) { // State transition logic: set stateError to true if an invalid transition is attempted bool stateTransitionError = false; switch (m_state) { |
