MCPcopy Create free account
hub / github.com/RangeNetworks/openbts / CPFactory

Method CPFactory

SMS/SMSMessages.cpp:42–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40
41
42CPMessage * 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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected