| 40 | |
| 41 | |
| 42 | CPMessage * SMS::CPFactory(CPMessage::MessageType val) |
| 43 | { |
| 44 | switch(val) { |
| 45 | case CPMessage::DATA: return new CPData(); |
| 46 | case CPMessage::ACK: return new CPAck(); |
| 47 | case CPMessage::ERROR: return new CPError(); |
| 48 | default: { |
| 49 | LOG(NOTICE) << "no factory support for MTI="<<val; |
| 50 | return NULL; |
| 51 | } |
| 52 | } |
| 53 | } |
| 54 | |
| 55 | |
| 56 |
nothing calls this directly
no outgoing calls
no test coverage detected