ModelHistory.cpp File Reference

Detailed Description

ModelHistory I/O.

Author:
Sarah Keating

Copyright (C) 2009-2011 jointly by the following organizations: 1. California Institute of Technology, Pasadena, CA, USA 2. EMBL European Bioinformatics Institute (EBML-EBI), Hinxton, UK

Copyright (C) 2006-2008 by the California Institute of Technology, Pasadena, CA, USA

Copyright (C) 2002-2005 jointly by the following organizations: 1. California Institute of Technology, Pasadena, CA, USA 2. Japan Science and Technology Agency, Japan

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation. A copy of the license agreement is provided in the file named "LICENSE.txt" included with this software distribution. It is also available online at http://sbml.org/software/libsbml/license.html

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

Include dependency graph for ModelHistory.cpp:

Functions

Date_t * Date_clone (const Date_t *date)
 Creates a deep copy of the given Date_t structure.
Date_t * Date_createFromString (const char *date)
 Creates a date from a string.
Date_t * Date_createFromValues (unsigned int year, unsigned int month, unsigned int day, unsigned int hour, unsigned int minute, unsigned int second, unsigned int sign, unsigned int hoursOffset, unsigned int minutesOffset)
 Creates a date optionally from the individual fields entered as numbers.
void Date_free (Date_t *date)
 Destroys this Date.
const char * Date_getDateAsString (Date_t *date)
 Returns the Date as a string.
unsigned int Date_getDay (Date_t *date)
 Returns the day from this Date.
unsigned int Date_getHour (Date_t *date)
 Returns the hour from this Date.
unsigned int Date_getHoursOffset (Date_t *date)
 Returns the hours of the offset from this Date.
unsigned int Date_getMinute (Date_t *date)
 Returns the minute from this Date.
unsigned int Date_getMinutesOffset (Date_t *date)
 Returns the minutes of the offset from this Date.
unsigned int Date_getMonth (Date_t *date)
 Returns the month from this Date.
unsigned int Date_getSecond (Date_t *date)
 Returns the seconds from this Date.
unsigned int Date_getSignOffset (Date_t *date)
 Returns the sign of the offset from this Date.
unsigned int Date_getYear (Date_t *date)
 Returns the year from this Date.
int Date_representsValidDate (Date_t *date)
int Date_setDateAsString (Date_t *date, const char *str)
 Sets the value of the date from a string.
int Date_setDay (Date_t *date, unsigned int value)
 Sets the value of the day checking appropriateness.
int Date_setHour (Date_t *date, unsigned int value)
 Sets the value of the hour checking appropriateness.
int Date_setHoursOffset (Date_t *date, unsigned int value)
 Sets the value of the offset hour checking appropriateness.
int Date_setMinute (Date_t *date, unsigned int value)
 Sets the value of the minute checking appropriateness.
int Date_setMinutesOffset (Date_t *date, unsigned int value)
 Sets the value of the offset minutes checking appropriateness.
int Date_setMonth (Date_t *date, unsigned int value)
 Sets the value of the month checking appropriateness.
int Date_setSecond (Date_t *date, unsigned int value)
 Sets the value of the second checking appropriateness.
int Date_setSignOffset (Date_t *date, unsigned int value)
 Sets the value of the offset sign checking appropriateness.
int Date_setYear (Date_t *date, unsigned int value)
 Sets the value of the year checking appropriateness.
ModelCreator_t * ModelCreator_clone (const ModelCreator_t *mc)
 Creates a deep copy of the given ModelCreator_t structure.
ModelCreator_t * ModelCreator_create ()
 Creates a new ModelCreator_t structure and returns a pointer to it.
ModelCreator_t * ModelCreator_createFromNode (const XMLNode_t *node)
 Creates a new ModelCreator_t structure from an XMLNode_t structure and returns a pointer to it.
void ModelCreator_free (ModelCreator_t *mc)
 Destroys this ModelCreator.
