home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1999-07-13 | 2.3 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: Messager.cpp
Confidence | Program | Detection | Match Type | Support
|
---|
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, 1627 bytes "Messager.cpp" , at 0x6db 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 |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [CWIE] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0c 4d 65 73 73 61 67 | 65 72 2e 63 70 70 00 00 |..Messag|er.cpp..|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|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 06 5b 00 | 00 01 9a b3 b1 9e 32 b3 |......[.|......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 c2 4e 00 00 |........|.....N..|
|00000080| 23 69 6e 63 6c 75 64 65 | 20 22 4d 65 73 73 61 67 |#include| "Messag|
|00000090| 65 72 2e 68 22 0d 0d 0d | 0d 0d 58 50 74 72 4c 69 |er.h"...|..XPtrLi|
|000000a0| 73 74 20 4d 65 73 73 61 | 67 65 72 3a 3a 73 41 6c |st Messa|ger::sAl|
|000000b0| 6c 4d 65 73 73 61 67 65 | 72 73 3b 0d 0d 0d 4d 65 |lMessage|rs;...Me|
|000000c0| 73 73 61 67 65 72 3a 3a | 4d 65 73 73 61 67 65 72 |ssager::|Messager|
|000000d0| 28 29 20 7b 0d 09 6d 41 | 6c 6c 6f 77 42 72 6f 61 |() {..mA|llowBroa|
|000000e0| 64 63 61 73 74 69 6e 67 | 20 3d 20 74 72 75 65 3b |dcasting| = true;|
|000000f0| 0d 09 0d 09 73 41 6c 6c | 4d 65 73 73 61 67 65 72 |....sAll|Messager|
|00000100| 73 2e 41 64 64 28 20 74 | 68 69 73 20 29 3b 0d 09 |s.Add( t|his );..|
|00000110| 53 74 61 72 74 4c 69 73 | 74 65 6e 69 6e 67 28 29 |StartLis|tening()|
|00000120| 3b 0d 7d 0d 0d 0d 4d 65 | 73 73 61 67 65 72 3a 3a |;.}...Me|ssager::|
|00000130| 7e 4d 65 73 73 61 67 65 | 72 28 29 20 7b 0d 09 69 |~Message|r() {..i|
|00000140| 6e 74 09 09 09 69 20 3d | 20 31 3b 0d 09 4d 65 73 |nt...i =| 1;..Mes|
|00000150| 73 61 67 65 72 2a 09 6d | 73 67 65 72 3b 0d 09 0d |sager*.m|sger;...|
|00000160| 09 53 74 6f 70 4c 69 73 | 74 65 6e 69 6e 67 28 29 |.StopLis|tening()|
|00000170| 3b 0d 09 73 41 6c 6c 4d | 65 73 73 61 67 65 72 73 |;..sAllM|essagers|
|00000180| 2e 52 65 6d 6f 76 65 28 | 20 74 68 69 73 20 29 3b |.Remove(| this );|
|00000190| 0d 09 09 0d 09 77 68 69 | 6c 65 20 28 20 6d 4c 69 |.....whi|le ( mLi|
|000001a0| 73 74 65 6e 65 72 73 2e | 46 65 74 63 68 28 20 69 |steners.|Fetch( i|
|000001b0| 2c 20 28 76 6f 69 64 2a | 2a 29 20 26 6d 73 67 65 |, (void*|*) &msge|
|000001c0| 72 20 29 20 29 20 7b 0d | 09 09 69 2b 2b 3b 0d 09 |r ) ) {.|..i++;..|
|000001d0| 09 6d 73 67 65 72 20 2d | 3e 20 6d 4c 69 73 74 65 |.msger -|> mListe|
|000001e0| 6e 65 72 73 2e 52 65 6d | 6f 76 65 28 20 74 68 69 |ners.Rem|ove( thi|
|000001f0| 73 20 29 3b 0d 09 7d 0d | 7d 0d 0d 0d 0d 0d 0d 09 |s );..}.|}.......|
|00000200| 09 0d 76 6f 69 64 20 4d | 65 73 73 61 67 65 72 3a |..void M|essager:|
|00000210| 3a 42 72 6f 61 64 63 61 | 73 74 47 6c 6f 62 61 6c |:Broadca|stGlobal|
|00000220| 4d 65 73 73 61 67 65 28 | 20 6c 6f 6e 67 20 69 6e |Message(| long in|
|00000230| 4d 73 67 2c 20 6c 6f 6e | 67 20 69 6e 41 72 67 73 |Msg, lon|g inArgs|
|00000240| 5b 5d 20 29 20 7b 0d 09 | 4d 65 73 73 61 67 65 72 |[] ) {..|Messager|
|00000250| 2a 09 6d 73 67 65 72 3b | 0d 09 69 6e 74 09 09 09 |*.msger;|..int...|
|00000260| 69 20 3d 20 31 3b 0d 09 | 0d 09 77 68 69 6c 65 20 |i = 1;..|..while |
|00000270| 28 20 73 41 6c 6c 4d 65 | 73 73 61 67 65 72 73 2e |( sAllMe|ssagers.|
|00000280| 46 65 74 63 68 28 20 69 | 2c 20 28 76 6f 69 64 2a |Fetch( i|, (void*|
|00000290| 2a 29 20 26 6d 73 67 65 | 72 20 29 20 29 20 7b 0d |*) &msge|r ) ) {.|
|000002a0| 09 09 69 2b 2b 3b 0d 09 | 09 69 66 20 28 20 6d 73 |..i++;..|.if ( ms|
|000002b0| 67 65 72 20 2d 3e 20 49 | 73 4c 69 73 74 65 6e 69 |ger -> I|sListeni|
|000002c0| 6e 67 28 29 20 29 0d 09 | 09 09 6d 73 67 65 72 20 |ng() )..|..msger |
|000002d0| 2d 3e 20 4c 69 73 74 65 | 6e 54 6f 4d 73 67 28 20 |-> Liste|nToMsg( |
|000002e0| 69 6e 4d 73 67 2c 20 69 | 6e 41 72 67 73 20 29 3b |inMsg, i|nArgs );|
|000002f0| 0d 09 7d 0d 7d 0d 0d 0d | 0d 0d 76 6f 69 64 20 4d |..}.}...|..void M|
|00000300| 65 73 73 61 67 65 72 3a | 3a 42 72 6f 61 64 63 61 |essager:|:Broadca|
|00000310| 73 74 4d 65 73 73 61 67 | 65 28 20 6c 6f 6e 67 20 |stMessag|e( long |
|00000320| 69 6e 4d 73 67 2c 20 6c | 6f 6e 67 20 69 6e 41 72 |inMsg, l|ong inAr|
|00000330| 67 73 5b 5d 20 29 20 7b | 0d 09 69 6e 74 09 09 09 |gs[] ) {|..int...|
|00000340| 69 20 3d 20 31 3b 0d 09 | 4d 65 73 73 61 67 65 72 |i = 1;..|Messager|
|00000350| 2a 09 6d 73 67 65 72 3b | 0d 09 0d 09 69 66 20 28 |*.msger;|....if (|
|00000360| 20 6d 41 6c 6c 6f 77 42 | 72 6f 61 64 63 61 73 74 | mAllowB|roadcast|
|00000370| 69 6e 67 20 26 26 20 69 | 6e 4d 73 67 20 29 20 7b |ing && i|nMsg ) {|
|00000380| 0d 09 09 77 68 69 6c 65 | 20 28 20 6d 4c 69 73 74 |...while| ( mList|
|00000390| 65 6e 65 72 73 2e 46 65 | 74 63 68 28 20 69 2c 20 |eners.Fe|tch( i, |
|000003a0| 28 76 6f 69 64 2a 2a 29 | 20 26 6d 73 67 65 72 20 |(void**)| &msger |
|000003b0| 29 20 29 20 7b 0d 09 09 | 09 69 2b 2b 3b 0d 09 09 |) ) {...|.i++;...|
|000003c0| 09 69 66 20 28 20 6d 73 | 67 65 72 20 2d 3e 20 49 |.if ( ms|ger -> I|
|000003d0| 73 4c 69 73 74 65 6e 69 | 6e 67 28 29 20 29 0d 09 |sListeni|ng() )..|
|000003e0| 09 09 09 6d 73 67 65 72 | 20 2d 3e 20 4c 69 73 74 |...msger| -> List|
|000003f0| 65 6e 54 6f 4d 73 67 28 | 20 69 6e 4d 73 67 2c 20 |enToMsg(| inMsg, |
|00000400| 69 6e 41 72 67 73 20 29 | 3b 0d 09 09 7d 0d 09 7d |inArgs )|;...}..}|
|00000410| 0d 7d 0d 0d 0d 76 6f 69 | 64 20 4d 65 73 73 61 67 |.}...voi|d Messag|
|00000420| 65 72 3a 3a 53 74 61 72 | 74 4c 69 73 74 65 6e 69 |er::Star|tListeni|
|00000430| 6e 67 28 29 20 7b 0d 09 | 6d 49 73 4c 69 73 74 65 |ng() {..|mIsListe|
|00000440| 6e 69 6e 67 20 3d 20 74 | 72 75 65 3b 0d 7d 0d 0d |ning = t|rue;.}..|
|00000450| 0d 76 6f 69 64 20 4d 65 | 73 73 61 67 65 72 3a 3a |.void Me|ssager::|
|00000460| 53 74 6f 70 4c 69 73 74 | 65 6e 69 6e 67 28 29 20 |StopList|ening() |
|00000470| 7b 0d 09 6d 49 73 4c 69 | 73 74 65 6e 69 6e 67 20 |{..mIsLi|stening |
|00000480| 3d 20 66 61 6c 73 65 3b | 0d 7d 0d 0d 0d 0d 76 6f |= false;|.}....vo|
|00000490| 69 64 20 4d 65 73 73 61 | 67 65 72 3a 3a 53 65 74 |id Messa|ger::Set|
|000004a0| 41 6c 6c 6f 77 42 72 6f | 61 64 63 61 73 74 69 6e |AllowBro|adcastin|
|000004b0| 67 28 20 62 6f 6f 6c 20 | 69 6e 41 6c 6c 6f 77 65 |g( bool |inAllowe|
|000004c0| 64 20 29 20 7b 0d 09 6d | 41 6c 6c 6f 77 42 72 6f |d ) {..m|AllowBro|
|000004d0| 61 64 63 61 73 74 69 6e | 67 20 3d 20 69 6e 41 6c |adcastin|g = inAl|
|000004e0| 6c 6f 77 65 64 3b 0d 7d | 0d 0d 0d 0d 76 6f 69 64 |lowed;.}|....void|
|000004f0| 20 4d 65 73 73 61 67 65 | 72 3a 3a 41 64 64 4c 69 | Message|r::AddLi|
|00000500| 73 74 65 6e 65 72 28 20 | 4d 65 73 73 61 67 65 72 |stener( |Messager|
|00000510| 2a 20 69 6e 4c 69 73 74 | 65 6e 65 72 20 29 20 7b |* inList|ener ) {|
|00000520| 0d 0d 09 69 66 20 28 20 | 69 6e 4c 69 73 74 65 6e |...if ( |inListen|
|00000530| 65 72 20 29 20 7b 0d 09 | 09 69 66 20 28 20 6d 4c |er ) {..|.if ( mL|
|00000540| 69 73 74 65 6e 65 72 73 | 2e 46 69 6e 64 49 6e 64 |isteners|.FindInd|
|00000550| 65 78 4f 66 28 20 69 6e | 4c 69 73 74 65 6e 65 72 |exOf( in|Listener|
|00000560| 20 29 20 3d 3d 20 30 20 | 29 20 7b 0d 09 09 09 6d | ) == 0 |) {....m|
|00000570| 4c 69 73 74 65 6e 65 72 | 73 2e 41 64 64 28 20 69 |Listener|s.Add( i|
|00000580| 6e 4c 69 73 74 65 6e 65 | 72 20 29 3b 0d 09 09 09 |nListene|r );....|
|00000590| 69 6e 4c 69 73 74 65 6e | 65 72 20 2d 3e 20 6d 4c |inListen|er -> mL|
|000005a0| 69 73 74 65 6e 65 72 73 | 2e 41 64 64 28 20 74 68 |isteners|.Add( th|
|000005b0| 69 73 20 29 3b 0d 09 09 | 7d 0d 09 7d 0d 7d 0d 0d |is );...|}..}.}..|
|000005c0| 0d 0d 76 6f 69 64 20 4d | 65 73 73 61 67 65 72 3a |..void M|essager:|
|000005d0| 3a 43 6f 70 79 4c 69 73 | 74 65 6e 65 72 73 28 20 |:CopyLis|teners( |
|000005e0| 4d 65 73 73 61 67 65 72 | 2a 20 69 6e 53 6f 75 72 |Messager|* inSour|
|000005f0| 63 65 20 29 20 7b 0d 09 | 69 6e 74 20 69 20 3d 20 |ce ) {..|int i = |
|00000600| 30 3b 0d 09 4d 65 73 73 | 61 67 65 72 2a 20 6d 73 |0;..Mess|ager* ms|
|00000610| 67 65 72 3b 0d 09 0d 09 | 69 66 20 28 20 69 6e 53 |ger;....|if ( inS|
|00000620| 6f 75 72 63 65 20 29 20 | 7b 0d 09 09 77 68 69 6c |ource ) |{...whil|
|00000630| 65 20 28 20 69 6e 53 6f | 75 72 63 65 20 2d 3e 20 |e ( inSo|urce -> |
|00000640| 6d 4c 69 73 74 65 6e 65 | 72 73 2e 46 65 74 63 68 |mListene|rs.Fetch|
|00000650| 28 20 69 2c 20 28 76 6f | 69 64 2a 2a 29 20 26 6d |( i, (vo|id**) &m|
|00000660| 73 67 65 72 20 29 20 29 | 20 7b 0d 09 09 09 69 2b |sger ) )| {....i+|
|00000670| 2b 3b 0d 09 09 09 41 64 | 64 4c 69 73 74 65 6e 65 |+;....Ad|dListene|
|00000680| 72 28 20 6d 73 67 65 72 | 20 29 3b 0d 09 09 7d 0d |r( msger| );...}.|
|00000690| 09 7d 0d 7d 0d 0d 0d 0d | 62 6f 6f 6c 20 4d 65 73 |.}.}....|bool Mes|
|000006a0| 73 61 67 65 72 3a 3a 4c | 69 73 74 65 6e 54 6f 4d |sager::L|istenToM|
|000006b0| 73 67 28 20 6c 6f 6e 67 | 20 2c 20 6c 6f 6e 67 20 |sg( long| , long |
|000006c0| 5b 5d 20 20 29 20 7b 0d | 09 72 65 74 75 72 6e 20 |[] ) {.|.return |
|000006d0| 66 61 6c 73 65 3b 0d 7d | 0d 0d 0d 00 00 00 00 00 |false;.}|........|
|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 |........|........|
|00000700| 00 00 01 00 00 00 01 54 | 00 00 00 54 00 00 00 46 |.......T|...T...F|
|00000710| 69 6f 6e 5f 77 61 73 5f | 61 6e 5f 61 70 70 00 00 |ion_was_|an_app..|
|00000720| 00 4e 56 ff f8 55 4f 2f | 2e 00 08 42 a7 48 6e ff |.NV..UO/|...B.Hn.|
|00000730| 0c 4d 65 73 73 61 67 65 | 72 2e 63 70 70 73 70 42 |.Message|r.cppspB|
|00000740| 61 73 65 2e 63 70 70 73 | 74 2e 6d 70 33 70 33 6e |ase.cpps|t.mp3p3n|
|00000750| 00 00 50 61 72 74 53 49 | 54 21 00 00 00 00 00 00 |..PartSI|T!......|
|00000760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000770| 00 00 b2 48 36 02 00 00 | 00 00 00 00 01 9a 56 ff |...H6...|......V.|
|00000780| 24 48 e7 1f 38 2e 2e 00 | 08 28 6e 00 0c 24 6e 00 |$H..8...|.(n..$n.|
|00000790| 10 26 6e 00 14 7a 00 7c | 01 78 00 76 00 4e b9 00 |.&n..z.||.x.v.N..|
|000007a0| 00 75 02 3f 12 4e b9 00 | 00 0c 20 4a 00 54 4f 66 |.u.?.N..|.. J.TOf|
|000007b0| 00 02 be 4a 2a 00 9f 67 | 00 01 4a 4a aa 00 8e 6f |...J*..g|..JJ...o|
|000007c0| 00 02 ae 4a 2a 00 a1 66 | 00 02 a6 2d 6a 00 02 ff |...J*..f|...-j...|
|000007d0| 4c 48 6a 00 06 48 6d f5 | b8 4e b9 00 00 74 8a 2f |LHj..Hm.|.N...t./|
|000007e0| 2a 00 8e 2f 0a 4e b9 00 | 00 0a 78 36 00 4a 43 4f |*../.N..|..x6.JCO|
|000007f0| ef 00 10 66 00 00 8e 20 | 2e ff 4c b0 aa 00 02 66 |...f... |..L....f|
|00000800| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 00 |...H..Mo|naco....|
|00000810| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000820| 00 00 00 00 00 00 00 03 | 00 04 00 91 00 17 02 51 |........|.......Q|
|00000830| 02 77 00 91 00 17 02 51 | 02 77 b1 e7 9d 3a 00 00 |.w.....Q|.w...:..|
|00000840| 02 fd 00 00 02 fd 00 00 | 02 7a 01 00 00 00 00 04 |........|.z......|
|00000850| 00 01 00 01 00 00 01 00 | 00 00 01 54 00 00 00 54 |........|...T...T|
|00000860| 00 00 00 46 04 cb 29 74 | 16 c6 00 00 00 1c 00 46 |...F..)t|.......F|
|00000870| 00 01 4d 50 53 52 00 00 | 00 12 4d 57 42 42 00 00 |..MPSR..|..MWBB..|
|00000880| 00 1e 03 ed ff ff 00 00 | 00 00 00 00 00 00 03 f0 |........|........|
|00000890| ff ff 00 00 00 4c 00 00 | 00 00 00 00 00 00 00 00 |.....L..|........|
|000008a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+