MCPcopy Create free account
hub / github.com/OpenMS/OpenMS / parseClassInfoFromXML

Function parseClassInfoFromXML

tools/common_functions.php:188–301  ·  view source on GitHub ↗

@brief parses the member information form doxygen xml @param class SimpleXML parsed doxygen file @param members Array containing the information. This param is passed per reference, so that it will return changed @param classname Name of the class that will be parsed @param debug The debug level @return Nothing */

($class, &$members, $classname, $debug, $isNested)

Source from the content-addressed store, hash-verified

186 @return Nothing
187*/
188function parseClassInfoFromXML($class, &$members, $classname, $debug, $isNested) {
189
190 foreach($class->compounddef->sectiondef as $section)
191 {
192 foreach($section->memberdef as $member)
193 {
194 #method
195 if($member["kind"] == "function")
196 {
197 #public methods
198 if($member["prot"] == "public")
199 {
200 #name
201 $mem = $member->definition.$member->argsstring;
202
203 #template parameters
204 if(isset($member->templateparamlist))
205 {
206 $first = true;
207 $template = "";
208 foreach($member->templateparamlist->param as $para)
209 {
210 # edited by Clemens 2009-01-15; this seems to work for doxygen 1.5.7.1
211 # (handling of whitespace is horrific, please improve if you know better)
212 if($first)
213 {
214 $template = "template <";
215 $first = false;
216 }
217 else
218 {
219 $template .= ",";
220 }
221 if(isset($para->type))
222 {
223 $template .= " ".$para->type;
224 $template = trim($template);
225 }
226 if(isset($para->type->ref))
227 {
228 $template .= " ".$para->type->ref;
229 $template = trim($template);
230 }
231 if(isset($para->defname))
232 {
233 $template .= " ".$para->defname;
234 $template = trim($template);
235 }
236 }
237 if(!$first)
238 {
239 $template .= " > ";
240 }
241 $mem = $template.$mem;
242 }
243
244 if($debug > 4)
245 {

Callers 1

getClassInfoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected