<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" content="Doxygen 1.8.15"/> <meta name="viewport" content="width=device-width, initial-scale=1"/> <title>libzypp: zypp/ContentType.h Source File</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <link href="navtree.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="resize.js"></script> <script type="text/javascript" src="navtreedata.js"></script> <script type="text/javascript" src="navtree.js"></script> <script type="text/javascript"> /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ $(document).ready(initResizable); /* @license-end */</script> <link href="doxygen.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td id="projectalign" style="padding-left: 0.5em;"> <div id="projectname">libzypp  <span id="projectnumber">17.9.0</span> </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.15 --> <script type="text/javascript" src="menudata.js"></script> <script type="text/javascript" src="menu.js"></script> <script type="text/javascript"> /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ $(function() { initMenu('',false,false,'search.php','Search'); }); /* @license-end */</script> <div id="main-nav"></div> </div><!-- top --> <div id="side-nav" class="ui-resizable side-nav-resizable"> <div id="nav-tree"> <div id="nav-tree-contents"> <div id="nav-sync" class="sync"></div> </div> </div> <div id="splitbar" style="-moz-user-select:none;" class="ui-resizable-handle"> </div> </div> <script type="text/javascript"> /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ $(document).ready(function(){initNavTree('ContentType_8h_source.html','');}); /* @license-end */ </script> <div id="doc-content"> <div class="header"> <div class="headertitle"> <div class="title">ContentType.h</div> </div> </div><!--header--> <div class="contents"> <a href="ContentType_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">/*---------------------------------------------------------------------\</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">| ____ _ __ __ ___ |</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">| |__ / \ / / . \ . \ |</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment">| / / \ V /| _/ _/ |</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment">| / /__ | | | | | | |</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment">| /_____||_| |_| |_| |</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment">| |</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment">\---------------------------------------------------------------------*/</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="preprocessor">#ifndef ZYPP_CONTENTTYPE_H</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="preprocessor">#define ZYPP_CONTENTTYPE_H</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> </div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="preprocessor">#include <iosfwd></span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="preprocessor">#include <string></span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="preprocessor">#include <stdexcept></span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> </div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="keyword">namespace </span><a class="code" href="namespacezypp.html">zypp</a></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> {</div><div class="line"><a name="l00029"></a><span class="lineno"><a class="line" href="classzypp_1_1ContentType.html"> 29</a></span>  <span class="keyword">class </span><a class="code" href="classzypp_1_1ContentType.html">ContentType</a></div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  {</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  <span class="keyword">public</span>:</div><div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="classzypp_1_1ContentType.html#a7f9b93b4656a173f962fc102c5bec5a5"> 33</a></span>  <a class="code" href="classzypp_1_1ContentType.html#a7f9b93b4656a173f962fc102c5bec5a5">ContentType</a>()</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  {}</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span> </div><div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="classzypp_1_1ContentType.html#a925644858a1ab9497d78774db87c3cfe"> 39</a></span>  <span class="keyword">explicit</span> <a class="code" href="classzypp_1_1ContentType.html#a925644858a1ab9497d78774db87c3cfe">ContentType</a>( std::string type_r )</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  {</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  <a class="code" href="namespacezypp_1_1sat_1_1detail.html#ac0d3ca93132eee14b022898f23b49d07">std::string::size_type</a> pos = type_r.find( <span class="stringliteral">"/"</span> );</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  <span class="keywordflow">if</span> ( pos != std::string::npos )</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  {</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  <a class="code" href="classzypp_1_1ContentType.html#adba100b0371a252017b59dc5ab76be95">testAndSet</a>( <a class="code" href="classzypp_1_1ContentType.html#a8395f56a5d8eb03618b4c92b26c20dc0">_subtype</a>, type_r.substr( pos+1 ) );</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  type_r.erase( pos );</div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  }</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  <a class="code" href="classzypp_1_1ContentType.html#adba100b0371a252017b59dc5ab76be95">testAndSet</a>( <a class="code" href="classzypp_1_1ContentType.html#a58024f7908ce212db9cfb52e8e8eba8c">_type</a>, std::move(type_r) );</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  }</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span> </div><div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="classzypp_1_1ContentType.html#a2944e0df005ac97b9426a933f2eb3131"> 53</a></span>  <a class="code" href="classzypp_1_1ContentType.html#a2944e0df005ac97b9426a933f2eb3131">ContentType</a>( std::string type_r, std::string subtype_r )</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  {</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  <a class="code" href="classzypp_1_1ContentType.html#adba100b0371a252017b59dc5ab76be95">testAndSet</a>( <a class="code" href="classzypp_1_1ContentType.html#a58024f7908ce212db9cfb52e8e8eba8c">_type</a>, std::move(type_r) );</div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  <a class="code" href="classzypp_1_1ContentType.html#adba100b0371a252017b59dc5ab76be95">testAndSet</a>( <a class="code" href="classzypp_1_1ContentType.html#a8395f56a5d8eb03618b4c92b26c20dc0">_subtype</a>, std::move(subtype_r) );</div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  }</div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span> </div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  <span class="keyword">public</span>:</div><div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="classzypp_1_1ContentType.html#aa3ecec35d1e8ea9176b04002bcd3f4ca"> 61</a></span>  <span class="keyword">const</span> std::string & <a class="code" href="classzypp_1_1ContentType.html#aa3ecec35d1e8ea9176b04002bcd3f4ca">type</a>()<span class="keyword"> const</span></div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span> <span class="keyword"> </span>{ <span class="keywordflow">return</span> <a class="code" href="classzypp_1_1ContentType.html#a58024f7908ce212db9cfb52e8e8eba8c">_type</a>; }</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span> </div><div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="classzypp_1_1ContentType.html#ac76a71ec1db0fe10f3d8b2d85d96f154"> 67</a></span>  <span class="keywordtype">void</span> <a class="code" href="classzypp_1_1ContentType.html#ac76a71ec1db0fe10f3d8b2d85d96f154">type</a>( std::string type_r )</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  { <a class="code" href="classzypp_1_1ContentType.html#a58024f7908ce212db9cfb52e8e8eba8c">_type</a> = std::move(type_r); }</div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span> </div><div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="classzypp_1_1ContentType.html#a46face6075fd99ff30684c99e31a0369"> 71</a></span>  <span class="keyword">const</span> std::string & <a class="code" href="classzypp_1_1ContentType.html#a46face6075fd99ff30684c99e31a0369">subtype</a>()<span class="keyword"> const</span></div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span> <span class="keyword"> </span>{ <span class="keywordflow">return</span> <a class="code" href="classzypp_1_1ContentType.html#a8395f56a5d8eb03618b4c92b26c20dc0">_subtype</a>; }</div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span> </div><div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="classzypp_1_1ContentType.html#a5e234a6485ada4552b9ea8ee9c0cb776"> 77</a></span>  <span class="keywordtype">void</span> <a class="code" href="classzypp_1_1ContentType.html#a5e234a6485ada4552b9ea8ee9c0cb776">subtype</a>( std::string subtype_r )</div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  { <a class="code" href="classzypp_1_1ContentType.html#a8395f56a5d8eb03618b4c92b26c20dc0">_subtype</a> = std::move(subtype_r); }</div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span> </div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  <span class="keyword">public</span>:</div><div class="line"><a name="l00082"></a><span class="lineno"><a class="line" href="classzypp_1_1ContentType.html#a959fd18d35f7c531ba11a30a0f62caff"> 82</a></span>  <span class="keywordtype">bool</span> <a class="code" href="classzypp_1_1ContentType.html#a959fd18d35f7c531ba11a30a0f62caff">empty</a>()<span class="keyword"> const</span></div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span> <span class="keyword"> </span>{ <span class="keywordflow">return</span> <a class="code" href="classzypp_1_1ContentType.html#acf177a5cea357406520a030035189d79">emptyType</a>() && <a class="code" href="classzypp_1_1ContentType.html#a4b5819a797c9bc18abd755d15b884738">emptySubtype</a>(); }</div><div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="classzypp_1_1ContentType.html#acf177a5cea357406520a030035189d79"> 85</a></span>  <span class="keywordtype">bool</span> <a class="code" href="classzypp_1_1ContentType.html#acf177a5cea357406520a030035189d79">emptyType</a>()<span class="keyword"> const</span></div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span> <span class="keyword"> </span>{ <span class="keywordflow">return</span> <a class="code" href="classzypp_1_1ContentType.html#a58024f7908ce212db9cfb52e8e8eba8c">_type</a>.empty(); }</div><div class="line"><a name="l00088"></a><span class="lineno"><a class="line" href="classzypp_1_1ContentType.html#a4b5819a797c9bc18abd755d15b884738"> 88</a></span>  <span class="keywordtype">bool</span> <a class="code" href="classzypp_1_1ContentType.html#a4b5819a797c9bc18abd755d15b884738">emptySubtype</a>()<span class="keyword"> const</span></div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span> <span class="keyword"> </span>{ <span class="keywordflow">return</span> <a class="code" href="classzypp_1_1ContentType.html#a8395f56a5d8eb03618b4c92b26c20dc0">_subtype</a>.empty(); }</div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span> </div><div class="line"><a name="l00092"></a><span class="lineno"><a class="line" href="classzypp_1_1ContentType.html#a8ec2c736f76534afde6c55fb4bf22c7d"> 92</a></span>  <span class="keyword">explicit</span> <span class="keyword">operator</span> <a class="code" href="classbool.html">bool</a> ()<span class="keyword"> const</span></div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span> <span class="keyword"> </span>{ <span class="keywordflow">return</span> !<a class="code" href="classzypp_1_1ContentType.html#a959fd18d35f7c531ba11a30a0f62caff">empty</a>(); }</div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span> </div><div class="line"><a name="l00096"></a><span class="lineno"><a class="line" href="classzypp_1_1ContentType.html#ad2a0a9f079ea1ca29b24117f9521f467"> 96</a></span>  std::string <a class="code" href="classzypp_1_1ContentType.html#ad2a0a9f079ea1ca29b24117f9521f467">asString</a>()<span class="keyword"> const</span></div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span> <span class="keyword"> </span>{ std::string ret( <a class="code" href="classzypp_1_1ContentType.html#aa3ecec35d1e8ea9176b04002bcd3f4ca">type</a>() ); <span class="keywordflow">if</span> ( ! <a class="code" href="classzypp_1_1ContentType.html#a4b5819a797c9bc18abd755d15b884738">emptySubtype</a>() ) { ret += <span class="stringliteral">"/"</span>; ret += <a class="code" href="classzypp_1_1ContentType.html#a46face6075fd99ff30684c99e31a0369">subtype</a>(); } <span class="keywordflow">return</span> ret; }</div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span> </div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  <span class="keyword">private</span>:</div><div class="line"><a name="l00100"></a><span class="lineno"><a class="line" href="classzypp_1_1ContentType.html#adba100b0371a252017b59dc5ab76be95"> 100</a></span>  <span class="keywordtype">void</span> <a class="code" href="classzypp_1_1ContentType.html#adba100b0371a252017b59dc5ab76be95">testAndSet</a>( std::string & var_r, std::string val_r )</div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  {</div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  <span class="keywordflow">if</span> ( val_r.find_first_of( <span class="stringliteral">"/ \t\r\n"</span> ) != std::string::npos )</div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  <span class="keywordflow">throw</span> std::invalid_argument( <span class="stringliteral">"ContentType: illegal char in '"</span> + val_r + <span class="stringliteral">"'"</span> );</div><div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  var_r = std::move(val_r);</div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  }</div><div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  <span class="keyword">private</span>:</div><div class="line"><a name="l00107"></a><span class="lineno"><a class="line" href="classzypp_1_1ContentType.html#a58024f7908ce212db9cfb52e8e8eba8c"> 107</a></span>  std::string <a class="code" href="classzypp_1_1ContentType.html#a58024f7908ce212db9cfb52e8e8eba8c">_type</a>;</div><div class="line"><a name="l00108"></a><span class="lineno"><a class="line" href="classzypp_1_1ContentType.html#a8395f56a5d8eb03618b4c92b26c20dc0"> 108</a></span>  std::string <a class="code" href="classzypp_1_1ContentType.html#a8395f56a5d8eb03618b4c92b26c20dc0">_subtype</a>;</div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  };</div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span> </div><div class="line"><a name="l00112"></a><span class="lineno"><a class="line" href="classzypp_1_1ContentType.html#a43de1b3d728d859e30de27c9b0e5c0af"> 112</a></span>  <span class="keyword">inline</span> std::ostream & <a class="code" href="classzypp_1_1ContentType.html#a43de1b3d728d859e30de27c9b0e5c0af">operator<<</a>( std::ostream & <a class="code" href="namespacestr.html">str</a>, <span class="keyword">const</span> <a class="code" href="classzypp_1_1ContentType.html">ContentType</a> & obj )</div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  { <span class="keywordflow">return</span> <a class="code" href="namespacestr.html">str</a> << obj.<a class="code" href="classzypp_1_1ContentType.html#ad2a0a9f079ea1ca29b24117f9521f467">asString</a>(); }</div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span> </div><div class="line"><a name="l00116"></a><span class="lineno"><a class="line" href="classzypp_1_1ContentType.html#a1c05c0931be141f9bb535b8712468f33"> 116</a></span>  <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="classzypp_1_1ContentType.html#a1c05c0931be141f9bb535b8712468f33">operator==</a>( <span class="keyword">const</span> <a class="code" href="classzypp_1_1ContentType.html">ContentType</a> & lhs, <span class="keyword">const</span> <a class="code" href="classzypp_1_1ContentType.html">ContentType</a> & rhs )</div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  { <span class="keywordflow">return</span> lhs.<a class="code" href="classzypp_1_1ContentType.html#aa3ecec35d1e8ea9176b04002bcd3f4ca">type</a>() == rhs.<a class="code" href="classzypp_1_1ContentType.html#aa3ecec35d1e8ea9176b04002bcd3f4ca">type</a>() && lhs.<a class="code" href="classzypp_1_1ContentType.html#a46face6075fd99ff30684c99e31a0369">subtype</a>() == rhs.<a class="code" href="classzypp_1_1ContentType.html#a46face6075fd99ff30684c99e31a0369">subtype</a>(); }</div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span> </div><div class="line"><a name="l00120"></a><span class="lineno"><a class="line" href="classzypp_1_1ContentType.html#acd2779d6a1bc749eadca58e23889960c"> 120</a></span>  <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="classzypp_1_1ContentType.html#acd2779d6a1bc749eadca58e23889960c">operator!=</a>( <span class="keyword">const</span> <a class="code" href="classzypp_1_1ContentType.html">ContentType</a> & lhs, <span class="keyword">const</span> <a class="code" href="classzypp_1_1ContentType.html">ContentType</a> & rhs )</div><div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  { <span class="keywordflow">return</span> !( lhs == rhs ); }</div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span> </div><div class="line"><a name="l00124"></a><span class="lineno"><a class="line" href="classzypp_1_1ContentType.html#a92656665e60783f94e7fcbfdb052bfe3"> 124</a></span>  <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="classzypp_1_1ContentType.html#a92656665e60783f94e7fcbfdb052bfe3">operator<</a>( <span class="keyword">const</span> <a class="code" href="classzypp_1_1ContentType.html">ContentType</a> & lhs, <span class="keyword">const</span> <a class="code" href="classzypp_1_1ContentType.html">ContentType</a> & rhs )</div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  { <span class="keywordtype">int</span> cmp = lhs.<a class="code" href="classzypp_1_1ContentType.html#aa3ecec35d1e8ea9176b04002bcd3f4ca">type</a>().compare( rhs.<a class="code" href="classzypp_1_1ContentType.html#aa3ecec35d1e8ea9176b04002bcd3f4ca">type</a>() ); <span class="keywordflow">return</span> cmp < 0 || ( cmp == 0 && lhs.<a class="code" href="classzypp_1_1ContentType.html#a46face6075fd99ff30684c99e31a0369">subtype</a>() < rhs.<a class="code" href="classzypp_1_1ContentType.html#a46face6075fd99ff30684c99e31a0369">subtype</a>() ); }</div><div class="line"><a name="l00126"></a><span class="lineno"> 126</span> </div><div class="line"><a name="l00128"></a><span class="lineno"><a class="line" href="classzypp_1_1ContentType.html#a32817a6e09067ff5cda1e106dd35a5cf"> 128</a></span>  <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="classzypp_1_1ContentType.html#a32817a6e09067ff5cda1e106dd35a5cf">operator<=</a>( <span class="keyword">const</span> <a class="code" href="classzypp_1_1ContentType.html">ContentType</a> & lhs, <span class="keyword">const</span> <a class="code" href="classzypp_1_1ContentType.html">ContentType</a> & rhs )</div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  { <span class="keywordflow">return</span> lhs < rhs || lhs == rhs; }</div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span> </div><div class="line"><a name="l00132"></a><span class="lineno"><a class="line" href="classzypp_1_1ContentType.html#a0264bfd3d9faebcdb01824092adc9067"> 132</a></span>  <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="classzypp_1_1ContentType.html#a0264bfd3d9faebcdb01824092adc9067">operator></a>( <span class="keyword">const</span> <a class="code" href="classzypp_1_1ContentType.html">ContentType</a> & lhs, <span class="keyword">const</span> <a class="code" href="classzypp_1_1ContentType.html">ContentType</a> & rhs )</div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  { <span class="keywordflow">return</span> !( lhs <= rhs ); }</div><div class="line"><a name="l00134"></a><span class="lineno"> 134</span> </div><div class="line"><a name="l00136"></a><span class="lineno"><a class="line" href="classzypp_1_1ContentType.html#a97b68448c638f9081cc4021b8c900013"> 136</a></span>  <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="classzypp_1_1ContentType.html#a97b68448c638f9081cc4021b8c900013">operator>=</a>( <span class="keyword">const</span> <a class="code" href="classzypp_1_1ContentType.html">ContentType</a> & lhs, <span class="keyword">const</span> <a class="code" href="classzypp_1_1ContentType.html">ContentType</a> & rhs )</div><div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  { <span class="keywordflow">return</span> !( lhs < rhs ); }</div><div class="line"><a name="l00138"></a><span class="lineno"> 138</span> </div><div class="line"><a name="l00139"></a><span class="lineno"> 139</span> </div><div class="line"><a name="l00140"></a><span class="lineno"> 140</span> } <span class="comment">// namespace zypp</span></div><div class="line"><a name="l00142"></a><span class="lineno"> 142</span> <span class="comment"></span><span class="preprocessor">#endif // ZYPP_CONTENTTYPE_H</span></div><div class="ttc" id="classzypp_1_1ContentType_html_acd2779d6a1bc749eadca58e23889960c"><div class="ttname"><a href="classzypp_1_1ContentType.html#acd2779d6a1bc749eadca58e23889960c">zypp::ContentType::operator!=</a></div><div class="ttdeci">bool operator!=(const ContentType &lhs, const ContentType &rhs)</div><div class="ttdef"><b>Definition:</b> <a href="ContentType_8h_source.html#l00120">ContentType.h:120</a></div></div> <div class="ttc" id="classzypp_1_1ContentType_html_a92656665e60783f94e7fcbfdb052bfe3"><div class="ttname"><a href="classzypp_1_1ContentType.html#a92656665e60783f94e7fcbfdb052bfe3">zypp::ContentType::operator<</a></div><div class="ttdeci">bool operator<(const ContentType &lhs, const ContentType &rhs)</div><div class="ttdef"><b>Definition:</b> <a href="ContentType_8h_source.html#l00124">ContentType.h:124</a></div></div> <div class="ttc" id="classzypp_1_1ContentType_html_a0264bfd3d9faebcdb01824092adc9067"><div class="ttname"><a href="classzypp_1_1ContentType.html#a0264bfd3d9faebcdb01824092adc9067">zypp::ContentType::operator></a></div><div class="ttdeci">bool operator>(const ContentType &lhs, const ContentType &rhs)</div><div class="ttdef"><b>Definition:</b> <a href="ContentType_8h_source.html#l00132">ContentType.h:132</a></div></div> <div class="ttc" id="classzypp_1_1ContentType_html_a5e234a6485ada4552b9ea8ee9c0cb776"><div class="ttname"><a href="classzypp_1_1ContentType.html#a5e234a6485ada4552b9ea8ee9c0cb776">zypp::ContentType::subtype</a></div><div class="ttdeci">void subtype(std::string subtype_r)</div><div class="ttdoc">Set subtype.</div><div class="ttdef"><b>Definition:</b> <a href="ContentType_8h_source.html#l00077">ContentType.h:77</a></div></div> <div class="ttc" id="classzypp_1_1ContentType_html_ac76a71ec1db0fe10f3d8b2d85d96f154"><div class="ttname"><a href="classzypp_1_1ContentType.html#ac76a71ec1db0fe10f3d8b2d85d96f154">zypp::ContentType::type</a></div><div class="ttdeci">void type(std::string type_r)</div><div class="ttdoc">Set type.</div><div class="ttdef"><b>Definition:</b> <a href="ContentType_8h_source.html#l00067">ContentType.h:67</a></div></div> <div class="ttc" id="classzypp_1_1ContentType_html_a97b68448c638f9081cc4021b8c900013"><div class="ttname"><a href="classzypp_1_1ContentType.html#a97b68448c638f9081cc4021b8c900013">zypp::ContentType::operator>=</a></div><div class="ttdeci">bool operator>=(const ContentType &lhs, const ContentType &rhs)</div><div class="ttdef"><b>Definition:</b> <a href="ContentType_8h_source.html#l00136">ContentType.h:136</a></div></div> <div class="ttc" id="namespacestr_html"><div class="ttname"><a href="namespacestr.html">str</a></div><div class="ttdoc">String related utilities and Regular expression matching.</div></div> <div class="ttc" id="classzypp_1_1ContentType_html_a8395f56a5d8eb03618b4c92b26c20dc0"><div class="ttname"><a href="classzypp_1_1ContentType.html#a8395f56a5d8eb03618b4c92b26c20dc0">zypp::ContentType::_subtype</a></div><div class="ttdeci">std::string _subtype</div><div class="ttdef"><b>Definition:</b> <a href="ContentType_8h_source.html#l00108">ContentType.h:108</a></div></div> <div class="ttc" id="classzypp_1_1ContentType_html_a58024f7908ce212db9cfb52e8e8eba8c"><div class="ttname"><a href="classzypp_1_1ContentType.html#a58024f7908ce212db9cfb52e8e8eba8c">zypp::ContentType::_type</a></div><div class="ttdeci">std::string _type</div><div class="ttdef"><b>Definition:</b> <a href="ContentType_8h_source.html#l00107">ContentType.h:107</a></div></div> <div class="ttc" id="classzypp_1_1ContentType_html_a925644858a1ab9497d78774db87c3cfe"><div class="ttname"><a href="classzypp_1_1ContentType.html#a925644858a1ab9497d78774db87c3cfe">zypp::ContentType::ContentType</a></div><div class="ttdeci">ContentType(std::string type_r)</div><div class="ttdoc">Ctor taking "type[/subtype]"</div><div class="ttdef"><b>Definition:</b> <a href="ContentType_8h_source.html#l00039">ContentType.h:39</a></div></div> <div class="ttc" id="classzypp_1_1ContentType_html_ad2a0a9f079ea1ca29b24117f9521f467"><div class="ttname"><a href="classzypp_1_1ContentType.html#ad2a0a9f079ea1ca29b24117f9521f467">zypp::ContentType::asString</a></div><div class="ttdeci">std::string asString() const</div><div class="ttdoc">String representation "type[/subtype]"</div><div class="ttdef"><b>Definition:</b> <a href="ContentType_8h_source.html#l00096">ContentType.h:96</a></div></div> <div class="ttc" id="classzypp_1_1ContentType_html_a959fd18d35f7c531ba11a30a0f62caff"><div class="ttname"><a href="classzypp_1_1ContentType.html#a959fd18d35f7c531ba11a30a0f62caff">zypp::ContentType::empty</a></div><div class="ttdeci">bool empty() const</div><div class="ttdoc">Whether type and subtype are empty.</div><div class="ttdef"><b>Definition:</b> <a href="ContentType_8h_source.html#l00082">ContentType.h:82</a></div></div> <div class="ttc" id="classzypp_1_1ContentType_html_a1c05c0931be141f9bb535b8712468f33"><div class="ttname"><a href="classzypp_1_1ContentType.html#a1c05c0931be141f9bb535b8712468f33">zypp::ContentType::operator==</a></div><div class="ttdeci">bool operator==(const ContentType &lhs, const ContentType &rhs)</div><div class="ttdef"><b>Definition:</b> <a href="ContentType_8h_source.html#l00116">ContentType.h:116</a></div></div> <div class="ttc" id="classzypp_1_1ContentType_html_a43de1b3d728d859e30de27c9b0e5c0af"><div class="ttname"><a href="classzypp_1_1ContentType.html#a43de1b3d728d859e30de27c9b0e5c0af">zypp::ContentType::operator<<</a></div><div class="ttdeci">std::ostream & operator<<(std::ostream &str, const ContentType &obj)</div><div class="ttdef"><b>Definition:</b> <a href="ContentType_8h_source.html#l00112">ContentType.h:112</a></div></div> <div class="ttc" id="classzypp_1_1ContentType_html_adba100b0371a252017b59dc5ab76be95"><div class="ttname"><a href="classzypp_1_1ContentType.html#adba100b0371a252017b59dc5ab76be95">zypp::ContentType::testAndSet</a></div><div class="ttdeci">void testAndSet(std::string &var_r, std::string val_r)</div><div class="ttdef"><b>Definition:</b> <a href="ContentType_8h_source.html#l00100">ContentType.h:100</a></div></div> <div class="ttc" id="classzypp_1_1ContentType_html_a2944e0df005ac97b9426a933f2eb3131"><div class="ttname"><a href="classzypp_1_1ContentType.html#a2944e0df005ac97b9426a933f2eb3131">zypp::ContentType::ContentType</a></div><div class="ttdeci">ContentType(std::string type_r, std::string subtype_r)</div><div class="ttdoc">Ctor taking type and subtype.</div><div class="ttdef"><b>Definition:</b> <a href="ContentType_8h_source.html#l00053">ContentType.h:53</a></div></div> <div class="ttc" id="classzypp_1_1ContentType_html_acf177a5cea357406520a030035189d79"><div class="ttname"><a href="classzypp_1_1ContentType.html#acf177a5cea357406520a030035189d79">zypp::ContentType::emptyType</a></div><div class="ttdeci">bool emptyType() const</div><div class="ttdoc">Whether type is empty.</div><div class="ttdef"><b>Definition:</b> <a href="ContentType_8h_source.html#l00085">ContentType.h:85</a></div></div> <div class="ttc" id="classzypp_1_1ContentType_html_a7f9b93b4656a173f962fc102c5bec5a5"><div class="ttname"><a href="classzypp_1_1ContentType.html#a7f9b93b4656a173f962fc102c5bec5a5">zypp::ContentType::ContentType</a></div><div class="ttdeci">ContentType()</div><div class="ttdoc">Default ctor: empty.</div><div class="ttdef"><b>Definition:</b> <a href="ContentType_8h_source.html#l00033">ContentType.h:33</a></div></div> <div class="ttc" id="namespacezypp_1_1sat_1_1detail_html_ac0d3ca93132eee14b022898f23b49d07"><div class="ttname"><a href="namespacezypp_1_1sat_1_1detail.html#ac0d3ca93132eee14b022898f23b49d07">zypp::sat::detail::size_type</a></div><div class="ttdeci">SolvableIdType size_type</div><div class="ttdef"><b>Definition:</b> <a href="PoolMember_8h_source.html#l00152">PoolMember.h:152</a></div></div> <div class="ttc" id="classzypp_1_1ContentType_html_aa3ecec35d1e8ea9176b04002bcd3f4ca"><div class="ttname"><a href="classzypp_1_1ContentType.html#aa3ecec35d1e8ea9176b04002bcd3f4ca">zypp::ContentType::type</a></div><div class="ttdeci">const std::string & type() const</div><div class="ttdoc">Get type.</div><div class="ttdef"><b>Definition:</b> <a href="ContentType_8h_source.html#l00061">ContentType.h:61</a></div></div> <div class="ttc" id="classzypp_1_1ContentType_html_a32817a6e09067ff5cda1e106dd35a5cf"><div class="ttname"><a href="classzypp_1_1ContentType.html#a32817a6e09067ff5cda1e106dd35a5cf">zypp::ContentType::operator<=</a></div><div class="ttdeci">bool operator<=(const ContentType &lhs, const ContentType &rhs)</div><div class="ttdef"><b>Definition:</b> <a href="ContentType_8h_source.html#l00128">ContentType.h:128</a></div></div> <div class="ttc" id="classzypp_1_1ContentType_html_a4b5819a797c9bc18abd755d15b884738"><div class="ttname"><a href="classzypp_1_1ContentType.html#a4b5819a797c9bc18abd755d15b884738">zypp::ContentType::emptySubtype</a></div><div class="ttdeci">bool emptySubtype() const</div><div class="ttdoc">Whether subtype is empty.</div><div class="ttdef"><b>Definition:</b> <a href="ContentType_8h_source.html#l00088">ContentType.h:88</a></div></div> <div class="ttc" id="classbool_html"><div class="ttname"><a href="classbool.html">bool</a></div></div> <div class="ttc" id="namespacezypp_html"><div class="ttname"><a href="namespacezypp.html">zypp</a></div><div class="ttdoc">Easy-to use interface to the ZYPP dependency resolver.</div><div class="ttdef"><b>Definition:</b> <a href="CodePitfalls_8doc_source.html#l00001">CodePitfalls.doc:1</a></div></div> <div class="ttc" id="classzypp_1_1ContentType_html_a46face6075fd99ff30684c99e31a0369"><div class="ttname"><a href="classzypp_1_1ContentType.html#a46face6075fd99ff30684c99e31a0369">zypp::ContentType::subtype</a></div><div class="ttdeci">const std::string & subtype() const</div><div class="ttdoc">Get subtype.</div><div class="ttdef"><b>Definition:</b> <a href="ContentType_8h_source.html#l00071">ContentType.h:71</a></div></div> <div class="ttc" id="classzypp_1_1ContentType_html"><div class="ttname"><a href="classzypp_1_1ContentType.html">zypp::ContentType</a></div><div class="ttdoc">Mime type like 'type/subtype' classification of content.</div><div class="ttdef"><b>Definition:</b> <a href="ContentType_8h_source.html#l00029">ContentType.h:29</a></div></div> </div><!-- fragment --></div><!-- contents --> </div><!-- doc-content --> <!-- start footer part --> <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> <ul> <li class="navelem"><a class="el" href="dir_c187b43c6f283d9fc95eff3f44ce072a.html">zypp</a></li><li class="navelem"><a class="el" href="ContentType_8h.html">ContentType.h</a></li> <li class="footer">Generated by <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.15 </li> </ul> </div> </body> </html>