📄 class_t_chat_sdp_attribute_parser.html
字号:
<td class="md" nowrap valign="top">void TChatSdpAttributeParser::VisitAttributeValueL </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">CSdpAttrValue & </td> <td class="mdname" nowrap> <em>aValue</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>TSdpElementType </td> <td class="mdname" nowrap> <em>aType</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>VisitAttributeValueL Process a data element <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>aValue</em> </td><td>the data element </td></tr> <tr><td valign="top"></td><td valign="top"><em>aType</em> </td><td>the type of the data element </td></tr> </table></dl><p>Definition at line <a class="el" href="_chat_sdp_attribute_parser_8cpp-source.html#l00065">65</a> of file <a class="el" href="_chat_sdp_attribute_parser_8cpp-source.html">ChatSdpAttributeParser.cpp</a>.<p>References <a class="el" href="_chat_sdp_attribute_parser_8cpp-source.html#l00133">CheckTypeL()</a>, <a class="el" href="_chat_sdp_attribute_parser_8cpp-source.html#l00146">CheckValueL()</a>, <a class="el" href="_chat_sdp_attribute_parser_8cpp-source.html#l00275">TChatSdpAttributeParser::TChatSdpAttributeNode::Command()</a>, <a class="el" href="_chat_sdp_attribute_parser_8h-source.html#l00241">iCurrentNode</a>, and <a class="el" href="_chat_sdp_attribute_parser_8cpp-source.html#l00198">ReadValueL()</a>.<div class="fragment"><pre class="fragment"><a name="l00067"></a>00067 {<a name="l00068"></a>00068 <span class="keywordflow">switch</span> ( <a class="code" href="class_t_chat_sdp_attribute_parser.html#06a26af66f62382ad861a56a88e22a2b">iCurrentNode</a>.<a class="code" href="class_t_chat_sdp_attribute_parser_1_1_t_chat_sdp_attribute_node.html#5add53a5e87869faa4572145e57a9be7">Command</a>() )<a name="l00069"></a>00069 {<a name="l00070"></a>00070 <span class="keywordflow">case</span> ECheckType:<a name="l00071"></a>00071 <a class="code" href="class_t_chat_sdp_attribute_parser.html#f4272d2abd5aed5a16b71115a76a0c5a">CheckTypeL</a>( aType );<a name="l00072"></a>00072 <span class="keywordflow">break</span>;<a name="l00073"></a>00073 <a name="l00074"></a>00074 <span class="keywordflow">case</span> ECheckValue:<a name="l00075"></a>00075 <a class="code" href="class_t_chat_sdp_attribute_parser.html#f4272d2abd5aed5a16b71115a76a0c5a">CheckTypeL</a>( aType );<a name="l00076"></a>00076 <a class="code" href="class_t_chat_sdp_attribute_parser.html#0ea935565972e69a5dc8dd49268b0b39">CheckValueL</a>( aValue );<a name="l00077"></a>00077 <span class="keywordflow">break</span>;<a name="l00078"></a>00078 <a name="l00079"></a>00079 <span class="keywordflow">case</span> ECheckEnd:<a name="l00080"></a>00080 User::Leave( KErrTooBig ); <span class="comment">//list element contains too many items</span><a name="l00081"></a>00081 <span class="keywordflow">break</span>;<a name="l00082"></a>00082 <a name="l00083"></a>00083 <span class="keywordflow">case</span> ESkip:<a name="l00084"></a>00084 <span class="keywordflow">break</span>; <span class="comment">// no checking required</span><a name="l00085"></a>00085 <a name="l00086"></a>00086 <span class="keywordflow">case</span> EReadValue:<a name="l00087"></a>00087 <a class="code" href="class_t_chat_sdp_attribute_parser.html#f4272d2abd5aed5a16b71115a76a0c5a">CheckTypeL</a>( aType );<a name="l00088"></a>00088 <a class="code" href="class_t_chat_sdp_attribute_parser.html#61bda7e6ece5da3a9e7f094cbc8c9225">ReadValueL</a>( aValue );<a name="l00089"></a>00089 <span class="keywordflow">break</span>;<a name="l00090"></a>00090 <a name="l00091"></a>00091 <span class="keywordflow">case</span> EFinished:<a name="l00092"></a>00092 User::Leave( KErrEof ); <span class="comment">// element is after </span><a name="l00093"></a>00093 <span class="keywordflow">return</span>; <span class="comment">// value should have ended</span><a name="l00094"></a>00094 <a name="l00095"></a>00095 <span class="keywordflow">default</span>:<a name="l00096"></a>00096 Panic( EChatSdpAttributeParserInvalidCommand );<a name="l00097"></a>00097 }<a name="l00098"></a>00098 <a name="l00099"></a>00099 <a class="code" href="class_t_chat_sdp_attribute_parser.html#528c8830ba4af2fd5ef6ff1ebd2efe9f">AdvanceL</a>();<a name="l00100"></a>00100 }</pre></div><p> </td> </tr></table><a class="anchor" name="4b7b6774453ca1580c2f0aebc4002ffe"></a><!-- doxytag: member="TChatSdpAttributeParser::StartListL" ref="4b7b6774453ca1580c2f0aebc4002ffe" args="(CSdpAttrValueList &aList)" --><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">void TChatSdpAttributeParser::StartListL </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">CSdpAttrValueList & </td> <td class="mdname1" valign="top" nowrap> <em>aList</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>StartListL Process the start of a data element list <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>aList</em> </td><td>the data element list </td></tr> </table></dl><p>Definition at line <a class="el" href="_chat_sdp_attribute_parser_8cpp-source.html#l00107">107</a> of file <a class="el" href="_chat_sdp_attribute_parser_8cpp-source.html">ChatSdpAttributeParser.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00108"></a>00108 {<a name="l00109"></a>00109 <span class="comment">// no checks done here</span><a name="l00110"></a>00110 }</pre></div><p> </td> </tr></table><a class="anchor" name="40a01b5f18f581c7b8e9c1907b8bdba1"></a><!-- doxytag: member="TChatSdpAttributeParser::EndListL" ref="40a01b5f18f581c7b8e9c1907b8bdba1" args="()" --><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">void TChatSdpAttributeParser::EndListL </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>EndListL Process the end of a data element list <p>Definition at line <a class="el" href="_chat_sdp_attribute_parser_8cpp-source.html#l00117">117</a> of file <a class="el" href="_chat_sdp_attribute_parser_8cpp-source.html">ChatSdpAttributeParser.cpp</a>.<p>References <a class="el" href="_chat_sdp_attribute_parser_8cpp-source.html#l00275">TChatSdpAttributeParser::TChatSdpAttributeNode::Command()</a>, and <a class="el" href="_chat_sdp_attribute_parser_8h-source.html#l00241">iCurrentNode</a>.<div class="fragment"><pre class="fragment"><a name="l00118"></a>00118 {<a name="l00119"></a>00119 <span class="comment">// check we are at the end of a list</span><a name="l00120"></a>00120 <span class="keywordflow">if</span> ( <a class="code" href="class_t_chat_sdp_attribute_parser.html#06a26af66f62382ad861a56a88e22a2b">iCurrentNode</a>.<a class="code" href="class_t_chat_sdp_attribute_parser_1_1_t_chat_sdp_attribute_node.html#5add53a5e87869faa4572145e57a9be7">Command</a>() != ECheckEnd )<a name="l00121"></a>00121 {<a name="l00122"></a>00122 User::Leave( KErrGeneral );<a name="l00123"></a>00123 }<a name="l00124"></a>00124 <a name="l00125"></a>00125 <a class="code" href="class_t_chat_sdp_attribute_parser.html#528c8830ba4af2fd5ef6ff1ebd2efe9f">AdvanceL</a>();<a name="l00126"></a>00126 }</pre></div><p> </td> </tr></table><a class="anchor" name="f4272d2abd5aed5a16b71115a76a0c5a"></a><!-- doxytag: member="TChatSdpAttributeParser::CheckTypeL" ref="f4272d2abd5aed5a16b71115a76a0c5a" args="(TSdpElementType aElementType) const " --><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">void TChatSdpAttributeParser::CheckTypeL </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">TSdpElementType </td> <td class="mdname1" valign="top" nowrap> <em>aElementType</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> const<code> [private]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>CheckTypeL Check the type of the current node is the same as the specified type. <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>aElementType</em> </td><td>the type of the current data element </td></tr> </table></dl><p>Definition at line <a class="el" href="_chat_sdp_attribute_parser_8cpp-source.html#l00133">133</a> of file <a class="el" href="_chat_sdp_attribute_parser_8cpp-source.html">ChatSdpAttributeParser.cpp</a>.<p>References <a class="el" href="_chat_sdp_attribute_parser_8h-source.html#l00241">iCurrentNode</a>, and <a class="el" href="_chat_sdp_attribute_parser_8cpp-source.html#l00285">TChatSdpAttributeParser::TChatSdpAttributeNode::Type()</a>.<p>Referenced by <a class="el" href="_chat_sdp_attribute_parser_8cpp-source.html#l00065">VisitAttributeValueL()</a>.<div class="fragment"><pre class="fragment"><a name="l00134"></a>00134 {<a name="l00135"></a>00135 <span class="keywordflow">if</span> ( <a class="code" href="class_t_chat_sdp_attribute_parser.html#06a26af66f62382ad861a56a88e22a2b">iCurrentNode</a>.<a class="code" href="class_t_chat_sdp_attribute_parser_1_1_t_chat_sdp_attribute_node.html#543a812bf1666d4e2c7bf72452142660">Type</a>() != aElementType )<a name="l00136"></a>00136 {<a name="l00137"></a>00137 User::Leave( KErrGeneral );<a name="l00138"></a>00138 }<a name="l00139"></a>00139 }</pre></div><p> </td> </tr></table><a class="anchor" name="0ea935565972e69a5dc8dd49268b0b39"></a><!-- doxytag: member="TChatSdpAttributeParser::CheckValueL" ref="0ea935565972e69a5dc8dd49268b0b39" args="(CSdpAttrValue &aValue) const " --><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">void TChatSdpAttributeParser::CheckValueL </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">CSdpAttrValue & </td> <td class="mdname1" valign="top" nowrap> <em>aValue</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> const<code> [private]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>CheckValueL Check the value of the current node is the same as the specified value <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>aValue</em> </td><td>the value of the current data element. </td></tr> </table></dl><p>Definition at line <a class="el" href="_chat_sdp_attribute_parser_8cpp-source.html#l00146">146</a> of file <a class="el" href="_chat_sdp_attribute_parser_8cpp-source.html">ChatSdpAttributeParser.cpp</a>.<p>References <a class="el" href="_chat_sdp_attribute_parser_8h-source.html#l00241">iCurrentNode</a>, and <a class="el" href="_chat_sdp_attribute_parser_8cpp-source.html#l00295">TChatSdpAttributeParser::TChatSdpAttributeNode::Value()</a>.<p>Referenced by <a class="el" href="_chat_sdp_attribute_parser_8cpp-source.html#l00065">VisitAttributeValueL()</a>.<div class="fragment"><pre class="fragment"><a name="l00147"></a>00147 {<a name="l00148"></a>00148 <span class="keywordflow">switch</span> ( aValue.Type() )<a name="l00149"></a>00149 {<a name="l00150"></a>00150 <span class="keywordflow">case</span> ETypeNil:<a name="l00151"></a>00151 Panic( EChatSdpAttributeParserNoValue );<a name="l00152"></a>00152 <span class="keywordflow">break</span>;<a name="l00153"></a>00153 <a name="l00154"></a>00154 <span class="keywordflow">case</span> ETypeUint:<a name="l00155"></a>00155 <span class="keywordflow">if</span> ( aValue.Uint() != ( TUint ) <a class="code" href="class_t_chat_sdp_attribute_parser.html#06a26af66f62382ad861a56a88e22a2b">iCurrentNode</a>.<a class="code" href="class_t_chat_sdp_attribute_parser_1_1_t_chat_sdp_attribute_node.html#92eceddf2441d07f407cfede50f48a71">Value</a>() )<a name="l00156"></a>00156 {<a name="l00157"></a>00157 User::Leave( KErrArgument );<a name="l00158"></a>00158 }<a name="l00159"></a>00159 <span class="keywordflow">break</span>;<a name="l00160"></a>00160 <a name="l00161"></a>00161 <span class="keywordflow">case</span> ETypeInt:
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -