home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 1999 November / Macworld (1999-11).dmg / Updaters / WhiteCap 3.0.4 / WhiteCap Source.sit / WhiteCap Source / Common / General Tools / FileSpecList.cpp < prev    next >
MacBinary  |  1999-07-13  |  1.8 KB  |  [TEXT/CWIE]

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: MacBinary (archive/macBinary).

You can browse this item here: FileSpecList.cpp

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Tue Jul 13 21:53:54 1999, modified Tue Jul 13 21:53:54 1999, creator 'CWIE', type ASCII, 1110 bytes "FileSpecList.cpp" , at 0x4d6 410 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[CWIE]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 10 46 69 6c 65 53 70 | 65 63 4c 69 73 74 2e 63 |..FileSp|ecList.c|
|00000010| 70 70 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |pp......|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 43 57 49 | 45 01 00 00 00 00 00 00 |.TEXTCWI|E.......|
|00000050| 00 00 00 00 00 04 56 00 | 00 01 9a b3 b1 9e 32 b3 |......V.|......2.|
|00000060| b1 9e 32 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |..2.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 04 3d 00 00 |........|.....=..|
|00000080| 23 69 6e 63 6c 75 64 65 | 20 22 46 69 6c 65 53 70 |#include| "FileSp|
|00000090| 65 63 4c 69 73 74 2e 68 | 22 0d 0d 23 69 6e 63 6c |ecList.h|"..#incl|
|000000a0| 75 64 65 20 22 43 45 67 | 46 69 6c 65 53 70 65 63 |ude "CEg|FileSpec|
|000000b0| 2e 68 22 0d 0d 0d 0d 0d | 46 69 6c 65 53 70 65 63 |.h".....|FileSpec|
|000000c0| 4c 69 73 74 3a 3a 46 69 | 6c 65 53 70 65 63 4c 69 |List::Fi|leSpecLi|
|000000d0| 73 74 28 20 58 53 74 72 | 4c 69 73 74 4f 70 74 73 |st( XStr|ListOpts|
|000000e0| 54 20 69 6e 4f 70 74 69 | 6f 6e 2c 20 4c 69 73 74 |T inOpti|on, List|
|000000f0| 4f 72 64 65 72 69 6e 67 | 54 20 69 6e 4f 72 64 65 |Ordering|T inOrde|
|00000100| 72 69 6e 67 20 29 20 3a | 0d 09 6d 53 70 65 63 73 |ring ) :|..mSpecs|
|00000110| 28 20 63 4f 72 64 65 72 | 49 6d 70 6f 72 74 61 6e |( cOrder|Importan|
|00000120| 74 20 29 2c 0d 09 6d 53 | 70 65 63 4e 61 6d 65 73 |t ),..mS|pecNames|
|00000130| 28 20 69 6e 4f 70 74 69 | 6f 6e 2c 20 69 6e 4f 72 |( inOpti|on, inOr|
|00000140| 64 65 72 69 6e 67 20 29 | 20 7b 0d 09 0d 7d 0d 0d |dering )| {...}..|
|00000150| 0d 0d 46 69 6c 65 53 70 | 65 63 4c 69 73 74 3a 3a |..FileSp|ecList::|
|00000160| 7e 46 69 6c 65 53 70 65 | 63 4c 69 73 74 28 29 20 |~FileSpe|cList() |
|00000170| 7b 0d 09 52 65 6d 6f 76 | 65 41 6c 6c 28 29 3b 0d |{..Remov|eAll();.|
|00000180| 7d 0d 0d 0d 0d 76 6f 69 | 64 20 46 69 6c 65 53 70 |}....voi|d FileSp|
|00000190| 65 63 4c 69 73 74 3a 3a | 52 65 6d 6f 76 65 41 6c |ecList::|RemoveAl|
|000001a0| 6c 28 29 20 7b 0d 09 43 | 45 67 46 69 6c 65 53 70 |l() {..C|EgFileSp|
|000001b0| 65 63 2a 20 73 70 65 63 | 3b 0d 09 0d 09 77 68 69 |ec* spec|;....whi|
|000001c0| 6c 65 20 28 20 6d 53 70 | 65 63 73 2e 46 65 74 63 |le ( mSp|ecs.Fetc|
|000001d0| 68 4c 61 73 74 28 20 26 | 73 70 65 63 20 29 20 29 |hLast( &|spec ) )|
|000001e0| 20 7b 0d 09 09 64 65 6c | 65 74 65 20 73 70 65 63 | {...del|ete spec|
|000001f0| 3b 0d 09 09 6d 53 70 65 | 63 73 2e 52 65 6d 6f 76 |;...mSpe|cs.Remov|
|00000200| 65 4c 61 73 74 28 29 3b | 0d 09 7d 0d 09 0d 09 6d |eLast();|..}....m|
|00000210| 53 70 65 63 4e 61 6d 65 | 73 2e 52 65 6d 6f 76 65 |SpecName|s.Remove|
|00000220| 41 6c 6c 28 29 3b 0d 7d | 0d 0d 0d 0d 6c 6f 6e 67 |All();.}|....long|
|00000230| 20 46 69 6c 65 53 70 65 | 63 4c 69 73 74 3a 3a 41 | FileSpe|cList::A|
|00000240| 64 64 43 6f 70 79 28 20 | 63 6f 6e 73 74 20 43 45 |ddCopy( |const CE|
|00000250| 67 46 69 6c 65 53 70 65 | 63 26 20 69 6e 53 70 65 |gFileSpe|c& inSpe|
|00000260| 63 20 29 20 7b 0d 09 55 | 74 69 6c 53 74 72 20 6e |c ) {..U|tilStr n|
|00000270| 61 6d 65 3b 0d 09 6c 6f | 6e 67 20 69 64 78 3b 0d |ame;..lo|ng idx;.|
|00000280| 09 0d 09 69 6e 53 70 65 | 63 2e 47 65 74 46 69 6c |...inSpe|c.GetFil|
|00000290| 65 4e 61 6d 65 28 20 6e | 61 6d 65 20 29 3b 0d 09 |eName( n|ame );..|
|000002a0| 69 64 78 20 3d 20 6d 53 | 70 65 63 4e 61 6d 65 73 |idx = mS|pecNames|
|000002b0| 2e 41 64 64 28 20 6e 61 | 6d 65 20 29 3b 0d 09 69 |.Add( na|me );..i|
|000002c0| 66 20 28 20 69 64 78 20 | 3e 20 30 20 29 20 0d 09 |f ( idx |> 0 ) ..|
|000002d0| 09 6d 53 70 65 63 73 2e | 41 64 64 28 20 6e 65 77 |.mSpecs.|Add( new|
|000002e0| 20 43 45 67 46 69 6c 65 | 53 70 65 63 28 20 69 6e | CEgFile|Spec( in|
|000002f0| 53 70 65 63 20 29 2c 20 | 69 64 78 20 2d 20 31 20 |Spec ), |idx - 1 |
|00000300| 29 3b 0d 09 09 0d 09 72 | 65 74 75 72 6e 20 69 64 |);.....r|eturn id|
|00000310| 78 3b 0d 7d 0d 0d 0d 63 | 6f 6e 73 74 20 43 45 67 |x;.}...c|onst CEg|
|00000320| 46 69 6c 65 53 70 65 63 | 2a 20 46 69 6c 65 53 70 |FileSpec|* FileSp|
|00000330| 65 63 4c 69 73 74 3a 3a | 46 65 74 63 68 53 70 65 |ecList::|FetchSpe|
|00000340| 63 28 20 69 6e 74 20 69 | 6e 49 6e 64 65 78 20 29 |c( int i|nIndex )|
|00000350| 20 63 6f 6e 73 74 20 7b | 0d 09 72 65 74 75 72 6e | const {|..return|
|00000360| 20 28 43 45 67 46 69 6c | 65 53 70 65 63 2a 29 20 | (CEgFil|eSpec*) |
|00000370| 6d 53 70 65 63 73 2e 46 | 65 74 63 68 28 20 69 6e |mSpecs.F|etch( in|
|00000380| 49 6e 64 65 78 20 29 3b | 0d 7d 0d 0d 0d 62 6f 6f |Index );|.}...boo|
|00000390| 6c 20 46 69 6c 65 53 70 | 65 63 4c 69 73 74 3a 3a |l FileSp|ecList::|
|000003a0| 46 65 74 63 68 53 70 65 | 63 4e 61 6d 65 28 20 69 |FetchSpe|cName( i|
|000003b0| 6e 74 20 69 6e 49 6e 64 | 65 78 2c 20 55 74 69 6c |nt inInd|ex, Util|
|000003c0| 53 74 72 26 20 6f 75 74 | 53 74 72 20 29 20 63 6f |Str& out|Str ) co|
|000003d0| 6e 73 74 20 7b 0d 09 72 | 65 74 75 72 6e 20 6d 53 |nst {..r|eturn mS|
|000003e0| 70 65 63 4e 61 6d 65 73 | 2e 46 65 74 63 68 28 20 |pecNames|.Fetch( |
|000003f0| 69 6e 49 6e 64 65 78 2c | 20 6f 75 74 53 74 72 20 |inIndex,| outStr |
|00000400| 29 3b 0d 7d 0d 0d 63 6f | 6e 73 74 20 55 74 69 6c |);.}..co|nst Util|
|00000410| 53 74 72 2a 20 46 69 6c | 65 53 70 65 63 4c 69 73 |Str* Fil|eSpecLis|
|00000420| 74 3a 3a 46 65 74 63 68 | 53 70 65 63 4e 61 6d 65 |t::Fetch|SpecName|
|00000430| 28 20 69 6e 74 20 69 6e | 49 6e 64 65 78 20 29 20 |( int in|Index ) |
|00000440| 63 6f 6e 73 74 20 7b 0d | 09 72 65 74 75 72 6e 20 |const {.|.return |
|00000450| 6d 53 70 65 63 4e 61 6d | 65 73 2e 46 65 74 63 68 |mSpecNam|es.Fetch|
|00000460| 28 20 69 6e 49 6e 64 65 | 78 20 29 3b 0d 7d 0d 0d |( inInde|x );.}..|
|00000470| 0d 0d 0d 0d 0d 6c 6f 6e | 67 20 46 69 6c 65 53 70 |.....lon|g FileSp|
|00000480| 65 63 4c 69 73 74 3a 3a | 4c 6f 6f 6b 75 70 28 20 |ecList::|Lookup( |
|00000490| 55 74 69 6c 53 74 72 26 | 20 69 6e 4e 61 6d 65 20 |UtilStr&| inName |
|000004a0| 29 20 63 6f 6e 73 74 20 | 7b 0d 09 72 65 74 75 72 |) const |{..retur|
|000004b0| 6e 20 6d 53 70 65 63 4e | 61 6d 65 73 2e 46 69 6e |n mSpecN|ames.Fin|
|000004c0| 64 49 6e 64 65 78 4f 66 | 28 20 69 6e 4e 61 6d 65 |dIndexOf|( inName|
|000004d0| 20 29 3b 0d 7d 0d 00 00 | 00 00 00 00 00 00 00 00 | );.}...|........|
|000004e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000500| 00 00 01 00 00 00 01 54 | 00 00 00 54 00 00 00 46 |.......T|...T...F|
|00000510| 00 01 51 83 07 83 20 82 | 86 00 00 00 0f 82 2f c0 |..Q... .|....../.|
|00000520| 06 00 01 51 83 e0 83 fd | 82 87 00 00 00 0f 81 90 |...Q....|........|
|00000530| c0 06 00 01 51 84 9d 84 | ba 82 88 00 00 00 0f 81 |....Q...|........|
|00000540| 3a c0 06 00 01 51 84 bb | 84 d7 82 89 00 00 00 0f |:....Q..|........|
|00000550| 8a 6c c0 06 00 01 51 84 | d8 84 f3 82 8a 00 00 00 |.l....Q.|........|
|00000560| 0f 85 17 c0 06 00 01 51 | 84 f4 85 10 82 8b 00 00 |.......Q|........|
|00000570| 00 0f 89 ec c0 06 00 01 | 51 85 11 85 28 82 8c 00 |........|Q...(...|
|00000580| 00 00 0f 85 59 c0 06 00 | 01 51 85 29 85 43 82 8d |....Y...|.Q.).C..|
|00000590| 00 00 00 0f 86 28 c0 06 | 00 01 51 85 44 85 5f 82 |.....(..|..Q.D._.|
|000005a0| 8e 00 00 00 0f 85 d3 c0 | 06 00 01 51 85 60 85 7b |........|...Q.`.{|
|000005b0| 82 8f 00 00 00 0f 84 d1 | c0 06 00 01 51 85 7d 85 |........|....Q.}.|
|000005c0| b5 82 90 00 00 00 0f 84 | b7 c0 06 00 01 51 85 b6 |........|.....Q..|
|000005d0| 85 f3 82 91 00 00 00 0f | 83 54 c0 06 00 01 51 85 |........|.T....Q.|
|000005e0| f4 86 2d 82 92 00 00 00 | 0f 83 db c0 06 00 01 51 |..-.....|.......Q|
|000005f0| 86 2e 86 68 82 93 00 00 | 00 0f 89 d7 c0 06 00 01 |...h....|........|
|00000600| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 00 |...H..Mo|naco....|
|00000610| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000620| 00 00 00 00 00 00 00 03 | 00 04 00 36 00 6c 02 3b |........|...6.l.;|
|00000630| 02 c2 00 36 00 6c 02 3b | 02 c2 b3 b1 57 e2 00 00 |...6.l.;|....W...|
|00000640| 00 92 00 00 00 a1 00 00 | 00 00 01 00 00 00 00 04 |........|........|
|00000650| 00 01 00 01 00 00 01 00 | 00 00 01 54 00 00 00 54 |........|...T...T|
|00000660| 00 00 00 46 04 d3 14 54 | 18 9c 00 00 00 1c 00 46 |...F...T|.......F|
|00000670| 00 01 4d 50 53 52 00 00 | 00 12 4d 57 42 42 00 00 |..MPSR..|..MWBB..|
|00000680| 00 1e 03 ed ff ff 00 00 | 00 00 00 00 00 00 03 f0 |........|........|
|00000690| ff ff 00 00 00 4c 00 00 | 00 00 00 00 00 00 00 00 |.....L..|........|
|000006a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+