libSBML C API  libSBML 5.20.2 C API
Loading...
Searching...
No Matches
printRegisteredPackages.c

Prints the SBML Level 3 packages registered/installed in this copy of libSBML.

Prints the SBML Level 3 packages registered/installed in this copy of libSBML.

/**
* @file printRegisteredPackages.cpp
* @brief Prints the registerd packages for this libSBML
* @author Frank Bergmann
*
* <!--------------------------------------------------------------------------
* This sample program is distributed under a different license than the rest
* of libSBML. This program uses the open-source MIT license, as follows:
*
* Copyright (c) 2013-2018 by the California Institute of Technology
* (California, USA), the European Bioinformatics Institute (EMBL-EBI, UK)
* and the University of Heidelberg (Germany), with support from the National
* Institutes of Health (USA) under grant R01GM070923. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
* DEALINGS IN THE SOFTWARE.
*
* Neither the name of the California Institute of Technology (Caltech), nor
* of the European Bioinformatics Institute (EMBL-EBI), nor of the University
* of Heidelberg, nor the names of any contributors, may be used to endorse
* or promote products derived from this software without specific prior
* written permission.
* ------------------------------------------------------------------------ -->
*/
#include <stdio.h>
#include <sbml/SBMLTypes.h>
int
main (int argc, char* argv[])
{
unsigned int i;
List_t* list;
printf ("This version of LibSBML: %s includes: \n", getLibSBMLDottedVersion());
for (i = 0; i < List_size(list); i++)
{
printf("\t%s\n", (char*)List_get(list, i));
}
printf("\n");
List_freeItems(list, safe_free, void);
List_free(list);
return 0;
}
void List_free(List_t *lst)
@_tendcond_t
Definition List.cpp:444
void * List_get(const List_t *lst, unsigned int n)
@_tif_t _tconly_t @_tmemberof_t _tList_t_t @_tendif_t
Definition List.cpp:525
unsigned int List_size(const List_t *lst)
@_tif_t _tconly_t @_tmemberof_t _tList_t_t @_tendif_t
Definition List.cpp:567
#define List_freeItems(list, free_item, type)
@_tendcond_t
Definition List.h:383
The registry class for tracking package extensions.
List_t * SBMLExtensionRegistry_getRegisteredPackages()
_tReturns_t _ta_t _tlist_t _tof_t _tregistered_t _tpackages_t (_tsuch_t _tas_t '_tlayout_t',...
Include all SBML types in a single header file.
const char * getLibSBMLDottedVersion()
_tReturns_t _tthe_t _tversion_t _tnumber_t _tof_t _tthis_t _tcopy_t _tof_t _tlibSBML_t _tas_t _ta_t _...
Definition libsbml-version.cpp:79