Last active
August 29, 2015 14:16
-
-
Save eventhelix/376414e7f256ccbbf71c to your computer and use it in GitHub Desktop.
Multiple get-set methods (http://www.eventhelix.com/realtimemantra/object_oriented/object_design_tips.htm)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void CircuitManager::GetStatus(const CircuitStatusMsg *pMsg) const | |
{ | |
for (int i= 0; i < MAX_CIRCUITS; i++) | |
{ | |
pMsg->circuitInfo[i].circuitId = m_pCircuit[i]->GetId(); | |
pMsg->circuitInfo[i].circuitType = m_pCircuit[i]->GetType(); | |
pMsg->circuitInfo[i].circuitStatus = m_pCircuit[i]->GetStatus(); | |
pMsg->circuitInfo[i].circuitCallId = m_pCircuit[i]->GetCallId(); | |
pMsg->circuitInfo[i].circuitState = m_pCircuit[i]->GetState(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment