| 31 | |
| 32 | |
| 33 | L3LocationAreaIdentity::L3LocationAreaIdentity(const char*wMCC, const char* wMNC, unsigned wLAC) |
| 34 | :L3ProtocolElement(), |
| 35 | mLAC(wLAC) |
| 36 | { |
| 37 | // country code |
| 38 | assert(strlen(wMCC)==3); |
| 39 | mMCC[0] = wMCC[0]-'0'; |
| 40 | mMCC[1] = wMCC[1]-'0'; |
| 41 | mMCC[2] = wMCC[2]-'0'; |
| 42 | // network code |
| 43 | assert(strlen(wMNC)<=3); |
| 44 | assert(strlen(wMNC)>=2); |
| 45 | mMNC[0] = wMNC[0]-'0'; |
| 46 | mMNC[1] = wMNC[1]-'0'; |
| 47 | if (wMNC[2]!='\0') mMNC[2]=wMNC[2]-'0'; |
| 48 | else mMNC[2]=0x0f; |
| 49 | } |
| 50 | |
| 51 | |
| 52 | void L3LocationAreaIdentity::writeV(L3Frame& dest, size_t &wp) const |
nothing calls this directly
no outgoing calls
no test coverage detected