Main Page Cookbook/Overview ImageMeister the jcprops file Licensing Please Vote! Binary Installation & Configuration [ Win · Mac · Nix ] Changes Public API Source Code Main Page Java [ Common · Win · Mac · Nix ] Native Code [ Common · Win · Mac · Nix ] Manifest Native Code Overviews [ Common · Win · Mac · Nix · Strings ] Macros [ General · Native Macros ] Walkthroughs [ Java only · Java and native ] Building [ Win · Mac · Nix ] Distribution Issues

# CDateBundle

  Contains the three dates associated with a file or volume: creation, modification, and access/backup.

[ Common | Source | Keywords | Summary | Ancestors | All Members | Descendants ]

## Quick Index

  DESCRIPTION
  MACROS

## Class Summary

class CDateBundle
{
public:

  typedef enum tageDateBundleSelector eDateBundleSelector;
  enum eDateBundleArray;
  CDateBundle();
  ~CDateBundle();
  CDateBundle( JNIEnv *pEnv, JINTARRAY pDatesArray );
  CDateBundle( JRIEnv *pEnv, JINTARRAY pDatesArray );
  ErrCode setDatesArray( JNIEnv *pEnv, JINTARRAY pDatesArray );
  ErrCode setDatesArray( JINTARRAY pDatesArray );
  ErrCode setDatesArray( JRIEnv *pEnv, JINTARRAY pDatesArray );
  ErrCode setDate( eDateBundleSelector which, long yr, long mo, long dy, long hh, long mm, long ss );
  ErrCode setDate( eDateBundleSelector which, FILETIME *fileTime );
  ErrCode setDate( eDateBundleSelector which, time_t *fileTime );
  ErrCode getDate( eDateBundleSelector which, unsigned long *macDate );
  ErrCode setDate( eDateBundleSelector which, unsigned long macDate );

protected:

}; // CDateBundle

Back to the top of CDateBundle

### DESCRIPTION

Contains the three dates associated with a file or volume: creation, modification, and access/backup. The access date (windows/linux) is interchangeable with the backup date (Mac). Dates are passed between Java and native code in an array of 18 Java ints which contain the fields for each of the three dates. The eDateBundleArray enum defines each of these offsets.

Back to the top of CDateBundle

### MACROS

    DECLAREDATEBUNDLE(a)
    	Allocates space for a CDateBundle*, and sets it to null

    DELETEDATEBUNDLE(a)
    	If 'a' isn't null, calls 'delete' on it.

    MAKEDATEBUNDLE(a,b)
    	Constructs a CDateBundle from a JINTARRAY
    	'a' is a CDateBundle*
    	'b' is the JINTARRAY from which all the dates will be retrieved

    SLAMDATEBUNDLE(a,b)
    	Copies all the dates of the CDateBundle into a JINTARRAY
    	'a' is a CDateBundle*
    	'b' is the JINTARRAY to which the dates will be written

Back to the top of CDateBundle

### typedef enum tageDateBundleSelector eDateBundleSelector;

The selector values used with the getDate()/setDate() methods

    	typedef enum tageDateBundleSelector {
    		kModificationDate = 0,
    		kCreationDate = 1,
    		kAccessDate = 2,
    		kBackupDate = kAccessDate
    	} eDateBundleSelector;

Back to the top of CDateBundle

### enum eDateBundleArray;

The minimum length of the jint array set by the setDatesArray() method, and the offsets in this array of each of the dates.

    	enum {
    		kDatesArrayLen = 18,
    		kModDateOffset = 0,
    		kCreationDateOffset = 6,
    		kAccessDateOffset = 12,
    		kBackupDateOffset = kAccessDateOffset
    	} eDateBundleArray;

Back to the top of CDateBundle

### CDateBundle();

Construct with null dates.

    	CDateBundle();

Back to the top of CDateBundle

### ~CDateBundle();

Destructor

    	virtual	~CDateBundle();

Back to the top of CDateBundle

### CDateBundle( JNIEnv *pEnv, JINTARRAY pDatesArray );

Construct from an array of jints. Only available in Mac JNI builds.

    		CDateBundle( JNIEnv *pEnv, JINTARRAY pDatesArray );

Back to the top of CDateBundle