const char * ModelCreator_getEmail (ModelCreator_t *mc)
 Returns the email from the ModelCreator.
const char * ModelCreator_getFamilyName (ModelCreator_t *mc)
 Returns the familyName from the ModelCreator.
const char * ModelCreator_getGivenName (ModelCreator_t *mc)
 Returns the givenName from the ModelCreator.
const char * ModelCreator_getOrganisation (ModelCreator_t *mc)
 Returns the organization from the ModelCreator.
const char * ModelCreator_getOrganization (ModelCreator_t *mc)
 Returns the organization from the ModelCreator.
int ModelCreator_hasRequiredAttributes (ModelCreator_t *mc)
int ModelCreator_isSetEmail (ModelCreator_t *mc)
 Predicate indicating whether this ModelCreator's email is set.
int ModelCreator_isSetFamilyName (ModelCreator_t *mc)
 Predicate indicating whether this ModelCreator's familyName is set.
int ModelCreator_isSetGivenName (ModelCreator_t *mc)
 Predicate indicating whether this ModelCreator's givenName is set.
int ModelCreator_isSetOrganisation (ModelCreator_t *mc)
 Predicate indicating whether this ModelCreator's organization is set.
int ModelCreator_isSetOrganization (ModelCreator_t *mc)
 Predicate indicating whether this ModelCreator's organization is set.
int ModelCreator_setEmail (ModelCreator_t *mc, char *email)
 Sets the email.
int ModelCreator_setFamilyName (ModelCreator_t *mc, char *name)
 Sets the family name.
int ModelCreator_setGivenName (ModelCreator_t *mc, char *name)
 Sets the given name.
int ModelCreator_setOrganisation (ModelCreator_t *mc, char *org)
 Sets the organization.
int ModelCreator_setOrganization (ModelCreator_t *mc, char *org)
 Sets the organization.
int ModelCreator_unsetEmail (ModelCreator_t *mc)
 Unsets the email of this ModelCreator.
int ModelCreator_unsetFamilyName (ModelCreator_t *mc)
 Unsets the familyName of this ModelCreator.
int ModelCreator_unsetGivenName (ModelCreator_t *mc)
 Unsets the givenName of this ModelCreator.
int ModelCreator_unsetOrganisation (ModelCreator_t *mc)
 Unsets the organization of this ModelCreator.
int ModelCreator_unsetOrganization (ModelCreator_t *mc)
 Unsets the organization of this ModelCreator.
int ModelHistory_addCreator (ModelHistory_t *mh, ModelCreator_t *mc)
 Adds a copy of a ModelCreator_t structure to the ModelHistory_t structure.
int ModelHistory_addModifiedDate (ModelHistory_t *mh, Date_t *date)
 Adds a copy of a Date_t structure to the list of modifiedDates in the ModelHistory_t structure.
ModelHistory_t * ModelHistory_clone (const ModelHistory_t *mh)
 Creates a deep copy of the given ModelHistory_t structure.
ModelHistory_t * ModelHistory_create ()
 Creates a new ModelHistory_t structure and returns a pointer to it.
void ModelHistory_free (ModelHistory_t *mh)
 Destroys this ModelHistory.
Date_t * ModelHistory_getCreatedDate (ModelHistory_t *mh)
 Returns the createdDate from the ModelHistory.
ModelCreator_t * ModelHistory_getCreator (ModelHistory_t *mh, unsigned int n)
 Get the nth ModelCreator_t structure in this ModelHistory_t.
List_t * ModelHistory_getListCreators (ModelHistory_t *mh)
 Get the List of ModelCreator objects in this ModelHistory.
List_t * ModelHistory_getListModifiedDates (ModelHistory_t *mh)
 Get the List of Date objects in the list of ModifiedDates in this ModelHistory.
Date_t * ModelHistory_getModifiedDate (ModelHistory_t *mh)
 Returns the modifiedDate from the ModelHistory.
