~zorba-coders/zorba/bug1132937

« back to all changes in this revision

Viewing changes to swig/ItemFactory.h

  • Committer: rodolfo.ochoa at gmail
  • Date: 2013-03-27 19:49:18 UTC
  • Revision ID: rodolfo.ochoa@gmail.com-20130327194918-jusrnd7skmyflwqa
- Added DateTimeStamp to the API
- Fix for DocumentType in TypeIdentifier class
- Warning Fix

Show diffs side-by-side

added added

removed removed

Lines of Context:
644
644
     */
645
645
    Item createJSONArray(std::vector<std::string>& aItems);
646
646
 
 
647
    /** \brief Creates a DateTime Item
 
648
     *         see [http://www.w3.org/TR/xmlschema-2/#dateTime]
 
649
     *
 
650
     * @param aYear short-valued representation of the year.
 
651
     * @param aMonth short-valued representation of the month.
 
652
     * @param aDay short-valued representation of the day.
 
653
     * @param aHour short-valued representation of the hour.
 
654
     * @param aMinute short-valued representation of the minute.
 
655
     * @param aSecond double-valued representation of the seconds and fractional seconds.
 
656
     * @param aTimeZone_hours short-valued representation of the difference in hours to UTC.
 
657
     * @return The DateTime Item.
 
658
     */
 
659
    Item
 
660
    createDateTimeStamp(short aYear, short aMonth, short aDay,
 
661
                   short aHour, short aMinute, double aSecond,
 
662
                   short aTimeZone_hours);
 
663
 
 
664
    /** \brief Creates a DateTime Item
 
665
     *         see [http://www.w3.org/TR/xmlschema-2/#dateTime]
 
666
     *
 
667
     * @param aDateTimeValue String representation of the datetime value
 
668
     *        (for example, 2002-10-10T12:00:00-05:00).
 
669
     * @return The DateTime Item.
 
670
     */
 
671
    Item
 
672
    createDateTimeStamp( const std::string &aValue );
647
673
    
648
674
}; // class ItemFactory
649
675