00001 #include <string> 00002 #include <map> 00003 #ifndef OC_COMMON_H 00004 #define OC_COMMON_H 00005 using namespace std; 00006 /* 00007 make a file info class 00008 complete enough 00009 class to work with STL 00010 */ 00011 struct ocFile 00012 { 00013 string name; 00014 string path; 00015 string type; 00016 ocFile(){;} 00017 ocFile( const ocFile & in ) 00018 :name(in.name),path(in.path),type(in.type){;} 00019 ocFile & operator = ( const ocFile in ) 00020 { 00021 name = in.name; 00022 path = in.path; 00023 type = in.type; 00024 return * this; 00025 } 00026 virtual ~ocFile(){;} 00027 }; 00028 00029 typedef map< string, ocFile> ocFiles; 00030 #endif
1.5.5