Date_t * ModelHistory_getModifiedDateFromList (ModelHistory_t *mh, unsigned int n)
 Get the nth Date_t structure in the list of ModifiedDates in this ModelHistory_t.
unsigned int ModelHistory_getNumCreators (ModelHistory_t *mh)
 Get the number of ModelCreator objects in this ModelHistory.
unsigned int ModelHistory_getNumModifiedDates (ModelHistory_t *mh)
 Get the number of modified Date objects in the list of ModifiedDates in this ModelHistory.
int ModelHistory_hasRequiredAttributes (ModelHistory_t *mh)
int ModelHistory_isSetCreatedDate (ModelHistory_t *mh)
 Predicate indicating whether this ModelHistory's createdDate is set.
int ModelHistory_isSetModifiedDate (ModelHistory_t *mh)
 Predicate indicating whether this ModelHistory's modifiedDate is set.
int ModelHistory_setCreatedDate (ModelHistory_t *mh, Date_t *date)
 Sets the createdDate.
int ModelHistory_setModifiedDate (ModelHistory_t *mh, Date_t *date)
 Sets the modifiedDate.

Function Documentation

Date_t* Date_clone ( const Date_t *  date)

Creates a deep copy of the given Date_t structure.

Parameters:
datethe Date_t structure to be copied
Returns:
a (deep) copy of the given Date_t structure.
Date_t* Date_createFromString ( const char *  date)

Creates a date from a string.

Parameters:
datea string representing the date.
Returns:
pointer to the newly created Date_t structure.
Note:
the string should be in W3CDTF format YYYY-MM-DDThh:mm:ssTZD (eg 1997-07-16T19:20:30+01:00) where TZD is the time zone designator.
Date_t* Date_createFromValues ( unsigned int  year,
unsigned int  month,
unsigned int  day,
unsigned int  hour,
unsigned int  minute,
unsigned int  second,
unsigned int  sign,
unsigned int  hoursOffset,
unsigned int  minutesOffset 
)

Creates a date optionally from the individual fields entered as numbers.

Parameters:
yearan unsigned int representing the year.
monthan unsigned int representing the month.
dayan unsigned int representing the day.
houran unsigned int representing the hour.
minutean unsigned int representing the minute.
secondan unsigned int representing the second.
signan unsigned int representing the sign of the offset (0/1 equivalent to +/-).
hoursOffsetan unsigned int representing the hoursOffset.
minutesOffsetan unsigned int representing the minutesOffset.
Returns:
pointer to the newly created Date_t structure.
void Date_free ( Date_t *  date)

Destroys this Date.

Parameters:
dateDate_t structure to be freed.
const char* Date_getDateAsString ( Date_t *  date)

Returns the Date as a string.

Parameters:
datethe Date_t structure to be queried
Returns:
the date as a string.
unsigned int Date_getDay ( Date_t *  date)

Returns the day from this Date.

Parameters:
datethe Date_t structure to be queried
Returns:
the day from this Date.
unsigned int Date_getHour ( Date_t *  date)

Returns the hour from this Date.

Parameters:
datethe Date_t structure to be queried
Returns:
the hour from this Date.
unsigned int Date_getHoursOffset ( Date_t *  date)

Returns the hours of the offset from this Date.

Parameters:
datethe Date_t structure to be queried
Returns:
the hours of the offset from this Date.
unsigned int Date_getMinute ( Date_t *  date)

Returns the minute from this Date.

Parameters:
datethe Date_t structure to be queried
Returns:
the minute from this Date.
unsigned int Date_getMinutesOffset ( Date_t *  date)

Returns the minutes of the offset from this Date.

Parameters:
datethe Date_t structure to be queried
Returns:
the minutes of the offset from this Date.
unsigned int Date_getMonth ( Date_t *  date)

Returns the month from this Date.

Parameters:
datethe Date_t structure to be queried
Returns:
the month from this Date.
unsigned int Date_getSecond ( Date_t *  date)

Returns the seconds from this Date.

