Main Page
Cookbook/Overview ImageMeister the jcprops file Licensing Binary Installation & Configuration [ Win · Mac · Nix · OSX ] 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 · OSX ] Distribution Issues |
[ Common | Source | Keywords | Summary | Ancestors | All Members | Descendants ]
Back to the top of CDateBundle
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
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
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
Construct with null dates.
CDateBundle();
Back to the top of 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
Back to the top of CDateBundle
Back to the top of CDateBundle
Back to the top of CDateBundle
Report problems to jkotula@stratasys.com