ModelHistory I/O.
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.

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. | |
| Date_t* Date_clone | ( | const Date_t * | date | ) |
Creates a deep copy of the given Date_t structure.
| date | the Date_t structure to be copied |
| Date_t* Date_createFromString | ( | const char * | date | ) |
Creates a date from a string.
| date | a string representing the date. |
| 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.
| year | an unsigned int representing the year. |
| month | an unsigned int representing the month. |
| day | an unsigned int representing the day. |
| hour | an unsigned int representing the hour. |
| minute | an unsigned int representing the minute. |
| second | an unsigned int representing the second. |
| sign | an unsigned int representing the sign of the offset (0/1 equivalent to +/-). |
| hoursOffset | an unsigned int representing the hoursOffset. |
| minutesOffset | an unsigned int representing the minutesOffset. |
| const char* Date_getDateAsString | ( | Date_t * | date | ) |
Returns the Date as a string.
| date | the Date_t structure to be queried |
| unsigned int Date_getDay | ( | Date_t * | date | ) |
| unsigned int Date_getHour | ( | Date_t * | date | ) |
| unsigned int Date_getHoursOffset | ( | Date_t * | date | ) |
| unsigned int Date_getMinute | ( | Date_t * | date | ) |
| unsigned int Date_getMinutesOffset | ( | Date_t * | date | ) |
| unsigned int Date_getMonth | ( | Date_t * | date | ) |
| unsigned int Date_getSecond | ( | Date_t * | date | ) |
| unsigned int Date_getSignOffset | ( | Date_t * | date | ) |
| unsigned int Date_getYear | ( | Date_t * | 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.
| date | the Date_t structure to be set |
| str | string representing the date to set. |
| int Date_setDay | ( | Date_t * | date, |
| unsigned int | value | ||
| ) |
Sets the value of the day checking appropriateness.
| date | the Date_t structure to be set |
| value | an unsigned int representing the day to set. |
| int Date_setHour | ( | Date_t * | date, |
| unsigned int | value | ||
| ) |
Sets the value of the hour checking appropriateness.
| date | the Date_t structure to be set |
| value | an unsigned int representing the hour to set. |
| int Date_setHoursOffset | ( | Date_t * | date, |
| unsigned int | value | ||
| ) |
Sets the value of the offset hour checking appropriateness.
| date | the Date_t structure to be set |
| value | an unsigned int representing the hours of the offset to set. |
| int Date_setMinute | ( | Date_t * | date, |
| unsigned int | value | ||
| ) |
Sets the value of the minute checking appropriateness.
| date | the Date_t structure to be set |
| value | an unsigned int representing the minute to set. |
| int Date_setMinutesOffset | ( | Date_t * | date, |
| unsigned int | value | ||
| ) |
Sets the value of the offset minutes checking appropriateness.
| date | the Date_t structure to be set |
| value | an unsigned int representing the minutes of the offset to set. |
| int Date_setMonth | ( | Date_t * | date, |
| unsigned int | value | ||
| ) |
Sets the value of the month checking appropriateness.
| date | the Date_t structure to be set |
| value | an unsigned int representing the month to set. |
| int Date_setSecond | ( | Date_t * | date, |
| unsigned int | value | ||
| ) |
Sets the value of the second checking appropriateness.
| date | the Date_t structure to be set |
| value | an unsigned int representing the second to set. |
| int Date_setSignOffset | ( | Date_t * | date, |
| unsigned int | value | ||
| ) |
Sets the value of the offset sign checking appropriateness.
| date | the Date_t structure to be set |
| value | an unsigned int representing the sign of the offset to set. |
| int Date_setYear | ( | Date_t * | date, |
| unsigned int | value | ||
| ) |
Sets the value of the year checking appropriateness.
| date | the Date_t structure to be set |
| value | an unsigned int representing the year to set. |
| ModelCreator_t* ModelCreator_clone | ( | const ModelCreator_t * | mc | ) |
Creates a deep copy of the given ModelCreator_t structure.
| mc | the ModelCreator_t structure to be copied |
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.
| mc | ModelCreator_t structure to be freed. |
| const char* ModelCreator_getEmail | ( | ModelCreator_t * | mc | ) |
Returns the email from the ModelCreator.
| mc | the ModelCreator_t structure to be queried |
| const char* ModelCreator_getFamilyName | ( | ModelCreator_t * | mc | ) |
Returns the familyName from the ModelCreator.
| mc | the ModelCreator_t structure to be queried |
| const char* ModelCreator_getGivenName | ( | ModelCreator_t * | mc | ) |
Returns the givenName from the ModelCreator.
| mc | the ModelCreator_t structure to be queried |
| const char* ModelCreator_getOrganisation | ( | ModelCreator_t * | mc | ) |
Returns the organization from the ModelCreator.
| mc | the ModelCreator_t structure to be queried |
| const char* ModelCreator_getOrganization | ( | ModelCreator_t * | mc | ) |
Returns the organization from the ModelCreator.
| mc | the ModelCreator_t structure to be queried |
| int ModelCreator_hasRequiredAttributes | ( | ModelCreator_t * | mc | ) |
| int ModelCreator_isSetEmail | ( | ModelCreator_t * | mc | ) |
Predicate indicating whether this ModelCreator's email is set.
| mc | the ModelCreator_t structure to be queried |
| int ModelCreator_isSetFamilyName | ( | ModelCreator_t * | mc | ) |
Predicate indicating whether this ModelCreator's familyName is set.
| mc | the ModelCreator_t structure to be queried |
| int ModelCreator_isSetGivenName | ( | ModelCreator_t * | mc | ) |
Predicate indicating whether this ModelCreator's givenName is set.
| mc | the ModelCreator_t structure to be queried |
| int ModelCreator_isSetOrganisation | ( | ModelCreator_t * | mc | ) |
Predicate indicating whether this ModelCreator's organization is set.
| mc | the ModelCreator_t structure to be queried |
| int ModelCreator_isSetOrganization | ( | ModelCreator_t * | mc | ) |
Predicate indicating whether this ModelCreator's organization is set.
| mc | the ModelCreator_t structure to be queried |
| int ModelCreator_setEmail | ( | ModelCreator_t * | mc, |
| char * | |||
| ) |
Sets the email.
| mc | the ModelCreator_t structure |
| a string representing the email of the ModelCreator. |
| int ModelCreator_setFamilyName | ( | ModelCreator_t * | mc, |
| char * | name | ||
| ) |
Sets the family name.
| mc | the ModelCreator_t structure |
| name | a string representing the familyName of the ModelCreator. |
| int ModelCreator_setGivenName | ( | ModelCreator_t * | mc, |
| char * | name | ||
| ) |
Sets the given name.
| mc | the ModelCreator_t structure |
| name | a string representing the givenName of the ModelCreator. |
| int ModelCreator_setOrganisation | ( | ModelCreator_t * | mc, |
| char * | org | ||
| ) |
Sets the organization.
| mc | the ModelCreator_t structure |
| org | a string representing the organisation of the ModelCreator. |
| int ModelCreator_setOrganization | ( | ModelCreator_t * | mc, |
| char * | org | ||
| ) |
Sets the organization.
| mc | the ModelCreator_t structure |
| org | a string representing the organisation of the ModelCreator. |
| int ModelCreator_unsetEmail | ( | ModelCreator_t * | mc | ) |
Unsets the email of this ModelCreator.
| mc | the ModelCreator_t structure. |
| int ModelCreator_unsetFamilyName | ( | ModelCreator_t * | mc | ) |
Unsets the familyName of this ModelCreator.
| mc | the ModelCreator_t structure. |
| int ModelCreator_unsetGivenName | ( | ModelCreator_t * | mc | ) |
Unsets the givenName of this ModelCreator.
| mc | the ModelCreator_t structure. |
| int ModelCreator_unsetOrganisation | ( | ModelCreator_t * | mc | ) |
Unsets the organization of this ModelCreator.
| mc | the ModelCreator_t structure. |
| int ModelCreator_unsetOrganization | ( | ModelCreator_t * | mc | ) |
Unsets the organization of this ModelCreator.
| mc | the ModelCreator_t structure. |
| int ModelHistory_addCreator | ( | ModelHistory_t * | mh, |
| ModelCreator_t * | mc | ||
| ) |
Adds a copy of a ModelCreator_t structure to the ModelHistory_t structure.
| mh | the ModelHistory_t structure |
| mc | the ModelCreator_t structure to add. |
| 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.
| mh | the ModelHistory_t structure |
| date | the Date_t structure to add. |
| ModelHistory_t* ModelHistory_clone | ( | const ModelHistory_t * | mh | ) |
Creates a deep copy of the given ModelHistory_t structure.
| mh | the ModelHistory_t structure to be copied |
Creates a new ModelHistory_t structure and returns a pointer to it.
| void ModelHistory_free | ( | ModelHistory_t * | mh | ) |
Destroys this ModelHistory.
| mh | ModelHistory_t structure to be freed. |
Returns the createdDate from the ModelHistory.
| mh | the ModelHistory_t structure |
| ModelCreator_t* ModelHistory_getCreator | ( | ModelHistory_t * | mh, |
| unsigned int | n | ||
| ) |
Get the nth ModelCreator_t structure in this ModelHistory_t.
| mh | the ModelHistory_t structure |
| n | an unsigned int indicating which ModelCreator |
Get the List of ModelCreator objects in this ModelHistory.
| mh | the ModelHistory_t structure |
Get the List of Date objects in the list of ModifiedDates in this ModelHistory.
| mh | the ModelHistory_t structure |
Returns the modifiedDate from the ModelHistory.
| mh | the ModelHistory_t structure |
| 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.
| mh | the ModelHistory_t structure |
| n | an unsigned int indicating which Date |
| unsigned int ModelHistory_getNumCreators | ( | ModelHistory_t * | mh | ) |
Get the number of ModelCreator objects in this ModelHistory.
| mh | the ModelHistory_t structure |
| unsigned int ModelHistory_getNumModifiedDates | ( | ModelHistory_t * | mh | ) |
Get the number of modified Date objects in the list of ModifiedDates in this ModelHistory.
| mh | the ModelHistory_t structure |
| int ModelHistory_hasRequiredAttributes | ( | ModelHistory_t * | mh | ) |
| int ModelHistory_isSetCreatedDate | ( | ModelHistory_t * | mh | ) |
Predicate indicating whether this ModelHistory's createdDate is set.
| mh | the ModelHistory_t structure to be queried |
| int ModelHistory_isSetModifiedDate | ( | ModelHistory_t * | mh | ) |
Predicate indicating whether this ModelHistory's modifiedDate is set.
| mh | the ModelHistory_t structure to be queried |
| int ModelHistory_setCreatedDate | ( | ModelHistory_t * | mh, |
| Date_t * | date | ||
| ) |
Sets the createdDate.
| mh | the ModelHistory_t structure |
| date | the Date_t structure representing the date the ModelHistory was created. |
| int ModelHistory_setModifiedDate | ( | ModelHistory_t * | mh, |
| Date_t * | date | ||
| ) |
Sets the modifiedDate.
| mh | the ModelHistory_t structure |
| date | the Date_t structure representing the date the ModelHistory was modified. |