Parameters:
datethe Date_t structure to be queried
Returns:
the seconds from this Date.
unsigned int Date_getSignOffset ( Date_t *  date)

Returns the sign of the offset from this Date.

Parameters:
datethe Date_t structure to be queried
Returns:
the sign of the offset from this Date.
unsigned int Date_getYear ( Date_t *  date)

Returns the year from this Date.

Parameters:
datethe Date_t structure to be queried
Returns:
the year from this Date.
int Date_setDateAsString ( Date_t *  date,
const char *  str 
)

Sets the value of the date from a string.

Parameters:
datethe Date_t structure to be set
strstring representing the date to set.
Returns:
integer value indicating success/failure of the function. The possible values returned by this function are:
  • LIBSBML_OPERATION_SUCCESS
  • LIBSBML_INVALID_ATTRIBUTE_VALUE
  • LIBSBML_INVALID_OBJECT
int Date_setDay ( Date_t *  date,
unsigned int  value 
)

Sets the value of the day checking appropriateness.

Parameters:
datethe Date_t structure to be set
valuean unsigned int representing the day to set.
Returns:
integer value indicating success/failure of the function. The possible values returned by this function are:
  • LIBSBML_OPERATION_SUCCESS
  • LIBSBML_INVALID_ATTRIBUTE_VALUE
  • LIBSBML_INVALID_OBJECT
int Date_setHour ( Date_t *  date,
unsigned int  value 
)

Sets the value of the hour checking appropriateness.

Parameters:
datethe Date_t structure to be set
valuean unsigned int representing the hour to set.
Returns:
integer value indicating success/failure of the function. The possible values returned by this function are:
  • LIBSBML_OPERATION_SUCCESS
  • LIBSBML_INVALID_ATTRIBUTE_VALUE
  • LIBSBML_INVALID_OBJECT;
int Date_setHoursOffset ( Date_t *  date,
unsigned int  value 
)

Sets the value of the offset hour checking appropriateness.

Parameters:
datethe Date_t structure to be set
valuean unsigned int representing the hours of the offset to set.
Returns:
integer value indicating success/failure of the function. The possible values returned by this function are:
  • LIBSBML_OPERATION_SUCCESS
  • LIBSBML_INVALID_ATTRIBUTE_VALUE
  • LIBSBML_INVALID_OBJECT
int Date_setMinute ( Date_t *  date,
unsigned int  value 
)

Sets the value of the minute checking appropriateness.

Parameters:
datethe Date_t structure to be set
valuean unsigned int representing the minute to set.
Returns:
integer value indicating success/failure of the function. The possible values returned by this function are:
  • LIBSBML_OPERATION_SUCCESS
  • LIBSBML_INVALID_ATTRIBUTE_VALUE
  • LIBSBML_INVALID_OBJECT
int Date_setMinutesOffset ( Date_t *  date,
unsigned int  value 
)

Sets the value of the offset minutes checking appropriateness.

Parameters:
datethe Date_t structure to be set
valuean unsigned int representing the minutes of the offset to set.
Returns:
integer value indicating success/failure of the function. The possible values returned by this function are:
  • LIBSBML_OPERATION_SUCCESS
  • LIBSBML_INVALID_ATTRIBUTE_VALUE
  • LIBSBML_INVALID_OBJECT
int Date_setMonth ( Date_t *  date,
unsigned int  value 
)

Sets the value of the month checking appropriateness.

Parameters:
datethe Date_t structure to be set
valuean unsigned int representing the month to set.
Returns:
integer value indicating success/failure of the function. The possible values returned by this function are:
  • LIBSBML_OPERATION_SUCCESS
  • LIBSBML_INVALID_ATTRIBUTE_VALUE
  • LIBSBML_INVALID_OBJECT
int Date_setSecond ( Date_t *  date,
unsigned int  value 
)

Sets the value of the second checking appropriateness.

