Date.h   Date.h 
skipping to change at line 27 skipping to change at line 27
* You should have received a copy of the GNU Lesser General Public * You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software * License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 1 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 1 USA
*/ */
#ifndef PLIST__DATE_H #ifndef PLIST__DATE_H
#define PLIST__DATE_H #define PLIST__DATE_H
#include <plist/Node.h> #include <plist/Node.h>
#include <ctime> #include <ctime>
#include <sys/time.h>
#ifdef _WIN32
#include <Winsock2.h>
#endif
namespace PList namespace PList
{ {
class Date : public Node class Date : public Node
{ {
public : public :
Date(Node* parent = NULL); Date(Node* parent = NULL);
Date(plist_t node, Node* parent = NULL); Date(plist_t node, Node* parent = NULL);
Date(Date& d); Date(Date& d);
 End of changes. 1 change blocks. 
4 lines changed or deleted 1 lines changed or added


 plist++.h   plist++.h 
skipping to change at line 34 skipping to change at line 34
#include "plist.h" #include "plist.h"
#include "Array.h" #include "Array.h"
#include "Boolean.h" #include "Boolean.h"
#include "Data.h" #include "Data.h"
#include "Date.h" #include "Date.h"
#include "Dictionary.h" #include "Dictionary.h"
#include "Integer.h" #include "Integer.h"
#include "Node.h" #include "Node.h"
#include "Real.h" #include "Real.h"
#include "Key.h"
#include "String.h" #include "String.h"
#include "Structure.h" #include "Structure.h"
#endif #endif
 End of changes. 1 change blocks. 
0 lines changed or deleted 1 lines changed or added


 plist.h   plist.h 
skipping to change at line 85 skipping to change at line 85
{ {
PLIST_BOOLEAN, /**< Boolean, scalar type */ PLIST_BOOLEAN, /**< Boolean, scalar type */
PLIST_UINT, /**< Unsigned integer, scalar type */ PLIST_UINT, /**< Unsigned integer, scalar type */
PLIST_REAL, /**< Real, scalar type */ PLIST_REAL, /**< Real, scalar type */
PLIST_STRING, /**< ASCII string, scalar type */ PLIST_STRING, /**< ASCII string, scalar type */
PLIST_ARRAY, /**< Ordered array, structured type */ PLIST_ARRAY, /**< Ordered array, structured type */
PLIST_DICT, /**< Unordered dictionary (key/value pair), structur ed type */ PLIST_DICT, /**< Unordered dictionary (key/value pair), structur ed type */
PLIST_DATE, /**< Date, scalar type */ PLIST_DATE, /**< Date, scalar type */
PLIST_DATA, /**< Binary data, scalar type */ PLIST_DATA, /**< Binary data, scalar type */
PLIST_KEY, /**< Key in dictionaries (ASCII String), scalar type */ PLIST_KEY, /**< Key in dictionaries (ASCII String), scalar type */
PLIST_UID, /**< Special type used for 'keyed encoding' */
PLIST_NONE /**< No type */ PLIST_NONE /**< No type */
} plist_type; } plist_type;
/******************************************** /********************************************
* * * *
* Creation & Destruction * * Creation & Destruction *
* * * *
********************************************/ ********************************************/
/** /**
skipping to change at line 167 skipping to change at line 168
* Create a new plist_t type #PLIST_DATE * Create a new plist_t type #PLIST_DATE
* *
* @param sec the number of seconds since 01/01/2001 * @param sec the number of seconds since 01/01/2001
* @param usec the number of microseconds * @param usec the number of microseconds
* @return the created item * @return the created item
* @sa #plist_type * @sa #plist_type
*/ */
PLIST_API plist_t plist_new_date(int32_t sec, int32_t usec); PLIST_API plist_t plist_new_date(int32_t sec, int32_t usec);
/** /**
* Create a new plist_t type #PLIST_UID
*
* @param val the unsigned integer value
* @return the created item
* @sa #plist_type
*/
PLIST_API plist_t plist_new_uid(uint64_t val);
/**
* Destruct a plist_t node and all its children recursively * Destruct a plist_t node and all its children recursively
* *
* @param plist the plist to free * @param plist the plist to free
*/ */
PLIST_API void plist_free(plist_t plist); PLIST_API void plist_free(plist_t plist);
/** /**
* Return a copy of passed node and it's children * Return a copy of passed node and it's children
* *
* @param node the plist to copy * @param node the plist to copy
skipping to change at line 415 skipping to change at line 425
/** /**
* Get the value of a #PLIST_DATE node. * Get the value of a #PLIST_DATE node.
* This function does nothing if node is not of type #PLIST_DATE * This function does nothing if node is not of type #PLIST_DATE
* *
* @param node the node * @param node the node
* @param sec a pointer to an int32_t variable. Represents the number o f seconds since 01/01/2001. * @param sec a pointer to an int32_t variable. Represents the number o f seconds since 01/01/2001.
* @param usec a pointer to an int32_t variable. Represents the number of microseconds * @param usec a pointer to an int32_t variable. Represents the number of microseconds
*/ */
PLIST_API void plist_get_date_val(plist_t node, int32_t * sec, int32_t * usec); PLIST_API void plist_get_date_val(plist_t node, int32_t * sec, int32_t * usec);
/**
* Get the value of a #PLIST_UID node.
* This function does nothing if node is not of type #PLIST_UID
*
* @param node the node
* @param val a pointer to a uint64_t variable.
*/
PLIST_API void plist_get_uid_val(plist_t node, uint64_t * val);
/******************************************** /********************************************
* * * *
* Setters * * Setters *
* * * *
********************************************/ ********************************************/
/** /**
* Forces type of node. Changing type of structured nodes is only allow ed if node is empty. * Forces type of node. Changing type of structured nodes is only allow ed if node is empty.
* Reset value of node; * Reset value of node;
* @param node the node * @param node the node
skipping to change at line 494 skipping to change at line 513
/** /**
* Set the value of a node. * Set the value of a node.
* Forces type of node to #PLIST_DATE * Forces type of node to #PLIST_DATE
* *
* @param node the node * @param node the node
* @param sec the number of seconds since 01/01/2001 * @param sec the number of seconds since 01/01/2001
* @param usec the number of microseconds * @param usec the number of microseconds
*/ */
PLIST_API void plist_set_date_val(plist_t node, int32_t sec, int32_t us ec); PLIST_API void plist_set_date_val(plist_t node, int32_t sec, int32_t us ec);
/**
* Set the value of a node.
* Forces type of node to #PLIST_UID
*
* @param node the node
* @param val the unsigned integer value
*/
PLIST_API void plist_set_uid_val(plist_t node, uint64_t val);
/******************************************** /********************************************
* * * *
* Import & Export * * Import & Export *
* * * *
********************************************/ ********************************************/
/** /**
* Export the #plist_t structure to XML format. * Export the #plist_t structure to XML format.
* *
* @param plist the root node to export * @param plist the root node to export
 End of changes. 4 change blocks. 
0 lines changed or deleted 28 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/