52 #ifndef __PCL_FileInfo_h
53 #define __PCL_FileInfo_h
58 #include <pcl/Diagnostics.h>
107 namespace FileAttribute
115 Character = 0x00000002,
117 Regular = 0x00000008,
118 Directory = 0x00000010,
119 SymbolicLink = 0x00000020,
121 FileType = 0x000000FF,
128 Archive = 0x00001000,
129 Compressed = 0x00002000,
130 Encrypted = 0x00004000,
132 ReadOnly = 0x00010000,
134 Temporary = 0x00040000,
142 Execute = 0x00400000,
143 ReadGroup = 0x01000000,
144 WriteGroup = 0x02000000,
145 ExecuteGroup = 0x04000000,
146 ReadOthers = 0x10000000,
147 WriteOthers = 0x20000000,
148 ExecuteOthers = 0x40000000,
149 FilePermissions= 0xFFF00000
228 return ToJD() - 2440587.5;
365 String CompleteSuffix()
const;
371 String NameAndExtension()
const;
378 return NameAndExtension();
403 return m_attributes.IsFlagSet( FileAttribute::Directory );
411 return m_attributes.IsFlagSet( FileAttribute::Regular );
422 return m_attributes.IsFlagSet( FileAttribute::SymbolicLink );
432 String SymbolicLinkTarget()
const;
444 return m_attributes.IsFlagSet( FileAttribute::Hidden );
504 return m_numberOfHardLinks;
546 return m_lastAccessed;
555 return m_lastModified;
566 void Refresh(
const String& path );
579 int m_numberOfHardLinks;
605 #endif // __PCL_FileInfo_h