Parameters:
datethe Date_t structure to be set
valuean unsigned int representing the second to set.
Returns:
integer value indicating success/failure of the function. The possible values returned by this function are:
  • LIBSBML_OPERATION_SUCCESS
  • LIBSBML_INVALID_ATTRIBUTE_VALUE
  • LIBSBML_INVALID_OBJECT
int Date_setSignOffset ( Date_t *  date,
unsigned int  value 
)

Sets the value of the offset sign checking appropriateness.

Parameters:
datethe Date_t structure to be set
valuean unsigned int representing the sign of the offset to set.
Returns:
integer value indicating success/failure of the function. The possible values returned by this function are:
  • LIBSBML_OPERATION_SUCCESS
  • LIBSBML_INVALID_ATTRIBUTE_VALUE
  • LIBSBML_INVALID_OBJECT
int Date_setYear ( Date_t *  date,
unsigned int  value 
)

Sets the value of the year checking appropriateness.

Parameters:
datethe Date_t structure to be set
valuean unsigned int representing the year to set.
Returns:
integer value indicating success/failure of the function. The possible values returned by this function are:
  • LIBSBML_OPERATION_SUCCESS
  • LIBSBML_INVALID_ATTRIBUTE_VALUE
  • LIBSBML_INVALID_OBJECT

Creates a deep copy of the given ModelCreator_t structure.

Parameters:
mcthe ModelCreator_t structure to be copied
Returns:
a (deep) copy of the given ModelCreator_t structure.

Creates a new ModelCreator_t structure and returns a pointer to it.

Returns:
pointer to newly created ModelCreator_t structure.

Creates a new ModelCreator_t structure from an XMLNode_t structure and returns a pointer to it.

Returns:
pointer to newly created ModelCreator_t structure.

Destroys this ModelCreator.

Parameters:
mcModelCreator_t structure to be freed.
const char* ModelCreator_getEmail ( ModelCreator_t *  mc)

Returns the email from the ModelCreator.

Parameters:
mcthe ModelCreator_t structure to be queried
Returns:
email from the ModelCreator.

Returns the familyName from the ModelCreator.

Parameters:
mcthe ModelCreator_t structure to be queried
Returns:
familyName from the ModelCreator.

Returns the givenName from the ModelCreator.

Parameters:
mcthe ModelCreator_t structure to be queried
Returns:
givenName from the ModelCreator.

Returns the organization from the ModelCreator.

Note:
This function is an alias of ModelCreator_getOrganization().
Parameters:
mcthe ModelCreator_t structure to be queried
Returns:
organization from the ModelCreator.

Returns the organization from the ModelCreator.

Parameters:
mcthe ModelCreator_t structure to be queried
Returns:
organization from the ModelCreator.

Predicate indicating whether this ModelCreator's email is set.

Parameters:
mcthe ModelCreator_t structure to be queried
Returns:
true (non-zero) if the email of this ModelCreator_t structure is set, false (0) otherwise.

Predicate indicating whether this ModelCreator's familyName is set.

Parameters:
mcthe ModelCreator_t structure to be queried
Returns:
true (non-zero) if the familyName of this ModelCreator_t structure is set, false (0) otherwise.

Predicate indicating whether this ModelCreator's givenName is set.

Parameters:
mcthe ModelCreator_t structure to be queried
Returns:
true (non-zero) if the givenName of this ModelCreator_t structure is set, false (0) otherwise.

Predicate indicating whether this ModelCreator's organization is set.

Note:
This function is an alias of ModelCretor_isSetOrganization().
Parameters:
mcthe ModelCreator_t structure to be queried
Returns:
true (non-zero) if the organization of this ModelCreator_t structure is set, false (0) otherwise.

Predicate indicating whether this ModelCreator's organization is set.

Parameters:
mcthe ModelCreator_t structure to be queried
Returns:
true (non-zero) if the organization of this ModelCreator_t structure is set, false (0) otherwise.
int ModelCreator_setEmail ( ModelCreator_t *  mc,
char *  email 
)

Sets the email.

