1 //------------------------------------------------------------------------------
2 // <auto-generated />
3 //
4 // This file was automatically generated by SWIG (http://www.swig.org).
5 // Version 4.0.2
6 //
7 // Do not make changes to this file unless you know what you are doing--modify
8 // the SWIG interface file instead.
9 //------------------------------------------------------------------------------
10 
11 namespace libsbml {
12 
13  using System;
14  using System.Runtime.InteropServices;
15 
16 /**
17  * @sbmlpackage{core}
18  *
19 @htmlinclude pkg-marker-core.html Set of configuration option values for a converter.
20  *
21  * @htmlinclude libsbml-facility-only-warning.html
22  *
23  * LibSBML provides a number of converters that can perform transformations
24  * on SBML documents. The properties of SBML converters are communicated
25  * using objects of class ConversionProperties, and within such objects,
26  * individual options are encapsulated using ConversionOption objects.  The
27  * ConversionProperties class provides numerous methods for setting and
28  * getting options.
29  *
30  * ConversionProperties objects are also used to determine the target SBML
31  * namespace when an SBML converter's behavior depends on the intended
32  * Level+Version combination of SBML.  In addition, it is conceivable that
33  * conversions may be affected by SBML Level&nbsp;3 packages being used by an
34  * SBML document; consequently, the packages in use are also communicated by
35  * the values of the SBML namespaces set on a ConversionProperties object.
36  *
37  *
38  * @section using-converters General information about the use of SBML converters
39  *
40  * The use of all the converters follows a similar approach.  First, one
41  * creates a ConversionProperties object and calls
42  * ConversionProperties::addOption(@if java ConversionOption@endif)
43  * on this object with one argument: a text string that identifies the desired
44  * converter.  (The text string is specific to each converter; consult the
45  * documentation for a given converter to find out how it should be enabled.)
46  *
47  * Next, for some converters, the caller can optionally set some
48  * converter-specific properties using additional calls to
49  * ConversionProperties::addOption(@if java ConversionOption@endif).
50  * Many converters provide the ability to
51  * configure their behavior to some extent; this is realized through the use
52  * of properties that offer different options.  The default property values
53  * for each converter can be interrogated using the method
54  * SBMLConverter::getDefaultProperties() on the converter class in question .
55  *
56  * Finally, the caller should invoke the method
57  * SBMLDocument::convert(@if java ConversionProperties@endif)
58  * with the ConversionProperties object as an argument.
59  *
60  * @subsection converter-example Example of invoking an SBML converter
61  *
62  * The following code fragment illustrates an example using
63  * SBMLReactionConverter, which is invoked using the option string
64  * @c 'replaceReactions':
65  *
66  * @if cpp
67  * @code{.cpp}
68 ConversionProperties props;
69 props.addOption('replaceReactions');
70 @endcode
71 @endif
72 @if python
73 @code{.py}
74 config = ConversionProperties()
75 if config != None:
76   config.addOption('replaceReactions')
77 @endcode
78 @endif
79 @if java
80 @code{.java}
81 ConversionProperties props = new ConversionProperties();
82 if (props != null) {
83   props.addOption('replaceReactions');
84 } else {
85   // Deal with error.
86 }
87 @endcode
88 @endif
89  *
90  * In the case of SBMLReactionConverter, there are no options to affect
91  * its behavior, so the next step is simply to invoke the converter on
92  * an SBMLDocument object.  Continuing the example code:
93  *
94  * @if cpp
95  * @code{.cpp}
96 // Assume that the variable 'document' has been set to an SBMLDocument object.
97 int status = document->convert(props);
98 if (status != LIBSBML_OPERATION_SUCCESS)
99 {
100   cerr << 'Unable to perform conversion due to the following:' << endl;
101   document->printErrors(cerr);
102 }
103 @endcode
104 @endif
105 @if python
106 @code{.py}
107   # Assume that the variable 'document' has been set to an SBMLDocument object.
108   status = document.convert(config)
109   if status != LIBSBML_OPERATION_SUCCESS:
110     # Handle error somehow.
111     print('Error: conversion failed due to the following:')
112     document.printErrors()
113 @endcode
114 @endif
115 @if java
116 @code{.java}
117   // Assume that the variable 'document' has been set to an SBMLDocument object.
118   status = document.convert(config);
119   if (status != libsbml.LIBSBML_OPERATION_SUCCESS)
120   {
121     // Handle error somehow.
122     System.out.println('Error: conversion failed due to the following:');
123     document.printErrors();
124   }
125 @endcode
126 @endif
127  *
128  * Here is an example of using a converter that offers an option. The
129  * following code invokes SBMLStripPackageConverter to remove the
130  * SBML Level&nbsp;3 @em %Layout package from a model.  It sets the name
131  * of the package to be removed by adding a value for the option named
132  * @c 'package' defined by that converter:
133  *
134  * @if cpp
135  * @code{.cpp}
136 ConversionProperties props;
137 props.addOption('stripPackage');
138 props.addOption('package', 'layout');
139 
140 int status = document->convert(props);
141 if (status != LIBSBML_OPERATION_SUCCESS)
142 {
143     cerr << 'Unable to strip the Layout package from the model';
144     cerr << 'Error returned: ' << status;
145 }
146 @endcode
147 @endif
148 @if python
149 @code{.py}
150 def strip_layout_example(document):
151   config = ConversionProperties()
152   if config != None:
153     config.addOption('stripPackage')
154     config.addOption('package', 'layout')
155     status = document.convert(config)
156     if status != LIBSBML_OPERATION_SUCCESS:
157       # Handle error somehow.
158       print('Error: unable to strip the Layout package.')
159       print('LibSBML returned error: ' + OperationReturnValue_toString(status).strip())
160   else:
161     # Handle error somehow.
162     print('Error: unable to create ConversionProperties object')
163 @endcode
164 @endif
165 @if java
166 @code{.java}
167 ConversionProperties config = new ConversionProperties();
168 if (config != None) {
169   config.addOption('stripPackage');
170   config.addOption('package', 'layout');
171   status = document.convert(config);
172   if (status != LIBSBML_OPERATION_SUCCESS) {
173     // Handle error somehow.
174     System.out.println('Error: unable to strip the Layout package');
175     document.printErrors();
176   }
177 } else {
178   // Handle error somehow.
179   System.out.println('Error: unable to create ConversionProperties object');
180 }
181 @endcode
182 @endif
183  *
184  * @subsection available-converters Available SBML converters in libSBML
185  *
186  * LibSBML provides a number of built-in converters; by convention, their
187  * names end in @em Converter. The following are the built-in converters
188  * provided by libSBML @htmlinclude libsbml-version.html:
189  *
190  * @copydetails doc_list_of_libsbml_converters
191  *
192  *
193  *
194  * @see ConversionOption
195  * @see SBMLNamespaces
196  */
197 
198 public class ConversionProperties : global::System.IDisposable {
199 	private HandleRef swigCPtr;
200 	protected bool swigCMemOwn;
201 
ConversionProperties(IntPtr cPtr, bool cMemoryOwn)202 	internal ConversionProperties(IntPtr cPtr, bool cMemoryOwn)
203 	{
204 		swigCMemOwn = cMemoryOwn;
205 		swigCPtr    = new HandleRef(this, cPtr);
206 	}
207 
getCPtr(ConversionProperties obj)208 	internal static HandleRef getCPtr(ConversionProperties obj)
209 	{
210 		return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
211 	}
212 
getCPtrAndDisown(ConversionProperties obj)213 	internal static HandleRef getCPtrAndDisown (ConversionProperties obj)
214 	{
215 		HandleRef ptr = new HandleRef(null, IntPtr.Zero);
216 
217 		if (obj != null)
218 		{
219 			ptr             = obj.swigCPtr;
220 			obj.swigCMemOwn = false;
221 		}
222 
223 		return ptr;
224 	}
225 
~ConversionProperties()226   ~ConversionProperties() {
227     Dispose(false);
228   }
229 
Dispose()230   public void Dispose() {
231     Dispose(true);
232     global::System.GC.SuppressFinalize(this);
233   }
234 
Dispose(bool disposing)235   protected virtual void Dispose(bool disposing) {
236     lock(this) {
237       if (swigCPtr.Handle != global::System.IntPtr.Zero) {
238         if (swigCMemOwn) {
239           swigCMemOwn = false;
240           libsbmlPINVOKE.delete_ConversionProperties(swigCPtr);
241         }
242         swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
243       }
244     }
245   }
246 
247 
248 /**
249    * Constructor that initializes the conversion properties
250    * with a specific SBML target namespace.
251    *
252    * @param targetNS the target namespace to convert to.
253    *
254    * @ifnot hasDefaultArgs @htmlinclude warn-default-args-in-docs.html @endif
255    */ public
ConversionProperties(SBMLNamespaces targetNS)256  ConversionProperties(SBMLNamespaces targetNS) : this(libsbmlPINVOKE.new_ConversionProperties__SWIG_0(SBMLNamespaces.getCPtr(targetNS)), true) {
257   }
258 
259 
260 /**
261    * Constructor that initializes the conversion properties
262    * with a specific SBML target namespace.
263    *
264    * @param targetNS the target namespace to convert to.
265    *
266    * @ifnot hasDefaultArgs @htmlinclude warn-default-args-in-docs.html @endif
267    */ public
ConversionProperties()268  ConversionProperties() : this(libsbmlPINVOKE.new_ConversionProperties__SWIG_1(), true) {
269   }
270 
271 
272 /**
273    * Copy constructor.
274    *
275    * @param orig the object to copy.
276    */ public
ConversionProperties(ConversionProperties orig)277  ConversionProperties(ConversionProperties orig) : this(libsbmlPINVOKE.new_ConversionProperties__SWIG_2(ConversionProperties.getCPtr(orig)), true) {
278     if (libsbmlPINVOKE.SWIGPendingException.Pending) throw libsbmlPINVOKE.SWIGPendingException.Retrieve();
279   }
280 
281 
282 /**
283    * Creates and returns a deep copy of this ConversionProperties object.
284    *
285    * @return the (deep) copy of this ConversionProperties object.
286    */ public new
clone()287  ConversionProperties clone() {
288     global::System.IntPtr cPtr = libsbmlPINVOKE.ConversionProperties_clone(swigCPtr);
289     ConversionProperties ret = (cPtr == global::System.IntPtr.Zero) ? null : new ConversionProperties(cPtr, true);
290     return ret;
291   }
292 
293 
294 /**
295    * Returns the current target SBML namespace.
296    *
297    * @return the SBMLNamepaces object expressing the target namespace.
298    */ public new
getTargetNamespaces()299  SBMLNamespaces getTargetNamespaces() {
300 	SBMLNamespaces ret
301 	    = (SBMLNamespaces) libsbml.DowncastSBMLNamespaces(libsbmlPINVOKE.ConversionProperties_getTargetNamespaces(swigCPtr), false);
302 	return ret;
303 }
304 
305 
306 /**
307    * Returns @c true if the target SBML namespace has been set.
308    *
309    * @return @c true if the target namespace has been set, @c false
310    * otherwise.
311    */ public new
hasTargetNamespaces()312  bool hasTargetNamespaces() {
313     bool ret = libsbmlPINVOKE.ConversionProperties_hasTargetNamespaces(swigCPtr);
314     return ret;
315   }
316 
317 
318 /**
319    * Sets the target namespace.
320    *
321    * @param targetNS the target namespace to use.
322    */ public new
setTargetNamespaces(SBMLNamespaces targetNS)323  void setTargetNamespaces(SBMLNamespaces targetNS) {
324     libsbmlPINVOKE.ConversionProperties_setTargetNamespaces(swigCPtr, SBMLNamespaces.getCPtr(targetNS));
325   }
326 
327 
328 /**
329    * Returns the description string for a given option in this properties
330    * object.
331    *
332    * @param key the key for the option.
333    *
334    * @return the description text of the option with the given key.
335    */ public new
getDescription(string key)336  string getDescription(string key) {
337     string ret = libsbmlPINVOKE.ConversionProperties_getDescription(swigCPtr, key);
338     return ret;
339   }
340 
341 
342 /**
343    * Returns the type of a given option in this properties object.
344    *
345    * @param key the key for the option.
346    *
347    * @return the type of the option with the given key.
348    */ public new
getType(string key)349  int getType(string key) {
350     int ret = libsbmlPINVOKE.ConversionProperties_getType(swigCPtr, key);
351     return ret;
352   }
353 
354 
355 /**
356    * Returns the ConversionOption object for a given key.
357    *
358    * @param key the key for the option.
359    *
360    * @return the option with the given key.
361    */ public new
getOption(string key)362  ConversionOption getOption(string key) {
363     global::System.IntPtr cPtr = libsbmlPINVOKE.ConversionProperties_getOption__SWIG_0(swigCPtr, key);
364     ConversionOption ret = (cPtr == global::System.IntPtr.Zero) ? null : new ConversionOption(cPtr, false);
365     return ret;
366   }
367 
368 
369 /**
370    * Returns the ConversionOption object for the given @p index.
371    *
372    * @param index the index for the option.
373    *
374    * @return the option with the given @p index.
375    */ public new
getOption(int index)376  ConversionOption getOption(int index) {
377     global::System.IntPtr cPtr = libsbmlPINVOKE.ConversionProperties_getOption__SWIG_1(swigCPtr, index);
378     ConversionOption ret = (cPtr == global::System.IntPtr.Zero) ? null : new ConversionOption(cPtr, false);
379     return ret;
380   }
381 
382 
383 /**
384    * Adds a copy of the given option to this properties object.
385    *
386    * @param option the option to add.
387    */ public new
addOption(ConversionOption option)388  void addOption(ConversionOption option) {
389     libsbmlPINVOKE.ConversionProperties_addOption__SWIG_0(swigCPtr, ConversionOption.getCPtr(option));
390     if (libsbmlPINVOKE.SWIGPendingException.Pending) throw libsbmlPINVOKE.SWIGPendingException.Retrieve();
391   }
392 
393 
394 /**
395    * Adds a new ConversionOption object with the given parameters.
396    *
397    * @param key the key for the new option.
398    * @param value (optional) the value of that option.
399    * @param type (optional) the type of the option (see the documentation
400    * for ConversionOption for more information about the types).
401    * @param description (optional) the description for the option.
402    *
403    * @ifnot hasDefaultArgs @htmlinclude warn-default-args-in-docs.html @endif
404    */ public new
addOption(string key, string value, int type, string description)405  void addOption(string key, string value, int type, string description) {
406     libsbmlPINVOKE.ConversionProperties_addOption__SWIG_1(swigCPtr, key, value, type, description);
407   }
408 
409 
410 /**
411    * Adds a new ConversionOption object with the given parameters.
412    *
413    * @param key the key for the new option.
414    * @param value (optional) the value of that option.
415    * @param type (optional) the type of the option (see the documentation
416    * for ConversionOption for more information about the types).
417    * @param description (optional) the description for the option.
418    *
419    * @ifnot hasDefaultArgs @htmlinclude warn-default-args-in-docs.html @endif
420    */ public new
addOption(string key, string value, int type)421  void addOption(string key, string value, int type) {
422     libsbmlPINVOKE.ConversionProperties_addOption__SWIG_2(swigCPtr, key, value, type);
423   }
424 
425 
426 /**
427    * Adds a new ConversionOption object with the given parameters.
428    *
429    * @param key the key for the new option.
430    * @param value (optional) the value of that option.
431    * @param type (optional) the type of the option (see the documentation
432    * for ConversionOption for more information about the types).
433    * @param description (optional) the description for the option.
434    *
435    * @ifnot hasDefaultArgs @htmlinclude warn-default-args-in-docs.html @endif
436    */ public new
addOption(string key, string value)437  void addOption(string key, string value) {
438     libsbmlPINVOKE.ConversionProperties_addOption__SWIG_3(swigCPtr, key, value);
439   }
440 
441 
442 /**
443    * Adds a new ConversionOption object with the given parameters.
444    *
445    * @param key the key for the new option.
446    * @param value (optional) the value of that option.
447    * @param type (optional) the type of the option (see the documentation
448    * for ConversionOption for more information about the types).
449    * @param description (optional) the description for the option.
450    *
451    * @ifnot hasDefaultArgs @htmlinclude warn-default-args-in-docs.html @endif
452    */ public new
addOption(string key)453  void addOption(string key) {
454     libsbmlPINVOKE.ConversionProperties_addOption__SWIG_4(swigCPtr, key);
455   }
456 
457 
458 /**
459    * Adds a new ConversionOption object with the given parameters.
460    *
461    * @param key the key for the new option.
462    * @param value the string value of that option.
463    * @param description (optional) the description for the option.
464    *
465    * @ifnot hasDefaultArgs @htmlinclude warn-default-args-in-docs.html @endif
466    */ public new
addOption(string key, string value, string description)467  void addOption(string key, string value, string description) {
468     libsbmlPINVOKE.ConversionProperties_addOption__SWIG_5(swigCPtr, key, value, description);
469   }
470 
471 
472 /**
473    * Adds a new ConversionOption object with the given parameters.
474    *
475    * @param key the key for the new option.
476    * @param value the boolean value of that option.
477    * @param description (optional) the description for the option.
478    *
479    * @ifnot hasDefaultArgs @htmlinclude warn-default-args-in-docs.html @endif
480    */ public new
addOption(string key, bool value, string description)481  void addOption(string key, bool value, string description) {
482     libsbmlPINVOKE.ConversionProperties_addOption__SWIG_7(swigCPtr, key, value, description);
483   }
484 
485 
486 /**
487    * Adds a new ConversionOption object with the given parameters.
488    *
489    * @param key the key for the new option.
490    * @param value the boolean value of that option.
491    * @param description (optional) the description for the option.
492    *
493    * @ifnot hasDefaultArgs @htmlinclude warn-default-args-in-docs.html @endif
494    */ public new
addOption(string key, bool value)495  void addOption(string key, bool value) {
496     libsbmlPINVOKE.ConversionProperties_addOption__SWIG_8(swigCPtr, key, value);
497   }
498 
499 
500 /**
501    * Adds a new ConversionOption object with the given parameters.
502    *
503    * @param key the key for the new option.
504    * @param value the double value of that option.
505    * @param description (optional) the description for the option.
506    *
507    * @ifnot hasDefaultArgs @htmlinclude warn-default-args-in-docs.html @endif
508    */ public new
addOption(string key, double value, string description)509  void addOption(string key, double value, string description) {
510     libsbmlPINVOKE.ConversionProperties_addOption__SWIG_9(swigCPtr, key, value, description);
511   }
512 
513 
514 /**
515    * Adds a new ConversionOption object with the given parameters.
516    *
517    * @param key the key for the new option.
518    * @param value the double value of that option.
519    * @param description (optional) the description for the option.
520    *
521    * @ifnot hasDefaultArgs @htmlinclude warn-default-args-in-docs.html @endif
522    */ public new
addOption(string key, double value)523  void addOption(string key, double value) {
524     libsbmlPINVOKE.ConversionProperties_addOption__SWIG_10(swigCPtr, key, value);
525   }
526 
527 
528 /**
529    * Adds a new ConversionOption object with the given parameters.
530    *
531    * @param key the key for the new option.
532    * @param value the float value of that option.
533    * @param description (optional) the description for the option.
534    *
535    * @ifnot hasDefaultArgs @htmlinclude warn-default-args-in-docs.html @endif
536    */ public new
addOption(string key, float value, string description)537  void addOption(string key, float value, string description) {
538     libsbmlPINVOKE.ConversionProperties_addOption__SWIG_11(swigCPtr, key, value, description);
539   }
540 
541 
542 /**
543    * Adds a new ConversionOption object with the given parameters.
544    *
545    * @param key the key for the new option.
546    * @param value the float value of that option.
547    * @param description (optional) the description for the option.
548    *
549    * @ifnot hasDefaultArgs @htmlinclude warn-default-args-in-docs.html @endif
550    */ public new
addOption(string key, float value)551  void addOption(string key, float value) {
552     libsbmlPINVOKE.ConversionProperties_addOption__SWIG_12(swigCPtr, key, value);
553   }
554 
555 
556 /**
557    * Adds a new ConversionOption object with the given parameters.
558    *
559    * @param key the key for the new option.
560    * @param value the integer value of that option.
561    * @param description (optional) the description for the option.
562    *
563    * @ifnot hasDefaultArgs @htmlinclude warn-default-args-in-docs.html @endif
564    */ public new
addOption(string key, int value, string description)565  void addOption(string key, int value, string description) {
566     libsbmlPINVOKE.ConversionProperties_addOption__SWIG_13(swigCPtr, key, value, description);
567   }
568 
569 
570 /**
571    * Adds a new ConversionOption object with the given parameters.
572    *
573    * @param key the key for the new option.
574    * @param value the integer value of that option.
575    * @param description (optional) the description for the option.
576    *
577    * @ifnot hasDefaultArgs @htmlinclude warn-default-args-in-docs.html @endif
578    */ public new
addOption(string key, int value)579  void addOption(string key, int value) {
580     libsbmlPINVOKE.ConversionProperties_addOption__SWIG_14(swigCPtr, key, value);
581   }
582 
583 
584 /**
585    * Removes the option with the given key from this properties object.
586    *
587    * @param key the key for the new option to remove.
588    * @return the removed option.
589    */ public new
removeOption(string key)590  ConversionOption removeOption(string key) {
591     global::System.IntPtr cPtr = libsbmlPINVOKE.ConversionProperties_removeOption(swigCPtr, key);
592     ConversionOption ret = (cPtr == global::System.IntPtr.Zero) ? null : new ConversionOption(cPtr, true);
593     return ret;
594   }
595 
596 
597 /**
598    * Returns @c true if this properties object contains an option with
599    * the given key.
600    *
601    * @param key the key of the option to find.
602    *
603    * @return @c true if an option with the given @p key exists in
604    * this properties object, @c false otherwise.
605    */ public new
hasOption(string key)606  bool hasOption(string key) {
607     bool ret = libsbmlPINVOKE.ConversionProperties_hasOption(swigCPtr, key);
608     return ret;
609   }
610 
611 
612 /**
613    * Returns the value of the given option as a string.
614    *
615    * @param key the key for the option.
616    *
617    * @return the string value of the option with the given key.
618    */ public new
getValue(string key)619  string getValue(string key) {
620     string ret = libsbmlPINVOKE.ConversionProperties_getValue(swigCPtr, key);
621     return ret;
622   }
623 
624 
625 /**
626    * Sets the value of the given option to a string.
627    *
628    * @param key the key for the option.
629    * @param value the new value.
630    */ public new
setValue(string key, string value)631  void setValue(string key, string value) {
632     libsbmlPINVOKE.ConversionProperties_setValue(swigCPtr, key, value);
633   }
634 
635 
636 /**
637    * Returns the value of the given option as a Boolean.
638    *
639    * @param key the key for the option.
640    *
641    * @return the boolean value of the option with the given key.
642    */ public new
getBoolValue(string key)643  bool getBoolValue(string key) {
644     bool ret = libsbmlPINVOKE.ConversionProperties_getBoolValue(swigCPtr, key);
645     return ret;
646   }
647 
648 
649 /**
650    * Sets the value of the given option to a Boolean.
651    *
652    * @param key the key for the option.
653    *
654    * @param value the new Boolean value.
655    */ public new
setBoolValue(string key, bool value)656  void setBoolValue(string key, bool value) {
657     libsbmlPINVOKE.ConversionProperties_setBoolValue(swigCPtr, key, value);
658   }
659 
660 
661 /**
662    * Returns the value of the given option as a @c double.
663    *
664    * @param key the key for the option.
665    *
666    * @return the double value of the option with the given key.
667    */ public new
getDoubleValue(string key)668  double getDoubleValue(string key) {
669     double ret = libsbmlPINVOKE.ConversionProperties_getDoubleValue(swigCPtr, key);
670     return ret;
671   }
672 
673 
674 /**
675    * Sets the value of the given option to a @c double.
676    *
677    * @param key the key for the option.
678    *
679    * @param value the new double value.
680    */ public new
setDoubleValue(string key, double value)681  void setDoubleValue(string key, double value) {
682     libsbmlPINVOKE.ConversionProperties_setDoubleValue(swigCPtr, key, value);
683   }
684 
685 
686 /**
687    * Returns the value of the given option as a @c float.
688    *
689    * @param key the key for the option.
690    *
691    * @return the float value of the option with the given key.
692    */ public new
getFloatValue(string key)693  float getFloatValue(string key) {
694     float ret = libsbmlPINVOKE.ConversionProperties_getFloatValue(swigCPtr, key);
695     return ret;
696   }
697 
698 
699 /**
700    * Sets the value of the given option to a @c float.
701    *
702    * @param key the key for the option.
703    *
704    * @param value the new float value.
705    */ public new
setFloatValue(string key, float value)706  void setFloatValue(string key, float value) {
707     libsbmlPINVOKE.ConversionProperties_setFloatValue(swigCPtr, key, value);
708   }
709 
710 
711 /**
712    * Returns the value of the given option as an integer.
713    *
714    * @param key the key for the option.
715    *
716    * @return the int value of the option with the given key.
717    */ public new
getIntValue(string key)718  int getIntValue(string key) {
719     int ret = libsbmlPINVOKE.ConversionProperties_getIntValue(swigCPtr, key);
720     return ret;
721   }
722 
723 
724 /**
725    * Sets the value of the given option to an integer.
726    *
727    * @param key the key for the option.
728    *
729    * @param value the new integer value.
730    */ public new
setIntValue(string key, int value)731  void setIntValue(string key, int value) {
732     libsbmlPINVOKE.ConversionProperties_setIntValue(swigCPtr, key, value);
733   }
734 
735 
736 /**
737    * Returns the number of options in this Conversion Properties object
738    *
739    * @return the number of options in this properties object.
740    */ public new
getNumOptions()741  int getNumOptions() {
742     int ret = libsbmlPINVOKE.ConversionProperties_getNumOptions(swigCPtr);
743     return ret;
744   }
745 
746 }
747 
748 }
749