-
February 26th, 2016, 07:19 AM
#1
c++ nested map new parameter addition
Hi All,
As always this forum has been really great to help me with my limited c++ knowledge.
I have the following typedefs:
struct PolicyRuleInfo{
BearerQoSInfo stBearerQoS;
TFTInfo stTFTInfo;
PolicyRuleInfo(){};
PolicyRuleInfo( BearerQoSInfo const& qos, TFTInfo const& tft)
: stBearerQoS(qos), stTFTInfo(tft)
{ }
};
typedef map<string, PolicyRuleInfo> listOfPolicyRuleInfo;
struct IPAddressPolicyRulesInfo{
CIPAddress sIpAddress;
listOfPolicyRuleInfo policyRules;
IPAddressPolicyRulesInfo(){};
IPAddressPolicyRulesInfo(CIPAddress ipaddr, string policyRuleName, PolicyRuleInfo policyRule): sIpAddress(ipaddr){policyRules[policyRuleName]=policyRule;};
void addPolicycyRule(string policyRuleName, PolicyRuleInfo policyRule) { policyRules[policyRuleName]=policyRule; }
};
// Apn to PolicyRules
typedef map<string, IPAddressPolicyRulesInfo> APN2PolicyRules;
// Imsi to APN2PolicyRules Info
typedef map<string, APN2PolicyRules> IMSI2APNPolicyRules;
Now I want to send a message from this module to new module, which has unique session Id for this IMSI2APNPolicyRules rules. Because for each IMSI and APN, there is a new Sy session id. Can some experts help me how to organise this map to add the session id ?
This is because on getting the response back from the new module, the old module needs to extract the (IMSI, APN and policy rules for that session based on the stored value of session)
thanks a lot
~p
Last edited by pdk5; February 26th, 2016 at 08:31 AM.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|