Parameters:
mcthe ModelCreator_t structure
emaila string representing the email of the ModelCreator.
Returns:
integer value indicating success/failure of the function. The possible values returned by this function are:
  • LIBSBML_OPERATION_SUCCESS
  • LIBSBML_INVALID_OBJECT
int ModelCreator_setFamilyName ( ModelCreator_t *  mc,
char *  name 
)

Sets the family name.

Parameters:
mcthe ModelCreator_t structure
namea string representing the familyName of the ModelCreator.
Returns:
integer value indicating success/failure of the function. The possible values returned by this function are:
  • LIBSBML_OPERATION_SUCCESS
  • LIBSBML_INVALID_OBJECT
int ModelCreator_setGivenName ( ModelCreator_t *  mc,
char *  name 
)

Sets the given name.

Parameters:
mcthe ModelCreator_t structure
namea string representing the givenName of the ModelCreator.
Returns:
integer value indicating success/failure of the function. The possible values returned by this function are:
  • LIBSBML_OPERATION_SUCCESS
  • LIBSBML_INVALID_OBJECT
int ModelCreator_setOrganisation ( ModelCreator_t *  mc,
char *  org 
)

Sets the organization.

Parameters:
mcthe ModelCreator_t structure
orga string representing the organisation of the ModelCreator.
Note:
This function is an alias of ModelCretor_setOrganization().
Returns:
integer value indicating success/failure of the function. The possible values returned by this function are:
  • LIBSBML_OPERATION_SUCCESS
  • LIBSBML_INVALID_OBJECT
int ModelCreator_setOrganization ( ModelCreator_t *  mc,
char *  org 
)

Sets the organization.

Parameters:
mcthe ModelCreator_t structure
orga string representing the organisation of the ModelCreator.
Returns:
integer value indicating success/failure of the function. The possible values returned by this function are:
  • LIBSBML_OPERATION_SUCCESS
  • LIBSBML_INVALID_OBJECT

Unsets the email of this ModelCreator.

Parameters:
mcthe ModelCreator_t structure.
Returns:
integer value indicating success/failure of the function. The possible values returned by this function are:
  • LIBSBML_OPERATION_SUCCESS
  • LIBSBML_OPERATION_FAILED
  • LIBSBML_INVALID_OBJECT

Unsets the familyName of this ModelCreator.

Parameters:
mcthe ModelCreator_t structure.
Returns:
integer value indicating success/failure of the function. The possible values returned by this function are:
  • LIBSBML_OPERATION_SUCCESS
  • LIBSBML_OPERATION_FAILED
  • LIBSBML_INVALID_OBJECT

Unsets the givenName of this ModelCreator.

Parameters:
mcthe ModelCreator_t structure.
Returns:
integer value indicating success/failure of the function. The possible values returned by this function are:
  • LIBSBML_OPERATION_SUCCESS
  • LIBSBML_OPERATION_FAILED
  • LIBSBML_INVALID_OBJECT

Unsets the organization of this ModelCreator.

Parameters:
mcthe ModelCreator_t structure.
Note:
This function is an alias of ModelCretor_unsetOrganization().
Returns:
integer value indicating success/failure of the function. The possible values returned by this function are:
  • LIBSBML_OPERATION_SUCCESS
  • LIBSBML_OPERATION_FAILED
  • LIBSBML_INVALID_OBJECT

Unsets the organization of this ModelCreator.

Parameters:
mcthe ModelCreator_t structure.
Returns:
integer value indicating success/failure of the function. The possible values returned by this function are:
  • LIBSBML_OPERATION_SUCCESS
  • LIBSBML_OPERATION_FAILED
  • LIBSBML_INVALID_OBJECT

Adds a copy of a ModelCreator_t structure to the ModelHistory_t structure.

Parameters:
mhthe ModelHistory_t structure
mcthe ModelCreator_t structure to add.
Returns:
integer value indicating success/failure of the function. The possible values returned by this function are:
  • LIBSBML_OPERATION_SUCCESS
  • LIBSBML_INVALID_OBJECT
  • LIBSBML_OPERATION_FAILED