### CDateBundle( JRIEnv *pEnv, JINTARRAY pDatesArray );

Construct from an array of jints. Only available in Mac JRI builds.

    		CDateBundle( JRIEnv *pEnv, JINTARRAY pDatesArray );

Back to the top of CDateBundle

### ErrCode setDatesArray( JNIEnv *pEnv, JINTARRAY pDatesArray );

Put the dates into the given array of Java ints. Only available in JNI builds.

    	virtual ErrCode	setDatesArray( JNIEnv *pEnv, JINTARRAY pDatesArray );

Back to the top of CDateBundle

### ErrCode setDatesArray( JINTARRAY pDatesArray );

Put the dates into the given array of Java ints. Only available in RNI builds.

    	virtual ErrCode	setDatesArray( JINTARRAY pDatesArray );

Back to the top of CDateBundle

### ErrCode setDatesArray( JRIEnv *pEnv, JINTARRAY pDatesArray );

Put the dates into the given array of Java ints. Only available in JRI builds.

    	virtual ErrCode	setDatesArray( JRIEnv *pEnv, JINTARRAY pDatesArray );

Back to the top of CDateBundle

### ErrCode setDate( eDateBundleSelector which, long yr, long mo, long dy, long hh, long mm, long ss );

Set the indicated date. Values are in absolute, 1-based form ( i.e., 1970, 1==Jan, etc. )

    	virtual	ErrCode	setDate( eDateBundleSelector which, long yr, long mo, long dy, long hh, long mm, long ss );

Back to the top of CDateBundle

### ErrCode setDate( eDateBundleSelector which, FILETIME *fileTime );

Set the indicated date from a FILETIME structure. Only on Windows.

    	virtual	ErrCode	setDate( eDateBundleSelector which, FILETIME *fileTime );

Back to the top of CDateBundle

### ErrCode setDate( eDateBundleSelector which, time_t *fileTime );

Set the indicated date from a time_t structure. Only on Linux

    	virtual	ErrCode	setDate( eDateBundleSelector which, time_t *fileTime );

Back to the top of CDateBundle

### ErrCode getDate( eDateBundleSelector which, unsigned long *macDate );

Put the indicated date into macDate. If the indicated date is not valid, or if 'which' is not valid, just returns an error code. Only on Mac.

    	virtual	ErrCode	getDate( eDateBundleSelector which, unsigned long *macDate );

Back to the top of CDateBundle

### ErrCode setDate( eDateBundleSelector which, unsigned long macDate );

Set the indicated date from a Mac date. If 'which' is not valid, just returns an error code. Only on Mac.

    	virtual	ErrCode	setDate( eDateBundleSelector which, unsigned long macDate );

Back to the top of CDateBundle

## All Members

public:
  typedef enum tageDateBundleSelector eDateBundleSelector;
  enum eDateBundleArray;
  ErrCode setDatesArray( JNIEnv *pEnv, JINTARRAY pDatesArray );
  ErrCode setDatesArray( JINTARRAY pDatesArray );
  ErrCode setDatesArray( JRIEnv *pEnv, JINTARRAY pDatesArray );
  ErrCode setDate( eDateBundleSelector which, long yr, long mo, long dy, long hh, long mm, long ss );
  ErrCode setDate( eDateBundleSelector which, FILETIME *fileTime );
  ErrCode setDate( eDateBundleSelector which, time_t *fileTime );
  ErrCode getDate( eDateBundleSelector which, unsigned long *macDate );
  ErrCode setDate( eDateBundleSelector which, unsigned long macDate );
protected:

Back to the top of CDateBundle

## Ancestors

Class does not inherit from any other class.

Back to the top of CDateBundle

## Descendants

Class is not inherited by any others.

Back to the top of CDateBundle

Generated from source by the Cocoon utilities on Mon May 28 10:10:47 2001 .

Main Page · JConfig · ImageMeister · System Properties Repository · WordMeister · Free Samples · Java Freeware · Contact Us · FAQ · Links

Copyright (c) 1997,1998,1999,2000 Samizdat Productions. All Rights Reserved.
WarpMovie, TileMovie, JConfig, ImageMeister and MovieShredder are Trademarks of Samizdat Productions.