Adds a copy of a Date_t structure to the list of modifiedDates in the ModelHistory_t structure.

Parameters:
mhthe ModelHistory_t structure
datethe Date_t structure to add.

Creates a deep copy of the given ModelHistory_t structure.

Parameters:
mhthe ModelHistory_t structure to be copied
Returns:
a (deep) copy of the given ModelHistory_t structure.

Creates a new ModelHistory_t structure and returns a pointer to it.

Returns:
pointer to newly created ModelHistory_t structure.

Destroys this ModelHistory.

Parameters:
mhModelHistory_t structure to be freed.

Returns the createdDate from the ModelHistory.

Parameters:
mhthe ModelHistory_t structure
Returns:
Date_t structure representing the createdDate from the ModelHistory_t structure.
ModelCreator_t* ModelHistory_getCreator ( ModelHistory_t *  mh,
unsigned int  n 
)

Get the nth ModelCreator_t structure in this ModelHistory_t.

Parameters:
mhthe ModelHistory_t structure
nan unsigned int indicating which ModelCreator
Returns:
the nth ModelCreator of this ModelHistory.

Get the List of ModelCreator objects in this ModelHistory.

Parameters:
mhthe ModelHistory_t structure
Returns:
a pointer to the List_t structure of ModelCreators for this ModelHistory_t structure.

Get the List of Date objects in the list of ModifiedDates in this ModelHistory.

Parameters:
mhthe ModelHistory_t structure
Returns:
a pointer to the List_t structure of Dates for this ModelHistory_t structure.

Returns the modifiedDate from the ModelHistory.

Parameters:
mhthe ModelHistory_t structure
Returns:
Date_t structure representing the modifiedDate from the ModelHistory_t structure.

Get the nth Date_t structure in the list of ModifiedDates in this ModelHistory_t.

Parameters:
mhthe ModelHistory_t structure
nan unsigned int indicating which Date
Returns:
the nth Date in the list of ModifiedDates of this ModelHistory.
Note:
A bug in libSBML meant that originally a ModelHistory object contained only one instance of a ModifiedDate. In fact the MIRIAM annotation expects zero or more modified dates and thus the implementation was changed. To avoid impacting on existing code there is a ditinction between the function ModelHistory_getModifiedDate which requires no index value and this function that indexes into a list.

Get the number of ModelCreator objects in this ModelHistory.

Parameters:
mhthe ModelHistory_t structure
Returns:
the number of ModelCreators in this ModelHistory.

Get the number of modified Date objects in the list of ModifiedDates in this ModelHistory.

Parameters:
mhthe ModelHistory_t structure
Returns:
the number of Dates in the list of ModifiedDates in this ModelHistory.

Predicate indicating whether this ModelHistory's createdDate is set.

Parameters:
mhthe ModelHistory_t structure to be queried
Returns:
true (non-zero) if the createdDate of this ModelHistory_t structure is set, false (0) otherwise.

Predicate indicating whether this ModelHistory's modifiedDate is set.

Parameters:
mhthe ModelHistory_t structure to be queried
Returns:
true (non-zero) if the modifiedDate of this ModelHistory_t structure is set, false (0) otherwise.

Sets the createdDate.

Parameters:
mhthe ModelHistory_t structure
datethe Date_t structure representing the date the ModelHistory was created.
Returns:
integer value indicating success/failure of the function. The possible values returned by this function are:
  • LIBSBML_OPERATION_SUCCESS
  • LIBSBML_INVALID_OBJECT

Sets the modifiedDate.

Parameters:
mhthe ModelHistory_t structure
datethe Date_t structure representing the date the ModelHistory was modified.
Returns:
integer value indicating success/failure of the function. The possible values returned by this function are:
  • LIBSBML_OPERATION_SUCCESS
  • LIBSBML_INVALID_OBJECT
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines