classes.xml 233 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483
  1. <?xml version="1.0" encoding="ISO8859-1"?>
  2. <fpdoc-descriptions>
  3. <module name="Classes">
  4. <short>Basic classes for FCL </short>
  5. <descr>
  6. <p>This documentation describes the FPC <file>classes</file> unit.
  7. The <file>Classes</file> unit contains basic classes for the Free Component
  8. Library (FCL):
  9. </p>
  10. <ul>
  11. <li> a <link id="TList"/> class for maintaining lists of pointers, </li>
  12. <li> <link id='TStringList'/> for lists of strings, </li>
  13. <li> <link id='TCollection'/> to manage collections of objects </li>
  14. <li> <link id="TStream"/> classes to support streaming.</li>
  15. </ul>
  16. <p>
  17. Furthermore it introduces methods for object persistence, and classes
  18. that understand an owner-owned relationship, with automatic memory
  19. management.
  20. </p>
  21. </descr>
  22. <element name="TRTLCriticalSection">
  23. <short>A class for managing multiple threads</short>
  24. <descr>This class is not yet implemented.</descr>
  25. </element>
  26. <element name="HRSRC">
  27. <short>Type to manage resources</short>
  28. <descr>This type is provided for Delphi compatibilty, it is used for resource
  29. streams.
  30. </descr>
  31. </element>
  32. <element name="PStringItem">
  33. <short>
  34. Pointer to a <link id="TStringItem"/> record.
  35. </short>
  36. </element>
  37. <element name="TStringItem">
  38. <short>
  39. The <var>TStringItem</var> is used to store the string and object items in a
  40. <link id="TStringList"/> string list instance. It should never be used
  41. directly.
  42. </short>
  43. <seealso>
  44. <link id="TStringList"/>
  45. </seealso>
  46. </element>
  47. <element name="TStringItem.FString">
  48. <short>
  49. Contains the string.
  50. </short>
  51. </element>
  52. <element name="TStringItem.FObject">
  53. <short>
  54. Contains the object, if any.
  55. </short>
  56. </element>
  57. <element name="THandle">
  58. <short>Type to manage streams.</short>
  59. <descr>This type is used as the handle for <link
  60. id='THandleStream'>THandleStream</link> stream descendents</descr>
  61. </element>
  62. <element name="TComponentName">
  63. <short>Special type for component names.</short>
  64. <descr>Names of components are of type <var>TComponentName</var>. By
  65. specifying a different type, the Object inspector can handle this property
  66. differently than a standard string property.
  67. </descr>
  68. </element>
  69. <element name="IUnknown">
  70. <short><var>IUnknown</var> Interface</short>
  71. <descr>IUknown is not yet implemented since interfaces are not yet supported
  72. by FPC.
  73. </descr>
  74. </element>
  75. <element name="TGUID">
  76. <short>Special type for GUID's.</short>
  77. <descr>FPC doesn't support GUID yet.
  78. </descr>
  79. </element>
  80. <element name="HMODULE">
  81. <short>Special type for handling modules.</short>
  82. <descr>
  83. FPC doesn't support modules yet, so this is a dummy type.
  84. </descr>
  85. </element>
  86. <element name="TPoint">
  87. <short>Special type to handle a fake <link id='TComponent'/>
  88. position</short>
  89. <descr>
  90. <p>This record describes a coordinate. It is used to handle the <link
  91. id='TComponent.Top'>Top</link> and <link id='TComponent.Left'>Left</link>
  92. properties of <link id='TComponent'/>.
  93. </p>
  94. <p>
  95. <var>X</var> represents the X-Coordinate of the point described by the record.
  96. <var>Y</var> represents the Y-Coordinate of the point described by the record.
  97. </p>
  98. </descr>
  99. </element>
  100. <element name="TSmallPoint">
  101. <short>Type to describe point in a small plane.</short>
  102. <descr>Same as <link id='TPoint'/>, only the X and Y ranges are limited to
  103. 2-byte integers instead of 4-byte integers.
  104. </descr>
  105. </element>
  106. <element name="TRect">
  107. <short>Descibes a rectangle</short>
  108. <descr>
  109. <var>TRect</var> describes a rectangle in space with its upper-left (in
  110. (<var>Top</var>,<var>Left></var>)) and lower-right (in (<var>Bottom</var>
  111. ,<var>Right</var>)) corners.
  112. </descr>
  113. </element>
  114. <element name="MaxListSize">
  115. <short>
  116. Maximum number of elemens in list.
  117. </short>
  118. <descr>
  119. This constant sets the maximum number of elements in a <link id='TList'/>.
  120. </descr>
  121. </element>
  122. <element name="scShift">
  123. <short>
  124. Indicates Shift key in a keyboard shortcut.
  125. </short>
  126. </element>
  127. <element name="scCtrl">
  128. <short>
  129. indicates CTRL key in a keyboard shortcut.
  130. </short>
  131. </element>
  132. <element name="scAlt">
  133. <short>
  134. Indicates ALT key in a keyboard shortcut.
  135. </short>
  136. </element>
  137. <element name="scNone">
  138. <short>
  139. Indicates no special key is presed in a keyboard shortcut.
  140. </short>
  141. </element>
  142. <element name="soFromBeginning">
  143. <short>
  144. <link id='TStream.Seek'>Seek</link> starts relative to the stream origin.
  145. </short>
  146. </element>
  147. <element name="soFromCurrent">
  148. <short>
  149. <link id='TStream.Seek'>Seek</link> starts relative to the current position in
  150. the stream.
  151. </short>
  152. </element>
  153. <element name="soFromEnd">
  154. <short>
  155. <link id='TStream.Seek'>Seek</link> starts relative to the stream end.
  156. </short>
  157. </element>
  158. <element name="fmCreate">
  159. <short>
  160. <link id='TFileStream.Create'/> creates a new file if needed.
  161. </short>
  162. </element>
  163. <element name="fmOpenRead">
  164. <short>
  165. <link id='TFileStream.Create'/> opens a file with read-only access.
  166. </short>
  167. </element>
  168. <element name="fmOpenWrite">
  169. <short>
  170. <link id='TFileStream.Create'/> opens a file with write-only access.
  171. </short>
  172. </element>
  173. <element name="fmOpenReadWrite">
  174. <short>
  175. <link id='TFileStream.Create'/> opens a file with read-write access.
  176. </short>
  177. </element>
  178. <element name="toEof">
  179. <short>
  180. Token returned by <link id='TParser.Token'/>, meaning the end of the input stream was reached.
  181. </short>
  182. </element>
  183. <element name="toEof">
  184. <short>
  185. Value returned by <link id='TParser.Token'/> when the end of the input stream was reached.
  186. </short>
  187. </element>
  188. <element name="toSymbol">
  189. <short>
  190. Value returned by <link id='TParser.Token'/> when a symbol was found in the input stream.
  191. </short>
  192. </element>
  193. <element name="toString">
  194. <short>
  195. Value returned by <link id='TParser.Token'/> when a string was found in the
  196. input stream.
  197. </short>
  198. </element>
  199. <element name="toInteger">
  200. <short>
  201. Value returned by <link id='TParser.Token'/> when an integer was found in the
  202. input stream.
  203. </short>
  204. </element>
  205. <element name="toFloat">
  206. <short>
  207. Value returned by <link id='TParser.Token'/> when a floating point value was found in the
  208. input stream.
  209. </short>
  210. </element>
  211. <element name="FilerSignature">
  212. <short>
  213. Constant that is found at the start of a binary stream containing a
  214. streamed component.
  215. </short>
  216. </element>
  217. <element name="TAlignment">
  218. <short>Type to specify text alignment in controls that display text.</short>
  219. <descr>
  220. <p>
  221. The <var>TAlignment</var> type is used to specify the alignment of
  222. the text in controls that display a text.
  223. </p>
  224. <table>
  225. <caption><var>TALignment</var> values and their meanings.</caption>
  226. <th><td>Value</td><td>Meaning</td></th>
  227. <tr><td><var>taLeftJustify</var></td><td>Text is displayed aligned to the left.</td></tr>
  228. <tr><td><var>taRightJustify</var></td><td>Text is displayed aligned to the right.</td></tr>
  229. <tr><td><var>taCenter</var></td><td>Text is displayed centered.</td></tr>
  230. </table>
  231. </descr>
  232. </element>
  233. <element name="TShiftState">
  234. <short>
  235. Indicates what special keys were pressed in combination with a normal key
  236. </short>
  237. <descr>
  238. <p>
  239. This type is used when describing a shortcut key or when describing what
  240. special keys are pressed on a keyboard when a key event is generated.
  241. </p>
  242. <p>
  243. The set contains the special keys that can be used in combination with a
  244. 'normal' key.
  245. </p>
  246. <table>
  247. <th><td>Set element</td><td>Key pressed</td></th>
  248. <tr><td>ssShift</td><td>Either left or right shift key</td></tr>
  249. <tr><td>ssAlt</td><td>Either left or right ALT key</td></tr>
  250. <tr><td>ssCTRL</td><td>Either left or right CTRL key</td></tr>
  251. <tr><td>ssLeft</td><td>Either left or right shift key</td></tr>
  252. <tr><td>ssRight</td><td></td></tr>
  253. <tr><td>ssMiddle</td><td></td></tr>
  254. <tr><td>ssDouble</td><td></td></tr>
  255. <tr><td>ssMeta</td><td>The META key</td></tr>
  256. <tr><td>ssSuper</td><td></td></tr>
  257. <tr><td>ssHyper</td><td></td></tr>
  258. <tr><td>ssAltGr</td><td>The AltGr (right Alt) key</td></tr>
  259. <tr><td>ssCaps</td><td>The CapsLock key</td></tr>
  260. <tr><td>ssNum</td><td>The NumLock key</td></tr>
  261. <tr><td>ssScroll</td><td>The ScrollLock key</td></tr>
  262. </table>
  263. </descr>
  264. </element>
  265. <element name="TNotifyEvent">
  266. <short>
  267. Standard event handler type.
  268. </short>
  269. <descr>
  270. Most event handlers are implemented as a property of type
  271. <var>TNotifyEvent</var>. When this is set to a certain method of a class,
  272. when the event occurs, the method will be called, and the class that generated
  273. the event will pass itself along as the <var>Sender</var> argument.
  274. </descr>
  275. <seealso>
  276. <link id="THelpEvent"/>
  277. <link id="TGetStrProc"/>
  278. </seealso>
  279. </element>
  280. <element name="THelpEvent">
  281. <short>
  282. Special event for display of online help.
  283. </short>
  284. <descr>
  285. This event is used for display of online help.
  286. </descr>
  287. <seealso>
  288. <link id="TNotifyEvent"/>
  289. <link id="TGetStrProc"/>
  290. </seealso>
  291. </element>
  292. <element name="TGetStrProc">
  293. <short>
  294. Event for retrieving string values.
  295. </short>
  296. <descr>
  297. This event is used as a callback to retrieve string values. It is used,
  298. among other things, to pass along string properties in property editors.
  299. </descr>
  300. <seealso>
  301. <link id="THelpEvent"/>
  302. <link id="TNotifyEvent"/>
  303. </seealso>
  304. </element>
  305. <element name="EStreamError">
  306. <short>
  307. Exception raised when an error occurs during read or write operations on a
  308. stream.
  309. </short>
  310. <descr>
  311. <p>
  312. An <var>EStreamError</var> is raised when an error occurs during reading
  313. from or writng to a stream: Possible causes are
  314. </p>
  315. <ol>
  316. <li>Not enough data is available in the stream.</li>
  317. <li>Trying to seek beyond the beginning or end of the stream.</li>
  318. <li>Trying to set the capacity of a memory stream and no memory is
  319. available.</li>
  320. <li>Trying to write to a resource stream.</li>
  321. </ol>
  322. </descr>
  323. <seealso>
  324. <link id="EFCreateError"/>
  325. </seealso>
  326. </element>
  327. <element name="EFCreateError">
  328. <short>
  329. Exception raised when an error occurred during creation of a <link id="TFileStream"/>
  330. stream.
  331. </short>
  332. <descr>
  333. When the operating system reports an error during creation of a new file in
  334. the <link id="TFileStream.Create">Filestream Constructor</link>, a
  335. <var>EFCreateError</var> is raised.
  336. </descr>
  337. <seealso>
  338. <link id="EStreamError"/>
  339. <link id="EFOpenError"/>
  340. </seealso>
  341. </element>
  342. <element name="EFOpenError">
  343. <short>
  344. Exception raised when an error occurred during creation of a <link id="TFileStream"/>
  345. </short>
  346. <descr>
  347. When the operating system reports an error during the opening of a file in
  348. the <link id="TFileStream.Create">Filestream Constructor</link>, a
  349. <var>EFOpenError</var> is raised.
  350. </descr>
  351. <seealso>
  352. <link id="EStreamError"/>
  353. <link id="EFCreateError"/>
  354. </seealso>
  355. </element>
  356. <element name="EFilerError">
  357. <short>
  358. Exception raised by the component streaming system if an error occurs.
  359. </short>
  360. <descr>
  361. This class serves as an ancestor class for exceptions that are raised
  362. when an error occurs during component streaming.
  363. A <var>EFilerError</var> exception is raised when a class is registered
  364. twice.
  365. </descr>
  366. <seealso>
  367. <link id="EStreamError"/>
  368. <link id="EReadError"/>
  369. </seealso>
  370. </element>
  371. <element name="EReadError">
  372. <short>
  373. Exception raised if an error occurs while reading from a stream.
  374. </short>
  375. <descr>
  376. <p>If an error occurs when reading from a stream, a <var>EReadError</var>
  377. exception is raised. Possible causes for this are:</p>
  378. <ol>
  379. <li> Not enough data is available when reading from a stream</li>
  380. <li> The stream containing a component's data contains invalid data.
  381. this will occurr only when reading a component from a stream.</li>
  382. </ol>
  383. </descr>
  384. <seealso>
  385. <link id="EFilerError"/>
  386. <link id="EWriteError"/>
  387. </seealso>
  388. </element>
  389. <element name="EWriteError">
  390. <short>
  391. Exception raised when an error occurs during writing to a stream.
  392. </short>
  393. <descr>
  394. <p>If an error occurs when writing to a stream, a <var>EWriteError</var>
  395. exception is raised. Possible causes for this are:
  396. </p>
  397. <ol>
  398. <li> The stream doesn't allow writing.</li>
  399. <li> An error occurred when writing a property to a stream.</li>
  400. </ol>
  401. </descr>
  402. <seealso>
  403. <link id="EFilerError"/>
  404. <link id="EReadError"/>
  405. </seealso>
  406. </element>
  407. <element name="EClassNotFound">
  408. <short>
  409. Exception raised when an unknown class is referenced in a streamed
  410. component.
  411. </short>
  412. <descr>
  413. When the streaming system needs to create a component, it looks for the
  414. class pointer (VMT) in the list of registered classes by its name. If this
  415. name is not found, then an <var>EClassNotFound</var> is raised.
  416. </descr>
  417. <seealso>
  418. <link id="EFilerError"/>
  419. </seealso>
  420. </element>
  421. <element name="EMethodNotFound">
  422. <short>
  423. This exception is no longer used.
  424. </short>
  425. <descr>
  426. This exception is no longer used in the streaming system. This error is
  427. replaced by a <link id="EReadError"/>.
  428. </descr>
  429. <seealso>
  430. <link id="EFilerError"/>
  431. <link id="EReadError"/>
  432. </seealso>
  433. </element>
  434. <element name="EInvalidImage">
  435. <short>
  436. Exception raised when the resource header needed for streaming of a
  437. component is invalid.
  438. </short>
  439. <descr>
  440. This exception is not used by Free Pascal but is provided for Delphi
  441. compatibility.
  442. </descr>
  443. </element>
  444. <element name="EResNotFound">
  445. <short>
  446. Exception raised when a resource, needed to initialize a component, is not found.
  447. </short>
  448. <descr>
  449. This exception is not used by Free Pascal but is provided for Delphi
  450. compatibility.
  451. </descr>
  452. </element>
  453. <element name="EListError">
  454. <short>
  455. Exception raised when an error occurs in lists handling.
  456. </short>
  457. <descr>
  458. <p>
  459. If an error occurs in one of the <link id='TList'/> or <link id='TStrings'/>
  460. methods, then a <var>EListError</var> exception is raised. This can occur in
  461. one of the following cases:
  462. </p>
  463. <ol>
  464. <li>There is not enough memory to expand the list.</li>
  465. <li>The list tried to grow beyond its maximal capacity.</li>
  466. <li>An attempt was made to reduce the capacity of the list below the
  467. current element count.</li>
  468. <li>An attempt was made to set the list count to a negative value.</li>
  469. <li>A non-existent element of the list was referenced. (i.e. the list index
  470. was out of bounds)</li>
  471. <li>An attempt was made to move an item to a position outside the list's
  472. bounds.</li>
  473. </ol>
  474. </descr>
  475. <seealso>
  476. <link id="TList"/>,
  477. <link id="TStrings"/>
  478. </seealso>
  479. </element>
  480. <element name="EBitsError">
  481. <short>
  482. Exception raised when an error occurs in a method of <link id="TBits"/>.
  483. </short>
  484. <descr>
  485. When an index of a bit in a <link id="TBits"/> is out of the valid range
  486. (<var>0</var> to <var>Count-1</var>) then a <var>EBitsError</var> exception
  487. is raised.
  488. </descr>
  489. </element>
  490. <element name="EStringListError">
  491. <short>
  492. Exception raised when an error occurs in a method of <link id="TStrings"/>.
  493. </short>
  494. <descr>
  495. <p>
  496. When an error occurs in one of the methods of <link id="TStrings"/> then
  497. an <var>EStringListError</var> is raised. This can have one of the following
  498. causes:
  499. </p>
  500. <ol>
  501. <li>There is not enough memory to expand the list.</li>
  502. <li>The list tried to grow beyond its maximal capacity.</li>
  503. <li>A non-existent element of the list was referenced. (i.e. the list index
  504. was out of bounds)</li>
  505. <li>An attempt was made to add a duplicate entry to a <link
  506. id="TStringList"/> when <link id="TStringList.AllowDuplicates"/> is
  507. <var>False</var>.</li>
  508. </ol>
  509. </descr>
  510. <seealso>
  511. <link id="TStrings"/>
  512. <link id="TStringList"/>
  513. </seealso>
  514. </element>
  515. <element name="EComponentError">
  516. <short>
  517. Exception raised when an error occurs in the component registration
  518. routines.
  519. </short>
  520. <descr>
  521. <p>
  522. When an error occurs during the registration of a component, or when naming
  523. a component, then a <var>EComponentError</var> is raised. Possible causes
  524. are:
  525. </p>
  526. <ol>
  527. <li>An name with an illegal character was assigned to a component.</li>
  528. <li>A component with the same name and owner already exists.</li>
  529. <li>The component registration system isn't set up properly.</li>
  530. </ol>
  531. </descr>
  532. <seealso>
  533. <link id="TComponent"/>
  534. <link id="TComponent.Name"/>
  535. </seealso>
  536. </element>
  537. <element name="EParserError">
  538. <short>
  539. Exception raised when an error occurs during the parsing of streams.
  540. </short>
  541. <descr>
  542. When an error occurs during the parsing of a stream, an <var>EParserError</var>
  543. is raised. Usually this indicates that an invalid token was found on the
  544. input stream, or the token read from the stream wasn't the expected token.
  545. </descr>
  546. <seealso>
  547. <link id="TParser"/>
  548. </seealso>
  549. </element>
  550. <element name="EOutOfResources">
  551. <short>
  552. Exception raised when the system is out of resources.
  553. </short>
  554. <descr>
  555. This exception is not used in Free Pascal, it is defined for Delphi
  556. compatibiliy purposes only.
  557. </descr>
  558. </element>
  559. <element name="EInvalidOperation">
  560. <short>
  561. Exception raised when an invalid operation is performed. Obsolete.
  562. </short>
  563. <descr>
  564. This exception is not used in Free Pascal, it is defined for Delphi
  565. compatibiliy purposes only.
  566. </descr>
  567. </element>
  568. <!--
  569. **********************************************************************
  570. TList
  571. **********************************************************************
  572. -->
  573. <element name="TList">
  574. <short>Class to manage collections of pointers.</short>
  575. <descr>
  576. <p>
  577. <var>TList</var> is a class that can be used to manage collections of
  578. pointers. It introduces methods and properties to store the pointers, search
  579. in the list of pointers, sort them. It manages its memory by itself, no
  580. intervention for that is needed.
  581. </p>
  582. <p>
  583. To manage collections of strings, it is better to use a <link
  584. id="TStrings"/> descendent such as <link id="TStringList"/>. To manage
  585. general objects, a <link id="TCollection"/> class exists, from which a
  586. descendent can be made to manage collections of various kinds.
  587. </p>
  588. </descr>
  589. <seealso>
  590. <link id="TStrings"/>
  591. <link id="TCollection"/>
  592. </seealso>
  593. </element>
  594. <!-- To be documented later on maybe ?
  595. function Get(Index: Integer): Pointer;
  596. <element name="">
  597. <short>
  598. </short>
  599. <descr>
  600. </descr>
  601. </element>
  602. procedure Grow; virtual;
  603. <element name="">
  604. <short>
  605. </short>
  606. <descr>
  607. </descr>
  608. </element>
  609. procedure Put(Index: Integer; Item: Pointer);
  610. <element name="">
  611. <short>
  612. </short>
  613. <descr>
  614. </descr>
  615. </element>
  616. procedure SetCapacity(NewCapacity: Integer);
  617. <element name="">
  618. <short>
  619. </short>
  620. <descr>
  621. </descr>
  622. </element>
  623. procedure SetCount(NewCount: Integer);
  624. <element name="">
  625. <short>
  626. </short>
  627. <descr>
  628. </descr>
  629. </element>
  630. -->
  631. <element name="TList.Destroy">
  632. <short>
  633. Destroys the list and releases the memory used to store the list elements.
  634. </short>
  635. <descr>
  636. <var>Destroy</var> destroys the list and releases the memory used to store
  637. the list elements. The elements themselves are in no way touched, i.e. any
  638. meomory they point to must be explicitly released before calling the
  639. destructor.
  640. </descr>
  641. </element>
  642. <element name="TList.Add">
  643. <short>
  644. Adds a new pointer to the list.
  645. </short>
  646. <descr>
  647. <p>
  648. <var>Add</var> adds a new pointer to the list after the last pointer (i.e.
  649. at position <var>Count</var>, thus increasing the item count with 1.
  650. If the list is at full capacity, the capacity of the list is expanded,
  651. using the <link id="TList.Grow">Grow</link> method.
  652. </p>
  653. <p>
  654. To insert a pointer at a certain position in the list, use the <link
  655. id="TList.Insert">Insert</link> method instead.
  656. </p>
  657. </descr>
  658. <seealso>
  659. <link id="TList.Delete">Delete</link>
  660. <link id="TList.Grow">Grow</link>
  661. <link id="TList.Insert">Insert</link>
  662. </seealso>
  663. </element>
  664. <element name="TList.Clear">
  665. <short>
  666. Clears the pointer list.
  667. </short>
  668. <descr>
  669. <var>Clear</var> removes all pointers from the list, and sets the capacity to
  670. 0, thus freeing any memory allocated to maintain the list.
  671. </descr>
  672. <seealso>
  673. <link id="TList.Destroy">Destroy</link>
  674. </seealso>
  675. </element>
  676. <!-- procedure Delete(Index: Integer); -->
  677. <element name="TList.Delete">
  678. <short>
  679. Removes a pointer from the list.
  680. </short>
  681. <descr>
  682. <p><var>Delete</var> removes the pointer at position <var>Index</var> from the
  683. list, shifting all following pointers one position up (or to the left).
  684. </p>
  685. <p>
  686. The memory the pointer is pointing to is <i>not</i> deallocated.
  687. </p>
  688. </descr>
  689. </element>
  690. <element name="TList.Error">
  691. <short>
  692. Raises an <link id="EListError"/> exception.
  693. </short>
  694. <descr>
  695. <var>Error</var> raises an <link id="EListError"/> exception, with a message
  696. formatted with <var>Msg</var> and <var>Data</var>.
  697. </descr>
  698. </element>
  699. <!-- procedure Exchange(Index1, Index2: Integer); -->
  700. <element name="TList.Exchange">
  701. <short>
  702. Exchanges two pointers in the list.
  703. </short>
  704. <descr>
  705. <var>Exchange</var> exchanges the pointers at positions <var>Index1</var>
  706. and <var>Index2</var>. Both pointers must be withing the current range of
  707. the list, or an <link id="EListError"/> exception will be raised.
  708. </descr>
  709. </element>
  710. <element name="TList.Expand">
  711. <short>
  712. Increases the capacity of the list if needed.
  713. </short>
  714. <descr>
  715. <p>
  716. <var>Expand</var> increases the capacity of the list if the current element
  717. count matches the current list capacity.
  718. </p>
  719. <p>
  720. The capacity is increased according to the following algorithm:
  721. </p>
  722. <ol>
  723. <li>If the capacity is less than 3, the capacity is increased with 4.</li>
  724. <li>If the capacity is larger than 3 and less than 8, the capacity is increased with 8.</li>
  725. <li>If the capacity is larger than 8, the capacity is increased with 16.</li>
  726. </ol>
  727. <p>
  728. The return value is <var>Self</var>.
  729. </p>
  730. </descr>
  731. <seealso>
  732. <link id="TList.Capacity">Capacity</link>
  733. <!-- <link id="Tlist.SetCapacity"> -->
  734. </seealso>
  735. </element>
  736. <element name="TList.First">
  737. <short>
  738. Returns the first non-nil pointer in the list.
  739. </short>
  740. <descr>
  741. <p>
  742. <var>First</var> returns the value of the first non-nil pointer in the
  743. list.
  744. </p>
  745. <p> If there are no pointers in the list or all pointers equal
  746. <var>Nil</var>, then <var>Nil</var> is returned.
  747. </p>
  748. </descr>
  749. <seealso>
  750. <link id="TList.Last">Last</link>
  751. </seealso>
  752. </element>
  753. <!-- function IndexOf(Item: Pointer): Integer; -->
  754. <element name="TList.IndexOf">
  755. <short>
  756. Returns the index of a given pointer.
  757. </short>
  758. <descr>
  759. <p>
  760. <var>IndexOf</var> searches for the pointer <var>Item</var> in the list
  761. of pointers, and returns the index of the pointer, if found.
  762. </p>
  763. <p>
  764. If no pointer with the value <var>Item</var> was found, -1 is returned.
  765. </p>
  766. </descr>
  767. </element>
  768. <element name="TList.Insert">
  769. <short>
  770. Inserts a new pointer in the list at a given position.
  771. </short>
  772. <descr>
  773. <p>
  774. <var>Insert</var> inserts pointer <var>Item</var> at position
  775. <var>Index</var> in the list. All pointers starting from <var>Index</var>
  776. are shifted to the right.
  777. </p>
  778. <p>
  779. If <var>Index</var> is not a valid position, then a <link id="EListError"/>
  780. exception is raised.
  781. </p>
  782. </descr>
  783. <seealso>
  784. <link id="TList.Add">Add</link>
  785. <link id="Tlist.Delete">Delete</link>
  786. </seealso>
  787. </element>
  788. <element name="TList.Insert.Item">
  789. <short> Pointer to be inserted.</short>
  790. </element>
  791. <element name="TList.Insert.Index">
  792. <short> Position where to insert</short>
  793. </element>
  794. <!-- function Last: Pointer; -->
  795. <element name="TList.Last">
  796. <short>
  797. Returns the last non-nil pointer in the list.
  798. </short>
  799. <descr>
  800. <p>
  801. <var>Last</var> returns the value of the last non-nil pointer in the
  802. list.
  803. </p>
  804. <p> If there are no pointers in the list or all pointers equal
  805. <var>Nil</var>, then <var>Nil</var> is returned.
  806. </p>
  807. </descr>
  808. <seealso>
  809. <link id="TList.First">First</link>
  810. </seealso>
  811. </element>
  812. <!-- procedure Move(CurIndex, NewIndex: Integer); -->
  813. <element name="TList.Move">
  814. <short>
  815. Moves a pointer from one position in the list to another.
  816. </short>
  817. <descr>
  818. <p>
  819. <var>Move</var> moves the pointer at position <var>CurIndex</var>
  820. to position <var>NewIndex</var>. This is done by storing the value
  821. at position <var>CurIndex</var>, deleting the pointer at position
  822. <var>CurIndex</var>, and reinserting the value at position
  823. <var>NewIndex</var>
  824. </p>
  825. <p>
  826. If <var>CurIndex</var> or <var>Newindex</var> are not inside the valid
  827. range of indices, an <link id="EListError"/> exception is raised.
  828. </p>
  829. </descr>
  830. <seealso>
  831. <link id="TList.Exchange">Exchange</link>
  832. </seealso>
  833. </element>
  834. <!-- function Remove(Item: Pointer): Integer; -->
  835. <element name="TList.Remove">
  836. <short>
  837. Removes a value from the list.
  838. </short>
  839. <descr>
  840. <var>Remove</var> searches <var>Item</var> in the list, and, if it finds it,
  841. deletes the item from the list. Only the first occurrence of <var>Item</var>
  842. is removed.
  843. </descr>
  844. <seealso>
  845. <link id="TList.Delete">Delete</link>
  846. <link id="TList.IndexOf">IndexOf</link>
  847. <link id="Tlist.Insert">Insert</link>
  848. </seealso>
  849. </element>
  850. <!-- procedure Pack; -->
  851. <element name="TList.Pack">
  852. <short>
  853. Removes <var>Nil</var> pointers from the list and frees unused memory.
  854. </short>
  855. <descr>
  856. <var>Pack</var> removes all <var>nil</var> pointers from the list.
  857. The capacity of the list is then set to the number of pointers in the list.
  858. This method can be used to free unused memory if the list has grown to
  859. very large sizes and has a lot of unneeded nil pointers in it.
  860. </descr>
  861. <seealso>
  862. <link id="TList.Clear"/>
  863. </seealso>
  864. </element>
  865. <!-- procedure Sort(Compare: TListSortCompare); -->
  866. <element name="TList.Sort">
  867. <short>
  868. Sorts the pointers in the list.
  869. </short>
  870. <descr>
  871. <p>
  872. <var>Sort></var> sorts the pointers in the list. Two pointers are compared
  873. by passing them to the <var>Compare</var> function. The result of this
  874. function determines how the pointers will be sorted:
  875. </p>
  876. <ul>
  877. <li> If the result of this function is negative, the first pointer is
  878. assumed to be 'less' than the second and will be moved before the second
  879. in the list.</li>
  880. <li> If the function result is positive, the first pointer is assumed to
  881. be 'greater than' the second and will be moved after the second in the
  882. list.</li>
  883. <li> if the function result is zero, the pointers are assumed to be 'equal'
  884. and no moving will take place. </li>
  885. </ul>
  886. <p>
  887. The sort is done using a quicksort algorithm.
  888. </p>
  889. </descr>
  890. </element>
  891. <!-- property Capacity: Integer read FCapacity write SetCapacity; -->
  892. <element name="TList.Capacity">
  893. <short>
  894. Current capacity (i.e. number of pointers that can be stored) of the list.
  895. </short>
  896. <descr>
  897. <p><var>Capacity</var> contains the number of pointers the list can store
  898. before it starts to grow.
  899. </p>
  900. <p>
  901. If a new pointer is added to the list using <link id="TList.Add">add</link>
  902. or <link id="TList.Insert">insert</link>, and there is not enough memory to
  903. store the new pointer, then the list will try to allocate more memory to
  904. store the new pointer. Since this is a time consuming operation, it is
  905. important that this operation be performed as little as possible. If
  906. it is known how many pointers there will be before filling the list, it is
  907. a good idea to set the capacity first before filling. This ensures that the
  908. list doesn't need to grow, and will speed up filling the list.
  909. </p>
  910. </descr>
  911. <seealso>
  912. <link id="TList.SetCapacity">SetCapacity</link>
  913. <link id="TList.Count">Count</link>
  914. </seealso>
  915. </element>
  916. <!-- property Count: Integer read FCount write SetCount; -->
  917. <element name="Tlist.Count">
  918. <short>
  919. Current number of pointers in the list.
  920. </short>
  921. <descr>
  922. <var>Count</var> is the current number of (possibly <var>Nil</var>) pointers
  923. in the list. Since the list is zero-based, the index of the largest pointer
  924. is <var>Count-1</var>.
  925. </descr>
  926. <link id="TList.Capacity">Capacity</link>
  927. </element>
  928. <!-- property Items[Index: Integer]: Pointer read Get write Put; default; -->
  929. <element name="TList.Items">
  930. <short>
  931. Probides access to the pointers in the list.
  932. </short>
  933. <descr>
  934. <p><var>Items</var> is used to access the pointers in the list. It is the
  935. default property of the <var>TList</var> class, so it can be omitted.
  936. </p>
  937. <p>
  938. The list is zero-based, so Index must be in the range <var>0</var> to
  939. <var>Count-1</var>.
  940. </p>
  941. </descr>
  942. </element>
  943. <!-- property List: PPointerList read FList; -->
  944. <element name="TList.List">
  945. <short>
  946. Memory array where pointers are stored.
  947. </short>
  948. <descr>
  949. <var>List</var> points to the memory space where the pointers are stored.
  950. This can be used to quickly copy the list of pinters to another location.
  951. </descr>
  952. </element>
  953. <!--
  954. **********************************************************************
  955. ThreadList
  956. **********************************************************************
  957. -->
  958. <element name="TThreadList"> <!-- Class -->
  959. <short>List object containing all threads.</short>
  960. <descr></descr>
  961. <errors></errors>
  962. <seealso></seealso>
  963. </element>
  964. <element name="TThreadList.Create"> <!-- Constructor -->
  965. <short></short>
  966. <descr></descr>
  967. <errors></errors>
  968. <seealso></seealso>
  969. </element>
  970. <element name="TThreadList.Destroy"> <!-- Destructor -->
  971. <short></short>
  972. <descr></descr>
  973. <errors></errors>
  974. <seealso></seealso>
  975. </element>
  976. <element name="TThreadList.Add"> <!-- Procedure -->
  977. <short></short>
  978. <descr></descr>
  979. <errors></errors>
  980. <seealso></seealso>
  981. </element>
  982. <element name="TThreadList.Clear"> <!-- Procedure -->
  983. <short></short>
  984. <descr></descr>
  985. <errors></errors>
  986. <seealso></seealso>
  987. </element>
  988. <element name="TThreadList.LockList"> <!-- Function -->
  989. <short></short>
  990. <descr></descr>
  991. <errors></errors>
  992. <seealso></seealso>
  993. </element>
  994. <element name="TThreadList.Remove"> <!-- Procedure -->
  995. <short></short>
  996. <descr></descr>
  997. <errors></errors>
  998. <seealso></seealso>
  999. </element>
  1000. <element name="TThreadList.UnlockList"> <!-- Procedure -->
  1001. <short></short>
  1002. <descr></descr>
  1003. <errors></errors>
  1004. <seealso></seealso>
  1005. </element>
  1006. <!--
  1007. **********************************************************************
  1008. TBits helpers
  1009. **********************************************************************
  1010. -->
  1011. <element name="BITSHIFT"> <!-- Constant -->
  1012. <short>Used to calculate the size of a bits array</short>
  1013. <seealso>
  1014. <link id="TBits"/>
  1015. <link id="TBits.Size"/>
  1016. </seealso>
  1017. </element>
  1018. <element name="MASK"> <!-- Constant -->
  1019. <short>Bitmask with all bits on.</short>
  1020. <seealso>
  1021. <link id="TBits"/>
  1022. </seealso>
  1023. </element>
  1024. <element name="MaxBitRec"> <!-- Constant -->
  1025. <short>Maximum number of bit records in TBits.</short>
  1026. <seealso>
  1027. <link id="TBits"/>
  1028. </seealso>
  1029. </element>
  1030. <element name="MaxBitFlags"> <!-- Constant -->
  1031. <short>Maximum number of bits in TBits collection.</short>
  1032. <seealso>
  1033. <link id="TBits"/>
  1034. </seealso>
  1035. </element>
  1036. <element name="TBitArray"> <!-- Array type -->
  1037. <short>Array to store bits.</short>
  1038. <seealso>
  1039. <link id="TBits"/>
  1040. </seealso>
  1041. </element>
  1042. <!--
  1043. **********************************************************************
  1044. TBis
  1045. **********************************************************************
  1046. -->
  1047. <element name="TBits"> <!-- Class -->
  1048. <short>Class to store collections of bits (binary values that can be 0 or 1)</short>
  1049. <descr>
  1050. <p><var>TBits</var> can be used to store collections of bits in an indexed
  1051. array. This is especially useful for storing collections of booleans:
  1052. Normally the size of a boolean is the size of the smallest enumerated type,
  1053. i.e. 1 byte. Since a bit can take 2 values it can be used to store a boolean
  1054. as well. Since TBits can store 8 bits in a byte, it takes 8 times less space
  1055. to store an array of booleans in a TBits class then it would take to stoe
  1056. them in a conventional array.
  1057. </p>
  1058. <p><var>TBits</var> introduces methods to store and retrieve bit values,
  1059. apply masks, and search for bits.
  1060. </p>
  1061. </descr>
  1062. </element>
  1063. <element name="TBits.Create"> <!-- Constructor -->
  1064. <short>Creates a new bits collection.</short>
  1065. <descr>
  1066. <p>
  1067. <var>Create</var> creates a new bit collection with initial size <var>TheSize</var>.
  1068. The size of the collection can be changed later on.
  1069. </p>
  1070. <p>All bits are initially set to zero.</p>
  1071. </descr>
  1072. <seealso>
  1073. <link id="TBits.Destroy">Destroy</link>
  1074. </seealso>
  1075. </element>
  1076. <element name="TBits.Destroy"> <!-- Destructor -->
  1077. <short>Destroys a bit collection</short>
  1078. <descr>
  1079. <p>
  1080. <var>Destroy</var> destroys a previously created bit collection and
  1081. releases all memory used to store the bit collection.
  1082. </p>
  1083. <p>
  1084. <var>Destroy</var> should never be called directly, <var>Free</var>
  1085. should be used instead.
  1086. </p>
  1087. </descr>
  1088. <errors>
  1089. None.
  1090. </errors>
  1091. <seealso>
  1092. <link id="TBits.Create">Create</link>
  1093. </seealso>
  1094. </element>
  1095. <element name="TBits.getFSize"> <!-- Function -->
  1096. <short>Returns the number of records used to store the bits.</short>
  1097. <descr>
  1098. <var>GetFSize</var> returns the number of records used to store the current
  1099. number of bits.
  1100. </descr>
  1101. <errors>
  1102. None.
  1103. </errors>
  1104. <seealso>
  1105. <link id="TBits.Size">Size</link>
  1106. </seealso>
  1107. </element>
  1108. <element name="TBits.seton"> <!-- Procedure -->
  1109. <short>Turn a particular bit on.</short>
  1110. <descr>
  1111. <var>SetOn</var> turns on the bit at position <var>bit</var>, i.e. sets it
  1112. to 1.
  1113. If <var>bit</var> is at a position bigger than the current size, the collection
  1114. is expanded to the required size using <link id="TBits.grow">Grow</link>.
  1115. </descr>
  1116. <errors>
  1117. If <var>bit</var> is larger than the maximum allowed bits array size or
  1118. is negative, an <link id="EBitsError"/> exception is raised.
  1119. </errors>
  1120. <seealso>
  1121. <link id="TBits.Bits">Bits</link>
  1122. <link id="TBits.clear">Clear</link>
  1123. </seealso>
  1124. </element>
  1125. <element name="TBits.clear"> <!-- Procedure -->
  1126. <short>Clears a particular bit.</short>
  1127. <descr>
  1128. <var>Clear</var> clears the bit at position <var>bit</var>. If the array
  1129. If <var>bit</var> is at a position bigger than the current size, the collection
  1130. is expanded to the required size using <link id="TBits.grow">Grow</link>.
  1131. </descr>
  1132. <errors>
  1133. If <var>bit</var> is larger than the maximum allowed bits array size or
  1134. is negative, an <link id="EBitsError"/> exception is raised.
  1135. </errors>
  1136. <seealso>
  1137. <link id="TBits.Bits">Bits</link>
  1138. <link id="TBits.clear">seton</link>
  1139. </seealso>
  1140. </element>
  1141. <element name="TBits.clearall"> <!-- Procedure -->
  1142. <short>Clears all bits in the array.</short>
  1143. <descr>
  1144. <var>ClearAll</var> clears all bits in the array, i.e. sets them to zero. <var>
  1145. ClearAll</var> works faster than clearing all individual bits, since it
  1146. uses the packed nature of the bits.
  1147. </descr>
  1148. <errors>
  1149. None.
  1150. </errors>
  1151. <seealso>
  1152. <link id="TBits.Bits">Bits</link>
  1153. <link id="TBits.clear">clear</link>
  1154. </seealso>
  1155. </element>
  1156. <element name="TBits.andbits"> <!-- Procedure -->
  1157. <short>Performs an <var>and</var> operation on the bits.</short>
  1158. <descr>
  1159. <var>andbits</var> performs an <var>and</var> operation on the bits in
  1160. the array with the bits of array <var>BitSet</var>. If <var>BitSet</var>
  1161. contains less bits than the current array, then all bits which have no
  1162. counterpart in <var>BitSet</var> are cleared.
  1163. </descr>
  1164. <errors>
  1165. None.
  1166. </errors>
  1167. <seealso>
  1168. <link id="TBits.clearall">ClearAll</link>
  1169. <link id="TBits.orbits">OrBits</link>
  1170. <link id="TBits.xorbits">XOrBits</link>
  1171. <link id="TBits.notbits">NotBits</link>
  1172. </seealso>
  1173. </element>
  1174. <element name="TBits.orbits"> <!-- Procedure -->
  1175. <short>Performs an <var>or</var> operation on the bits.</short>
  1176. <descr>
  1177. <p>
  1178. <var>andbits</var> performs an <var>or</var> operation on the bits in
  1179. the array with the bits of array <var>BitSet</var>.
  1180. </p>
  1181. <p>
  1182. If <var>BitSet</var>
  1183. contains less bits than the current array, then all bits which have no
  1184. counterpart in <var>BitSet</var> are left untouched.
  1185. </p>
  1186. <p>
  1187. If the current array contains less bits than <var>BitSet</var> then it is
  1188. grown to the size of <var>BitSet</var> before the <var>or</var> operation is
  1189. performed.
  1190. </p>
  1191. </descr>
  1192. <errors>
  1193. None.
  1194. </errors>
  1195. <seealso>
  1196. <link id="TBits.clearall">ClearAll</link>
  1197. <link id="TBits.andbits">andBits</link>
  1198. <link id="TBits.xorbits">XOrBits</link>
  1199. <link id="TBits.notbits">NotBits</link>
  1200. </seealso>
  1201. </element>
  1202. <element name="TBits.xorbits"> <!-- Procedure -->
  1203. <short>Performs a <var>xor</var> operation on the bits.</short>
  1204. <descr>
  1205. <p><var>XorBits</var> performs a <var>xor</var> operation on the bits in
  1206. the array with the bits of array <var>BitSet</var>.
  1207. </p>
  1208. <p>If <var>BitSet</var>
  1209. contains less bits than the current array, then all bits which have no
  1210. counterpart in <var>BitSet</var> are left untouched.
  1211. </p>
  1212. <p>
  1213. If the current array contains less bits than <var>BitSet</var> then it is
  1214. grown to the size of <var>BitSet</var> before the <var>xor</var> operation is
  1215. performed.
  1216. </p>
  1217. </descr>
  1218. <errors>
  1219. None.
  1220. </errors>
  1221. <seealso>
  1222. <link id="TBits.clearall">ClearAll</link>
  1223. <link id="TBits.andbits">andBits</link>
  1224. <link id="TBits.orbits">OrBits</link>
  1225. <link id="TBits.notbits">NotBits</link>
  1226. </seealso>
  1227. </element>
  1228. <element name="TBits.notbits"> <!-- Procedure -->
  1229. <short>Performs a <var>not</var> operation on the bits.</short>
  1230. <descr>
  1231. <p><var>NotBits</var> performs a <var>not</var> operation on the bits in
  1232. the array with the bits of array <var>Bitset</var>.
  1233. </p>
  1234. <p>If <var>BitSet</var>
  1235. contains less bits than the current array, then all bits which have no
  1236. counterpart in <var>BitSet</var> are left untouched.
  1237. </p>
  1238. </descr>
  1239. <errors>
  1240. None.
  1241. </errors>
  1242. <seealso>
  1243. <link id="TBits.clearall">ClearAll</link>
  1244. <link id="TBits.andbits">andBits</link>
  1245. <link id="TBits.orbits">OrBits</link>
  1246. <link id="TBits.xorbits">XOrBits</link>
  1247. </seealso>
  1248. </element>
  1249. <element name="TBits.get"> <!-- Function -->
  1250. <short>Retrieve the value of a particular bit</short>
  1251. <descr>
  1252. <var>Get</var> returns <var>True</var> if the bit at position <var>bit</var>
  1253. is set, or <var>False</var> if it is not set.
  1254. </descr>
  1255. <errors>
  1256. If <var>bit</var> is not a valid bit index then an <link id="EBitsError"/>
  1257. exception is raised.
  1258. </errors>
  1259. <seealso>
  1260. <link id="TBits.Bits">Bits</link>
  1261. <link id="TBits.FindFirstBit">FindFirstBit</link>
  1262. <link id="TBits.seton">seton</link>
  1263. </seealso>
  1264. </element>
  1265. <element name="TBits.grow"> <!-- Procedure -->
  1266. <short>Expands the bits array to the requested size.</short>
  1267. <descr>
  1268. <var>Grow</var> expands the bit array so it can at least contain
  1269. <var>nbit</var> bits. If <var>nbit</var> is less than the current size,
  1270. nothing happens.
  1271. </descr>
  1272. <errors>
  1273. If there is not enough memory to complete the operation, then an
  1274. <link id="EBitsError"/>is raised.
  1275. </errors>
  1276. <seealso>
  1277. <link id="TBits.Size">Size</link>
  1278. </seealso>
  1279. </element>
  1280. <element name="TBits.equals"> <!-- Function -->
  1281. <short>Determines whether the bits of 2 arrays are equal.</short>
  1282. <descr>
  1283. <p><var>equals</var> returns <var>True</var> if all the bits in <var>BitSet</var>
  1284. are the same as the ones in the current BitSet; if not, <var>False</var> is
  1285. returned.
  1286. </p>
  1287. <p>
  1288. If the sizes of the two BitSets are different, the arrays are still reported
  1289. equal when all the bits in the larger set, which are not present in the smaller
  1290. set, are zero.
  1291. </p>
  1292. </descr>
  1293. <errors>
  1294. None.
  1295. </errors>
  1296. <seealso>
  1297. <link id="TBits.clearall">ClearAll</link>
  1298. <link id="TBits.andbits">andBits</link>
  1299. <link id="TBits.orbits">OrBits</link>
  1300. <link id="TBits.xorbits">XOrBits</link>
  1301. </seealso>
  1302. </element>
  1303. <element name="TBits.SetIndex"> <!-- Procedure -->
  1304. <short>Sets the start position for <link
  1305. id="TBits.FindNextBit">FindNextBit</link> and <link
  1306. id="TBits.FindPrevBit">FindPrevBit</link></short>
  1307. <descr>
  1308. <p>
  1309. <var>SetIndex</var> sets the search start position for<link
  1310. id="TBits.FindNextBit">FindNextBit</link> and
  1311. <link id="TBits.FindPrevBit">FindPrevBit</link> to <var>Index</var>.
  1312. This means that these calls will start searching from position
  1313. <var>Index</var>.
  1314. </p>
  1315. <p>This mechanism provides an alternative to <link
  1316. id="TBits.FindFirstBit">FindFirstBit</link> which can also be used to
  1317. position for the <var>FindNextBit</var> and <var>FindPrevBit</var> calls.
  1318. </p>
  1319. </descr>
  1320. <errors>
  1321. None.
  1322. </errors>
  1323. <seealso>
  1324. <link id="TBits.FindNextBit">FindNextBit</link>
  1325. <link id="TBits.FindPrevBit">FindPrevBit</link>
  1326. <link id="TBits.FindFirstBit">FindFirstBit</link>
  1327. <link id="TBits.OpenBit">OpenBit</link>
  1328. </seealso>
  1329. </element>
  1330. <element name="TBits.FindFirstBit"> <!-- Function -->
  1331. <short>Find first bit with a particular value</short>
  1332. <descr>
  1333. <p>
  1334. <var>FindFirstBit</var> searches for the first bit with value
  1335. <var>State</var>. It returns the position of this bit, or <var>-1</var> if
  1336. no such bit was found.
  1337. </p>
  1338. <p>The search starts at position 0 in the array. If the first search
  1339. returned a positive result, the found position is saved, and the
  1340. <link id="TBits.FindNextBit">FindNextBit</link> and <link
  1341. id="TBits.FindPrevBit">FindPrevBit</link> will use this position to resume the
  1342. search. To start a search from a certain position, the start position can be
  1343. set with the <link id="TBits.SetIndex">SetIndex</link> instead.
  1344. </p>
  1345. </descr>
  1346. <errors>
  1347. None.
  1348. </errors>
  1349. <seealso>
  1350. <link id="TBits.FindNextBit">FindNextBit</link>
  1351. <link id="TBits.FindPrevBit">FindPrevBit</link>
  1352. <link id="TBits.OpenBit">OpenBit</link>
  1353. <link id="TBits.SetIndex">SetIndex</link>
  1354. </seealso>
  1355. </element>
  1356. <element name="TBits.FindNextBit"> <!-- Function -->
  1357. <short>Searches the next bit with a particular value.</short>
  1358. <descr>
  1359. <p>
  1360. <var>FindNextBit</var> resumes a previously started search. It searches for
  1361. the next bit with the value specified in the <link
  1362. id="TBits.FindFirstBit">FindFirstBit</link>. The search is done towards the
  1363. end of the array and starts at the position last reported by one of the
  1364. <var>Find</var> calls or at the position set with <link id="TBits.SetIndex">
  1365. SetIndex</link>.
  1366. </p>
  1367. <p>
  1368. If another bit with the same value is found, its position
  1369. is returned. If no more bits with the same value are present in the array,
  1370. <var>-1</var> is returned.
  1371. </p>
  1372. </descr>
  1373. <errors>
  1374. None.
  1375. </errors>
  1376. <seealso>
  1377. <link id="TBits.FindFirstBit">FindFirstBit</link>
  1378. <link id="TBits.FindPrevBit">FindPrevBit</link>
  1379. <link id="TBits.OpenBit">OpenBit</link>
  1380. <link id="TBits.SetIndex">SetIndex</link>
  1381. </seealso>
  1382. </element>
  1383. <element name="TBits.FindPrevBit"> <!-- Function -->
  1384. <short>Searches the previous bit with a particular value.</short>
  1385. <descr>
  1386. <p>
  1387. <var>FindPrevBit</var> resumes a previously started search. It searches for
  1388. the previous bit with the value specified in the <link
  1389. id="TBits.FindFirstBit">FindFirstBit</link>. The search is done towards the
  1390. beginning of the array and starts at the position last reported by one of the
  1391. <var>Find</var> calls or at the position set with <link id="TBits.SetIndex">
  1392. SetIndex</link>.
  1393. </p>
  1394. <p>
  1395. If another bit with the same value is found, its position
  1396. is returned. If no more bits with the same value are present in the array,
  1397. <var>-1</var> is returned.
  1398. </p>
  1399. </descr>
  1400. <errors>
  1401. None.
  1402. </errors>
  1403. <seealso>
  1404. <link id="TBits.FindFirstBit">FindFirstBit</link>
  1405. <link id="TBits.FindNextBit">FindNextBit</link>
  1406. <link id="TBits.OpenBit">OpenBit</link>
  1407. <link id="TBits.SetIndex">SetIndex</link>
  1408. </seealso>
  1409. </element>
  1410. <element name="TBits.OpenBit"> <!-- Function -->
  1411. <short>Returns the position of the first bit that is set to <var>False</var>.</short>
  1412. <descr>
  1413. <var>OpenBit</var> returns the position of the first bit whose value is
  1414. <var>0</var> (<var>False</var>), or <var>-1</var> if no open bit was found.
  1415. This call is equivalent to
  1416. <var>FindFirstBit(False)</var>, except that it doesn't set the position for
  1417. the next searches.
  1418. </descr>
  1419. <errors>
  1420. None.
  1421. </errors>
  1422. <seealso>
  1423. <link id="TBits.FindFirstBit">FindNextBit</link>
  1424. <link id="TBits.FindPrevBit">FindPrevBit</link>
  1425. <link id="TBits.FindFirstBit">FindFirstBit</link>
  1426. <link id="TBits.SetIndex">SetIndex</link>
  1427. </seealso>
  1428. </element>
  1429. <element name="TBits.Bits"> <!-- Property -->
  1430. <short>Access to all bits in the array.</short>
  1431. <descr>
  1432. <var>Bits</var> allows indexed access to all of the bits in the array. It
  1433. gives <var>True</var> if the bit is <var>1</var>, <var>False</var>
  1434. otherwise; Assigning to this property will set, respectively clear the bit.
  1435. </descr>
  1436. <errors>
  1437. If an index is specified which is out of the allowed range then an <link
  1438. id="EBitsError"/> exception is raised.
  1439. </errors>
  1440. <seealso>
  1441. <link id="TBits.Size">Size</link>
  1442. </seealso>
  1443. </element>
  1444. <element name="TBits.Size"> <!-- Property -->
  1445. <short>Current size of the array of bits.</short>
  1446. <descr>
  1447. <var>Size</var> is the current size of the bit array. Setting this property
  1448. will adjust the size; this is equivalent to calling <var>Grow(Value-1)</var>
  1449. </descr>
  1450. <errors>
  1451. If an invalid size (negative or too large) is specified, a <link
  1452. id="EBitsError"/> exception is raised.
  1453. </errors>
  1454. <seealso>
  1455. <link id="TBits.Bits">Bits</link>
  1456. </seealso>
  1457. </element>
  1458. <!--
  1459. *********************************************************************
  1460. TPersistent
  1461. *********************************************************************
  1462. -->
  1463. <element name="TPersistent"> <!-- Class -->
  1464. <short>Base class for streaming system and persistent properties.</short>
  1465. <descr>
  1466. <p><var>TPersistent</var> is the basic class for the streaming system. Since it
  1467. is compiled in the <var>{$M+}</var> state, the compiler generates RTTI
  1468. (Run-Time Type Information) for it and all classes that descend from it.
  1469. This information can be used to stream all properties of classes.
  1470. </p>
  1471. <p>
  1472. It also introduces functionality to assign the contents of 2 classes to
  1473. each other.
  1474. </p>
  1475. </descr>
  1476. <seealso>
  1477. <link id="TComponent"/>
  1478. </seealso>
  1479. </element>
  1480. <element name="TPersistent.AssignError"> <!-- Procedure -->
  1481. <short>Raises an <var>EConvertError</var> when an error occurs during
  1482. assignment.</short>
  1483. <descr>
  1484. <var>AssignError</var> raises an <var>EConvertError</var> exception with
  1485. the classnames of the <var>Source</var> and destination classes. It is used
  1486. when two incompatible classes are assigned to each other.
  1487. </descr>
  1488. <seealso>
  1489. <link id="TPersistent.Assign">Assign</link>
  1490. <link id="TPersistent.AssignTo">AssignTo</link>
  1491. </seealso>
  1492. </element>
  1493. <element name="TPersistent.AssignTo"> <!-- Procedure -->
  1494. <short>Generic assignment function.</short>
  1495. <descr>
  1496. <p>
  1497. <var>AssignTo</var> is the generic function to assign the class' contents to
  1498. another class. This method must be overridden by descendent classes to
  1499. actually assign the content of the source instance to the destination
  1500. instance.
  1501. </p>
  1502. <p>
  1503. The <link id="TPersistent"/> implementation of <var>Assignto</var> raises
  1504. an <var>EConvertError</var> exception. This is done for the following
  1505. reason: If the source class doesn't know how to assign itself to the
  1506. destination class (using <var>AssignTo</var>), the destination class may
  1507. know how get the data from the source class (using <link
  1508. id="TPersistent.Assign">Assign</link>). If all descendent methods are
  1509. implemented correctly, then if neither of the two classes knows how to
  1510. assign their contents to each other, execution will end up at <link
  1511. id="TPersistent.Assign"/>, which will simply execute
  1512. </p>
  1513. <code>
  1514. Dest.AssignTo(Self);
  1515. </code>
  1516. <p>
  1517. If neither of the classes knows how to assign to/from each other, then
  1518. execution will end up at the <var>TPersistent</var> implementation of
  1519. <var>AssignTo</var>, and an exception will be raised.
  1520. </p>
  1521. </descr>
  1522. <seealso>
  1523. <link id="TPersistent.Assign">Assign</link>
  1524. </seealso>
  1525. </element>
  1526. <element name="TPersistent.DefineProperties"> <!-- Procedure -->
  1527. <short>Declare non-published properties that need to be streamed.</short>
  1528. <descr>
  1529. <p>
  1530. <var>DefineProperties</var> must be overridden by descendent classes to
  1531. indicate to the streaming system which non-published properties must
  1532. also be streamed.
  1533. </p>
  1534. <p>
  1535. The streaming systems stores only published properties in the stream.
  1536. Sometimes it is necessary to store additional data in the stream, data
  1537. which is not published. This can be done by overriding the
  1538. <var>DefineProperties</var> method. The <var>Filer</var> object is the
  1539. class that is responsible for writing all properties to the stream.
  1540. </p>
  1541. <p>
  1542. To define new properties, two methods of the <link id="TFiler"/> class
  1543. should be used:
  1544. </p>
  1545. <ol>
  1546. <li><link id="TFiler.DefineProperty">DefineProperty</link>, to define a
  1547. property which can be represented as text.</li>
  1548. <li><link id="TFiler.DefineBinaryProperty">DefineProperty</link>, to define a
  1549. property which contains binary data.</li>
  1550. </ol>
  1551. <p>
  1552. On order for the streaming to work correctly, a call to the inherited
  1553. <var>DefineProperties</var> is also needed, so ancestor objects also
  1554. get the possibility to read or write their private data to the stream.
  1555. Failure to call the inherited method will result in component properties not
  1556. being streamed correctly.
  1557. </p>
  1558. </descr>
  1559. <seealso>
  1560. <link id="TFiler.DefineProperties"/>
  1561. <link id="TFiler"/>
  1562. </seealso>
  1563. </element>
  1564. <element name="TPersistent.GetOwner"> <!-- Function -->
  1565. <short>Returns the owner of the component.</short>
  1566. <descr>
  1567. <var>GetOwner</var> returns the owning component of the classes instane.
  1568. The <var>TPersistent</var> implementation of <var>GetOwner</var> returns
  1569. <var>Nil</var>. <link id="TComponent"/> overrides this method.
  1570. </descr>
  1571. <seealso>
  1572. <link id="TComponent"/>
  1573. </seealso>
  1574. </element>
  1575. <element name="TPersistent.Destroy"> <!-- Destructor -->
  1576. <short>Destroys the <var>TPersistent</var> instance. </short>
  1577. <descr>
  1578. <var>Destroy</var> disposes of the persistent object. This method should
  1579. never be called directly. Instead the <var>Free</var> method should be used.
  1580. </descr>
  1581. </element>
  1582. <element name="TPersistent.Assign"> <!-- Procedure -->
  1583. <short>Assign the contents of one class to another.</short>
  1584. <descr>
  1585. <p>
  1586. <var>Assign</var> copies the contents of <var>Source</var> to
  1587. <var>Self</var>, if the classes of the destination and source classes are
  1588. compatible.
  1589. </p>
  1590. <p>
  1591. The <var>TPersistent</var> implementation of <var>Assign</var> does nothing
  1592. but calling the <link id="TPersistent.AssignTo">AssignTo</link> method of
  1593. source. This means that if the destination class does not know how to assign
  1594. the contents of the source class, the source class instance is asked to assign
  1595. itself to the destination class. This means that it is necessary to
  1596. implement only one of the two methods so that two classes can be assiged to
  1597. one another.
  1598. </p>
  1599. <remark>
  1600. <p>
  1601. In general, a statement of the form
  1602. </p>
  1603. <code>
  1604. Destination:=Source;
  1605. </code>
  1606. <p>
  1607. (where <var>Destination</var> and <var>Source</var> are classes) does not
  1608. achieve the same as a statement of the form
  1609. </p>
  1610. <code>
  1611. Destination.Assign(Source);
  1612. </code>
  1613. <p>After the former statement, both <var>Source</var> and
  1614. <var>Destination</var> will point to the same object. The latter statemtent
  1615. will copy the <i>contents</i> of the <var>Source</var> class to the
  1616. <var>Destination</var> class.
  1617. </p>
  1618. </remark>
  1619. </descr>
  1620. <seealso>
  1621. <link id="TPersistent.AssignTo">AssignTo</link>
  1622. </seealso>
  1623. </element>
  1624. <element name="TPersistent.GetNamePath"> <!-- Function -->
  1625. <short>Returns a string that can be used to identify the class instance.</short>
  1626. <descr>
  1627. <p>
  1628. <var>GetNamePath</var> returns a string that can be used to identify the
  1629. class instance. This can be used to display a name for this instance in a
  1630. Object designer.
  1631. </p>
  1632. <p>
  1633. <var>GetNamePath</var> constructs a name by recursively prepending the
  1634. <var>Classname</var> of the <var>Owner</var> instance to the
  1635. <var>Classname</var> of this instance, separated by a dot.
  1636. </p>
  1637. </descr>
  1638. <seealso>
  1639. <link id="TPersistent.GetOwner"/>
  1640. </seealso>
  1641. </element>
  1642. <element name="TPersistentClass"> <!-- "class of" type -->
  1643. <short>Class reference type for <link id="TPersistent"/>.</short>
  1644. <descr>
  1645. <var>TPersistentClass</var> is the class reference type for the <link id="TPersistent"/> class.
  1646. </descr>
  1647. <seealso>
  1648. <link id="TPersistent"/>
  1649. </seealso>
  1650. </element>
  1651. <!--
  1652. *********************************************************************
  1653. TCollectionItem
  1654. *********************************************************************
  1655. -->
  1656. <element name="TCollectionItem"> <!-- Class -->
  1657. <short>Basic object that is managed by a <link id="TCollection"/> class.</short>
  1658. <descr>
  1659. <p><var>TCollectionItem</var> and <link id='TCollection'/> form a pair of base
  1660. classes that manage a collection of named objects. The
  1661. <var>TCollectionItem</var> is the named object that is managed, it
  1662. represents one item in the collection. An item in the collection is
  1663. represented by two properties: <link id="TCollectionItem.DisplayName"/>,
  1664. <link id="TCollection.Index"/> and <link id="TCollectionItem.ID"/>.
  1665. </p>
  1666. <p>A <var>TCollectionItem</var> object is never created directly. To manage
  1667. a set of named items, it is necessary to make a descendent of
  1668. <var>TCollectionItem</var> to which needed properties and methods are
  1669. added. This descendant can then be managed with a <link id="TCollection"/>
  1670. class. The managing collection will create and destroy it's items by itself,
  1671. it should therefore never be necessary to create <var>TCollectionItem</var>
  1672. descendents manually.
  1673. </p>
  1674. </descr>
  1675. <seealso>
  1676. <link id="TCollection"/>
  1677. </seealso>
  1678. </element>
  1679. <element name="TCollectionItem.Changed"> <!-- Procedure -->
  1680. <short>Method to notify the managing collection that the name or index of
  1681. this item has changed.
  1682. </short>
  1683. <descr>
  1684. This method is called when the <link id="TCollectionItem.DisplayName"/> is
  1685. set or when the <link id="TCollectionItem.Index"/> is changed.
  1686. </descr>
  1687. <seealso>
  1688. <link id="TCollectionItem.Id"/>
  1689. <link id="TCollectionItem.Index"/>
  1690. <link id="TCollection.Update"/>
  1691. </seealso>
  1692. </element>
  1693. <element name="TCollectionItem.GetNamePath"> <!-- Function -->
  1694. <short>Returns the namepath of this collection item.</short>
  1695. <descr>
  1696. <var>GetNamePath</var> overrides the <link id="TPersistent.GetNamePath"/>
  1697. method to return the name of the managing collection and appends its <link
  1698. id="TCollectionItem.Index"/> property.
  1699. </descr>
  1700. <seealso>
  1701. <link id="TCollectionItem.Collection"/>
  1702. <link id="TPersistent.GetNamePath"/>
  1703. <link id="TCollectionItem.Index"/>
  1704. </seealso>
  1705. </element>
  1706. <element name="TCollectionItem.GetOwner"> <!-- Function -->
  1707. <short>Returns the managing collection.</short>
  1708. <descr>
  1709. <var>TCollectionItem</var> overrides <link id="TPersistent.GetOwner"/> to
  1710. and returns the <link id="TCollectionItem.Collection"/> that manages it.
  1711. </descr>
  1712. <seealso>
  1713. <link id="TPersistent.GetOwner"/>
  1714. <link id="TCollectionItem.Collection"/>
  1715. </seealso>
  1716. </element>
  1717. <element name="TCollectionItem.GetDisplayName"> <!-- Function -->
  1718. <short>Returns the <link id="TCollectionItem.DisplayName"/> of the
  1719. collectionitem</short>
  1720. <descr>
  1721. <p>
  1722. <var>GetDisplayName</var> returns the value of the
  1723. <link id="TCollectionItem.DisplayName"/> property.
  1724. By default, this is the classname of the actual <var>TCollectionItem</var> descendant.
  1725. </p>
  1726. <p>
  1727. Descendants of <var>TCollectionItem</var> can and should override this
  1728. method to return a more meaningful value.
  1729. </p>
  1730. </descr>
  1731. <seealso>
  1732. <link id="TCollectionItem.DisplayName"/>
  1733. </seealso>
  1734. </element>
  1735. <element name="TCollectionItem.SetIndex"> <!-- Procedure -->
  1736. <short>Write method for the <link id="TCollectionItem.Index"/> property.</short>
  1737. <descr>
  1738. <var>SetIndex</var> implements the write handler for the <link
  1739. id="TCollectionItem.Index"/> property. It requests the managing collection to
  1740. move this item to the desired index <var>value</var>.
  1741. </descr>
  1742. <seealso>
  1743. <link id="TCollectionItem.Index"/>
  1744. </seealso>
  1745. </element>
  1746. <element name="TCollectionItem.SetDisplayName"> <!-- Procedure -->
  1747. <short>Write method for the <link id="TCollectionItem.DisplayName"/> property</short>
  1748. <descr>
  1749. <p><var>SetDisplayName</var> is the write method for the <link
  1750. id="TCollectionItem.DisplayName"/> property. It does nothing but notifying
  1751. the managing collection that the displayname has changed. It does NOT store
  1752. the actual <var>Value</var>.
  1753. </p>
  1754. <p>
  1755. Descendants of <var>TCollectionItem</var> should override this method to
  1756. store the actual displayname if this is required.
  1757. </p>
  1758. </descr>
  1759. <seealso>
  1760. <link id="TCollectionItem.DisplayName"/>
  1761. </seealso>
  1762. </element>
  1763. <element name="TCollectionItem.Create"> <!-- Constructor -->
  1764. <short>Creates a new instance of this collection item.</short>
  1765. <descr>
  1766. <var>Create</var> instantiates a new item in a <link id="TCollection"/>. It
  1767. is called by the <link id="TCollection.Add"/> function and should under
  1768. normal circumstances never be called directly.
  1769. called
  1770. </descr>
  1771. <seealso>
  1772. <link id="TCollectionItem.Destroy"/>
  1773. </seealso>
  1774. </element>
  1775. <element name="TCollectionItem.Destroy"> <!-- Destructor -->
  1776. <short>Destroyes this collection item.</short>
  1777. <descr>
  1778. <p><var>Destroy</var> removes the item from the managing collection
  1779. and Destroys the item instance.
  1780. </p>
  1781. <p>
  1782. This is the only way to remove items from a collection;
  1783. </p>
  1784. </descr>
  1785. <seealso>
  1786. <link id="TCollectionItem.Create"/>
  1787. </seealso>
  1788. </element>
  1789. <element name="TCollectionItem.Collection"> <!-- Property -->
  1790. <short>Pointer to the collection managing this item.</short>
  1791. <descr>
  1792. <var>Collection</var> points to the collection managing this item. This
  1793. property can be set to point to a new collection. If this is done, the old
  1794. collection will be notified that the item should no longer be managed, and
  1795. the new collection is notified that it should manage this item as well.
  1796. </descr>
  1797. <seealso>
  1798. <link id="TCollection"/>
  1799. </seealso>
  1800. </element>
  1801. <element name="TCollectionItem.ID"> <!-- Property -->
  1802. <short>Initial index of this item.</short>
  1803. <descr>
  1804. <p><var>ID</var> is the initial value of <link id="TCollectionItem.Index"/>;
  1805. it doesn't change after the index changes. It can be used to uniquely
  1806. identify the item. The <var>ID</var> property doesn't change as items are
  1807. added and removed from the collection.
  1808. </p>
  1809. <p>
  1810. While the <link id="TCollectionItem.Index"/> property forms a continuous
  1811. series, <var>ID</var> does not. If items are removed from the collection,
  1812. their <var>ID</var> is not used again, leaving gaps. Only when the
  1813. collection is initialiiy created, the <var>ID</var> and <var>Index</var>
  1814. properties will be equal.
  1815. </p>
  1816. </descr>
  1817. <seealso>
  1818. <link id="TCollection.Items"/>
  1819. <link id="TCollectionItem.Index"/>
  1820. </seealso>
  1821. </element>
  1822. <element name="TCollectionItem.Index"> <!-- Property -->
  1823. <short>Index of the item in its managing collection <link id="TCollection.Items"/> property.</short>
  1824. <descr>
  1825. <p>
  1826. <var>Index</var> is the current index of the item in its managing
  1827. collection's <link id="TCollection.Items"/> property. This property may
  1828. change as items are added and removed from the collection.
  1829. </p>
  1830. <p>The index of an item is zero-based, i.e. the first item has index zero.
  1831. The last item has index <var>Count-1</var> where <var>Count</var> is the
  1832. number of items in the collection.
  1833. </p>
  1834. <p>
  1835. The <var>Index</var> property of the items in a collection form a continuous
  1836. series ranging from <var>0</var> to <var>Count-1</var>. The <link
  1837. id="TCollectionItem.ID"/> property does not form a continuous series, but
  1838. can also be used to identify an item.
  1839. </p>
  1840. </descr>
  1841. <seealso>
  1842. <link id="TCollectionItem.ID"/>
  1843. <link id="TCollection.Items"/>
  1844. </seealso>
  1845. </element>
  1846. <element name="TCollectionItem.DisplayName"> <!-- Property -->
  1847. <short>Name of the item, displayed in the object inspector.</short>
  1848. <descr>
  1849. <p>
  1850. <var>DisplayName</var> contains the name of this item as shown in the object
  1851. inspector. For <var>TCollectionItem</var> this returns always the class name
  1852. of the managing collection, followed by the index of the item.
  1853. </p>
  1854. <p><var>TCollectionItem</var> does not implement any functionality to store
  1855. the <var>DisplayName</var> property. The property can be set, but this will
  1856. have no effect other than that the managing collection is notified of a
  1857. change. The actual displayname will remain unchanged. To store the
  1858. <var>DisplayName</var> property,<var>TCollectionItem</var> descendants
  1859. should override the <link id="TCollectionItem.SetDisplayName"/> and
  1860. <link id="TCollectionItem.GetDisplayName"/> to add storage functionality.
  1861. </p>
  1862. </descr>
  1863. <seealso>
  1864. <link id="TCollectionItem.Index"/>
  1865. <link id="TCollectionItem.ID"/>
  1866. <link id="TCollectionItem.GetDisplayName"/>
  1867. <link id="TCollectionItem.SetDisplayName"/>
  1868. </seealso>
  1869. </element>
  1870. <element name="TCollectionItemClass"> <!-- "class of" type -->
  1871. <short>Class reference for <link id="TCollectionItem"/>.</short>
  1872. <descr>
  1873. <var>TCollectionItemClass</var> is used by the
  1874. <link id="TCollection.ItemClass"/> property of <link id="TCollection"/> to
  1875. identify the descendent class of <link id="TCollectionItem"/> which should
  1876. be created and managed.
  1877. </descr>
  1878. <seealso>
  1879. <link id="TCollectionItem"/>
  1880. <link id="TCollection.ItemClass"/>
  1881. </seealso>
  1882. </element>
  1883. <!--
  1884. *********************************************************************
  1885. TCollection
  1886. *********************************************************************
  1887. -->
  1888. <element name="TCollection"> <!-- Class -->
  1889. <short>Base class to manage collections of named objects.</short>
  1890. <descr>
  1891. <p><var>TCollection</var> implements functionality to manage a collection
  1892. of named objects. Each of these objects needs to be a descendent of the
  1893. <link id="TCollectionItem"/> class. Exactly which type of object is managed
  1894. can be seen from the <link id="TCollection.ItemClass"/> property.
  1895. </p>
  1896. <p>
  1897. Normally, no <var>TCollection</var> is created directly. Instead, a
  1898. descendents of <var>TCollection</var> and <link id="TCollectionItem"/>
  1899. are created as a pair.
  1900. </p>
  1901. </descr>
  1902. <seealso>
  1903. <link id="TCollectionItem"/>
  1904. </seealso>
  1905. </element>
  1906. <element name="TCollection.GetAttrCount"> <!-- Function -->
  1907. <short>Returns the count of attributes associated with each item.</short>
  1908. <descr>
  1909. <p>
  1910. <var>GetAttrCount</var> returns 0 in the <var>TCollection</var>
  1911. implementation. It can be used to determine the number of attributes
  1912. associated with each collection item. Descendent objects should override
  1913. this method to return the number of attributes.
  1914. </p>
  1915. <p>This method is provided for compatibility with Delphi only and is not
  1916. used in Free Pascal.
  1917. </p>
  1918. </descr>
  1919. <seealso>
  1920. <link id="TCollection.GetAttr"/>
  1921. <link id="TCollection.GetItemAttr"/>
  1922. </seealso>
  1923. </element>
  1924. <element name="TCollection.GetAttr"> <!-- Function -->
  1925. <short>Returns an attribute of the collection.</short>
  1926. <descr>
  1927. <p>This method is provided for compatibility with Delphi only and is not
  1928. used in Free Pascal.
  1929. </p>
  1930. </descr>
  1931. <seealso>
  1932. <link id="TCollection.GetAttrCount"/>
  1933. <link id="TCollection.GetItemAttr"/>
  1934. </seealso>
  1935. </element>
  1936. <element name="TCollection.GetItemAttr"> <!-- Function -->
  1937. <short>Returns the attributes of an item.</short>
  1938. <descr>
  1939. <p>This method is provided for compatibility with Delphi only and is not
  1940. used in Free Pascal.
  1941. </p>
  1942. </descr>
  1943. <seealso>
  1944. <link id="TCollection.GetAttr"/>
  1945. <link id="TCollection.GetAttrCount"/>
  1946. </seealso>
  1947. </element>
  1948. <element name="TCollection.GetNamePath"> <!-- Function -->
  1949. <short>Overrides <link id="TPersistent.GetNamePath"/> to return a proper
  1950. pathname.</short>
  1951. <descr>
  1952. <p>
  1953. <var>GetNamePath</var> returns the name path for this collection. If the
  1954. following conditions are satisfied:
  1955. </p>
  1956. <ol>
  1957. <li>There is an owner object.</li>
  1958. <li>The owner object returns a non-empty name path.</li>
  1959. <li>The <link id="TCollection.Propname"/> property is not empty</li>
  1960. </ol>
  1961. <p>
  1962. collection has an owner and the owning object has a name, then the function
  1963. returns the owner name, followed by the propname. If one of the conditions
  1964. is not satisfied, then the classname is returned.
  1965. </p>
  1966. </descr>
  1967. <seealso>
  1968. <link id="TCollection.GetOwner"/>
  1969. <link id="TCollection.Propname"/>
  1970. </seealso>
  1971. </element>
  1972. <element name="TCollection.Changed"> <!-- Procedure -->
  1973. <short>Procedure called if an item is added to or removed from the collection.</short>
  1974. <descr>
  1975. <var>Changed</var> is called if a change takes place in the collection
  1976. managed by the class. If the update count ghas reached zero, it
  1977. calls <link id="TCollection.Update"/> with a nil argument.
  1978. </descr>
  1979. <seealso>
  1980. <link id="TCollection.Update"/>
  1981. <link id="TCollection.Add"/>
  1982. <link id="TCollection.Clear"/>
  1983. </seealso>
  1984. </element>
  1985. <element name="TCollection.GetItem"> <!-- Function -->
  1986. <short>Read handler for the <link id="TCollection.Items"/> property.</short>
  1987. <descr>
  1988. <var>GetItem</var> is the read handler for the <link
  1989. id="TCollection.Items"/> property. It returns the <var>Index</var>-th
  1990. element from the list of objects.
  1991. </descr>
  1992. <errors>
  1993. If <var>Index</var> is outside the allowed range, then an <link
  1994. id="EListError"/> exception is raised.
  1995. </errors>
  1996. <seealso>
  1997. <link id="TCollection.Items"/>
  1998. <link id="TCollection.Count"/>
  1999. <link id="TCollection.SetItem"/>
  2000. </seealso>
  2001. </element>
  2002. <element name="TCollection.SetItem"> <!-- Procedure -->
  2003. <short>Write handler for the <link id="TCollection.Items"/> property.</short>
  2004. <descr>
  2005. <var>SetItem</var> implements the write handler for the <link
  2006. id="TCollection.Items"/> property. It assignes <var>Value</var> to the
  2007. <var>Index</var>-th element in the array. For this to work properly, the
  2008. <link id="TPersistent.Assign"/> method of the <var>Item</var> must work
  2009. correctly.
  2010. </descr>
  2011. <errors>
  2012. If <var>Index</var> is outside the allowed range, then an <link
  2013. id="EListError"/> exception is raised.
  2014. </errors>
  2015. <seealso>
  2016. <link id="TCollection.Items"/>
  2017. <link id="TCollection.Count"/>
  2018. <link id="TCollection.GetItem"/>
  2019. </seealso>
  2020. </element>
  2021. <element name="TCollection.SetItemName"> <!-- Procedure -->
  2022. <short>Virtual method to set the name of the specified item</short>
  2023. <descr>
  2024. </descr>
  2025. <seealso>
  2026. </seealso>
  2027. </element>
  2028. <element name="TCollection.SetPropName"> <!-- Procedure -->
  2029. <short>Write handler for the <link id="TCollection.PropName"/> property</short>
  2030. <descr>
  2031. <var>SetPropName</var> must be overridden by descendent objects to set the
  2032. <link id="TCollection.PropName"/> property to a suitable value. By default,
  2033. <var>SetPropName</var> sets the <var>PropName</var> property to empty.
  2034. </descr>
  2035. <seealso>
  2036. <link id="TCollection.PropName"/>
  2037. </seealso>
  2038. </element>
  2039. <element name="TCollection.Update"> <!-- Procedure -->
  2040. <short>Hander called when an item in the collection has changed.</short>
  2041. <descr>
  2042. <p><var>Update</var> is called in the following cases:
  2043. </p>
  2044. <ol>
  2045. <li>An item is added to or removed from the collection.</li>
  2046. <li>An item is moved in the list, i.e. its <link id="TCollectionItem.Index"/>
  2047. property changes.</li>
  2048. <li>An item's <link id="TCollectionItem.DisplayName"/> property
  2049. changes.</li>
  2050. </ol>
  2051. <p>
  2052. Descendent classes can override this method to perform additional actions
  2053. when the collection changes. The <var>Item</var> parameter indicates the
  2054. item that was changed. This can be <var>Nil</var>
  2055. </p>
  2056. </descr>
  2057. <seealso>
  2058. <link id="TCollection.Changed"/>
  2059. </seealso>
  2060. </element>
  2061. <element name="TCollection.PropName"> <!-- Property -->
  2062. <short>Name of the property that this collection represents.</short>
  2063. <descr>
  2064. <var>PropName</var> indicates the name of the property that this collection
  2065. is supposed to represent. By default, this is the empty string. Descendents
  2066. can override this property to return the name of the property that is
  2067. represented by this collection.
  2068. </descr>
  2069. <seealso>
  2070. <link id="TCollection.SetPropName"/>
  2071. <link id="TCollection.GetPropName"/>
  2072. </seealso>
  2073. </element>
  2074. <element name="TCollection.Create"> <!-- Constructor -->
  2075. <short>Creates a new collection.</short>
  2076. <descr>
  2077. <var>Create</var> instantiates a new instance of the <var>TCollection</var>
  2078. class which will manage objects of class <var>AItemClass</var>.
  2079. It creates the list used to hold all objects, and stores the
  2080. <var>AItemClass</var> for the adding of new objects to the collection.
  2081. </descr>
  2082. <seealso>
  2083. <link id="TCollection.ItemClass"/>
  2084. <link id="TCollection.Destroy"/>
  2085. </seealso>
  2086. </element>
  2087. <element name="TCollection.Destroy"> <!-- Destructor -->
  2088. <short>Destroys the collection and frees all the objects it manages.</short>
  2089. <descr>
  2090. <p>
  2091. <var>Destroy</var> first clears the collection, and then frees all memory
  2092. allocated to this instance.
  2093. </p>
  2094. <p>
  2095. Don't call <var>Destroy</var> directly, call <var>Free</var> instead.
  2096. </p>
  2097. </descr>
  2098. <seealso>
  2099. <link id="TCollection.Create"/>
  2100. </seealso>
  2101. </element>
  2102. <element name="TCollection.Add"> <!-- Function -->
  2103. <short>Creates and adds a new item to the collection.</short>
  2104. <descr>
  2105. <var>Add</var> instantiates a new item of class <link
  2106. id="TCollection.ItemClass"/> and adds it to the list. The newly created
  2107. object is returned.
  2108. </descr>
  2109. <seealso>
  2110. <link id="TCollection.ItemClass"/>
  2111. <link id="TCollection.Clear"/>
  2112. </seealso>
  2113. </element>
  2114. <element name="TCollection.Assign"> <!-- Procedure -->
  2115. <short>Assigns one collection to another.</short>
  2116. <descr>
  2117. <p>
  2118. <var>Assign</var> assigns the contents of one collection to another.
  2119. It does this by clearing the items list, and adding as much elements as
  2120. there are in the <var>Source</var> collection; it assigns to each created
  2121. element the contents of it's counterpart in the <var>Source</var> element.
  2122. </p>
  2123. <p>
  2124. Two collections cannot be assigned to each other if instances of the
  2125. <var>ItemClass</var> classes cannot be assigned to each other.
  2126. </p>
  2127. </descr>
  2128. <errors>
  2129. If the objects in the collections cannot be assigned to one another, then
  2130. an <var>EConvertError</var> is raised.
  2131. </errors>
  2132. <seealso>
  2133. <link id="TPersistent.Assign"/>
  2134. <link id="TCollectionItem"/>
  2135. </seealso>
  2136. </element>
  2137. <element name="TCollection.BeginUpdate"> <!-- Procedure -->
  2138. <short>Start an update batch.</short>
  2139. <descr>
  2140. <p>
  2141. <var>BeginUpdate</var> is called at the beginning of a batch update. It
  2142. raises the update count with 1.
  2143. </p>
  2144. <p>
  2145. Call <var>BeginUpdate</var> at the beginning of a series of operations that
  2146. will change the state of the collection. This will avoid the call to
  2147. <link id="TCollection.Update"/> for each operation.
  2148. At the end of the operations, a corresponding call to <var>EndUpdate</var>
  2149. must be made. It is best to do this in the context of a
  2150. <var>Try ... finally</var> block:
  2151. </p>
  2152. <code>
  2153. With MyCollection Do
  2154. try
  2155. BeginUpdate;
  2156. // Some Lengthy operations
  2157. finally
  2158. EndUpdate;
  2159. end;
  2160. </code>
  2161. <p>
  2162. This insures that the number of calls to <var>BeginUpdate</var> always
  2163. matches the number of calls to <link id="TCollection.EndUpdate"/>, even in
  2164. case of an exception.
  2165. </p>
  2166. </descr>
  2167. <seealso>
  2168. <link id="TCollection.EndUpdate"/>
  2169. <link id="TCollection.Changed"/>
  2170. <link id="TCollection.Update"/>
  2171. </seealso>
  2172. </element>
  2173. <element name="TCollection.Clear"> <!-- Procedure -->
  2174. <short>Removes all items from the collection.</short>
  2175. <descr>
  2176. <var>Clear</var> will clear the collection, i.e. each item in the collection
  2177. is destroyed and removed from memory.
  2178. After a call to <var>Clear</var>, <var>Count</var> is zero.
  2179. </descr>
  2180. <seealso>
  2181. <link id="TCollection.Add"/>
  2182. <link id="TCollectionItem.Destroy"/>
  2183. <link id="TCollection.Destroy"/>
  2184. </seealso>
  2185. </element>
  2186. <element name="TCollection.EndUpdate"> <!-- Procedure -->
  2187. <short>Ends an update batch.</short>
  2188. <descr>
  2189. <var>EndUpdate</var> signals the end of a series of operations that change
  2190. the state of the collection, possibly triggering an update event.
  2191. It does this by decreasing the update count with 1 and calling <link
  2192. id="TCollection.Changed"/> it should always be used in conjunction with
  2193. <link id="TCollection.BeginUpdate"/>, preferably in the <var>Finally</var>
  2194. section of a <var>Try ... Finally</var> block.
  2195. </descr>
  2196. <seealso>
  2197. <link id="TCollection.BeginUpdate"/>
  2198. <link id="TCollection.Changed"/>
  2199. <link id="TCollection.Update"/>
  2200. </seealso>
  2201. </element>
  2202. <element name="TCollection.FindItemID"> <!-- Function -->
  2203. <short>Searches for an Item in the collection, based on its
  2204. <link id="TCollectionItem.ID"/> property.</short>
  2205. <descr>
  2206. <p>
  2207. <var>FindItemID</var> searches through the collection for the item that has
  2208. a value of <var>ID</var> for its <link id="TCollectionItem.ID"/> property,
  2209. and returns the found item. If no such item is found in the collection,
  2210. <var>Nil</var> is returned.
  2211. </p>
  2212. <p>The routine performs a linear search, so this can be slow on very large
  2213. collections.
  2214. </p>
  2215. </descr>
  2216. <seealso>
  2217. <link id="TCollection.Items"/>
  2218. <link id="TCollectionItem.ID"/>
  2219. </seealso>
  2220. </element>
  2221. <element name="TCollection.Count"> <!-- Property -->
  2222. <short>Number of items in the collection.</short>
  2223. <descr>
  2224. <p>
  2225. <var>Count</var> contains the number of items in the collection.
  2226. </p>
  2227. <remark>
  2228. The items in the collection are identified by their <link
  2229. id="TCollectionItem.Index"/> property, which is a zero-based index, meaning
  2230. that it can take values between <var>0</var> and <var>Count</var>.
  2231. </remark>
  2232. </descr>
  2233. <seealso>
  2234. <link id="TCollectionItem.Index"/>
  2235. <link id="TCollection.Items"/>
  2236. </seealso>
  2237. </element>
  2238. <element name="TCollection.ItemClass"> <!-- Property -->
  2239. <short>Class pointer for each item in the collection.</short>
  2240. <descr>
  2241. <var>ItemClass</var> is the class pointer with which each new item in the
  2242. collection is created. It is the value that was passed to the collection's
  2243. constructor when it was created, and does not change during the lifetime of
  2244. the collection.
  2245. </descr>
  2246. <seealso>
  2247. <link id="TCollectionItem"/>
  2248. <link id="TCollection.Items"/>
  2249. </seealso>
  2250. </element>
  2251. <element name="TCollection.Items"> <!-- Property -->
  2252. <short>Indexed array of items in the collection.</short>
  2253. <descr>
  2254. <p>
  2255. <var>Items</var> provides indexed access to the items in the collection.
  2256. Since the array is zero-based, <var>Index</var> should be an integer
  2257. between <var>0</var> and <var>Count-1</var>.
  2258. </p>
  2259. <p>It is possible to set or retrieve an element in the array. When setting
  2260. an element of the array, the object that is assigned should be compatible
  2261. with the class of the objects in the collection, as given by the
  2262. <link id="TCollection.ItemClass"/> property.
  2263. </p>
  2264. <p>Adding an element to the array can be done with the <link
  2265. id="TCollection.Add"/> method. The array can be cleared with the <link
  2266. id="TCollection.Clear"/> method. Removing an element of the array should
  2267. be done by freeing that element.
  2268. </p>
  2269. </descr>
  2270. <seealso>
  2271. <link id="TCollection.Count"/>
  2272. <link id="TCollection.ItemClass"/>
  2273. <link id="TCollection.Clear"/>
  2274. <link id="TCollection.Add"/>
  2275. </seealso>
  2276. </element>
  2277. <!--
  2278. *********************************************************************
  2279. IStringsAdapter
  2280. *********************************************************************
  2281. -->
  2282. <element name="IStringsAdapter"> <!-- Class -->
  2283. <short>IStringsAdapter Interface declaration.</short>
  2284. <descr>Is not yet supported in Free Pascal.
  2285. </descr>
  2286. <seealso>
  2287. <link id="TStrings"/>
  2288. </seealso>
  2289. </element>
  2290. <!--
  2291. *********************************************************************
  2292. TStrings
  2293. *********************************************************************
  2294. -->
  2295. <element name="TStrings"> <!-- Class -->
  2296. <short>Class to manage arrays or collections of strings</short>
  2297. <descr>
  2298. <p><var>TStrings</var> implements an abstract class to manage an array of
  2299. strings. It introduces methods to set and retrieve strings in the array,
  2300. searching for a particular string, concatenating the strings and so on.
  2301. It also allows an arbitrary object to be associated with each string.
  2302. </p>
  2303. <p>
  2304. It also introduces methods to manage a series of <var>name=value</var>
  2305. settings, as found in many configuration files.
  2306. </p>
  2307. <p>An instance of <var>TStrings</var> is never created directly, instead a
  2308. descendent class such as <link id="TStringList"/> should be created. This is
  2309. because <var>TStrings</var> is an abstract class which does not implement
  2310. all methods; <var>TStrings</var> also doesn't store any strings, this is the
  2311. functionality introduced in descendents such as <link id="TStringList"/>.
  2312. </p>
  2313. </descr>
  2314. <seealso>
  2315. <link id="TStringList"/>
  2316. </seealso>
  2317. </element>
  2318. <element name="TStrings.DefineProperties"> <!-- Procedure -->
  2319. <short>Method to stream the contents of the string collection</short>
  2320. <descr>
  2321. <var>DefineProperties</var> allows the contents of the string collection
  2322. to be streamed. As such, it overrides <link id="TPersistent.DefineProperties"/>
  2323. </descr>
  2324. <seealso>
  2325. <link id="TPersistent.DefineProperties"/>
  2326. </seealso>
  2327. </element>
  2328. <element name="TStrings.Error"> <!-- Procedure -->
  2329. <short>Raises an <link id="EStringListError"/> exception.</short>
  2330. <descr>
  2331. <p>
  2332. <var>Error</var> raises an <link id="EStringListError"/> exception. It passes
  2333. <var>Msg</var> as a format with <var>Data</var> as the only argument.
  2334. </p>
  2335. <p> This method can be used by descendent objects to raise an error.</p>
  2336. </descr>
  2337. <seealso>
  2338. <link id="EStringListError"/>
  2339. </seealso>
  2340. </element>
  2341. <element name="TStrings.Get"> <!-- Function -->
  2342. <short>Abstract read handler for the <link id="TStrings.Strings"/> property.</short>
  2343. <descr>
  2344. <p>
  2345. <var>Get</var> is the abstract read handler for the <link id="TStrings.Strings"/>
  2346. property. This is an abstract method, hence it is not implemented in
  2347. <var>TStrings</var>.
  2348. </p>
  2349. <p>
  2350. Descendent classes, such as <link id="TStringList"/> must override this
  2351. method and implement a routine that retrieves the <var>Index</var>-th string
  2352. in the list. <var>Index</var> should have a value between <var>0</var> and
  2353. <var>Count-1</var>, in all other cases an error should be raised using
  2354. <link id="TStrings.Error"/>.
  2355. </p>
  2356. </descr>
  2357. <seealso>
  2358. <link id="TStrings.Strings"/>
  2359. <link id="TStrings.Put"/>
  2360. <link id="TStrings.GetObject"/>
  2361. </seealso>
  2362. </element>
  2363. <element name="TStrings.GetCapacity"> <!-- Function -->
  2364. <short>Abstract Read handler for the <link id="TStrings.Capacity"/> property.</short>
  2365. <descr>
  2366. <p>
  2367. <var>GetCapacity</var> is the read handler for the <link
  2368. id="TStrings.Capacity"/> property. The implementation in <var>TStrings</var>
  2369. will return 0.
  2370. </p>
  2371. <p>Descendent classes can override this method. It should return the
  2372. current number of strings that can be held by the stringlist before
  2373. it attempts to expand it's storage space.
  2374. </p>
  2375. </descr>
  2376. <seealso>
  2377. <link id="TStrings.Capacity"/>
  2378. <link id="TStrings.SetCapacity"/>
  2379. </seealso>
  2380. </element>
  2381. <element name="TStrings.GetCount"> <!-- Function -->
  2382. <short>Abstract read handler for the <link id="TStrings.Count"/> property.</short>
  2383. <descr>
  2384. <p>
  2385. <var>GetCount</var> is the abstract read handler for the <link
  2386. id="TStrings.Count"/> property. This is an abstract method, hence it is not implemented in
  2387. <var>TStrings</var>.
  2388. </p>
  2389. <p>
  2390. Descendent classes must override this method. It should return the
  2391. current number of strings in the list. (empty strings included).
  2392. </p>
  2393. </descr>
  2394. <seealso>
  2395. <link id="TStrings.Count"/>
  2396. </seealso>
  2397. </element>
  2398. <element name="TStrings.GetObject"> <!-- Function -->
  2399. <short>Abstract read handler for the <link id="TStrings.Objects"/> property.</short>
  2400. <descr>
  2401. <p>
  2402. <var>GetObject</var> is the read handler for the <link
  2403. id="TStrings.Objects"/> property. The <var>TStrings</var> implementation of
  2404. this method ignores the <var>Index</var> argument and simply
  2405. returns <var>Nil</var>.
  2406. </p>
  2407. <p>
  2408. Descendent classes that should support object storage should override this
  2409. method and return the object associated to the <var>Index</var>-th string
  2410. in the list. <var>Index</var> should have a value between <var>0</var> and
  2411. <var>Count-1</var>. If <var>Index</var> is outside the allowed range, an
  2412. error should be raised using <link id="TStrings.Error"/>.
  2413. </p>
  2414. </descr>
  2415. <seealso>
  2416. <link id="TStrings.Objects"/>
  2417. <link id="TStrings.PutObject"/>
  2418. <link id="TStrings.Get"/>
  2419. </seealso>
  2420. </element>
  2421. <element name="TStrings.GetTextStr"> <!-- Function -->
  2422. <short>Read handler for the <link id="TStrings.Text"/> property.</short>
  2423. <descr>
  2424. <p><var>GetTextStr</var> is the read handler for the <link id="TStrings.Text"/>
  2425. property. It simply concatenates all strings in the list with a linefeed between
  2426. them, and returns the resulting string.
  2427. </p>
  2428. <p>
  2429. Descendent classes may override this method to implement an efficienter
  2430. algorithm which is more suitable to their storage method.
  2431. </p>
  2432. </descr>
  2433. <seealso>
  2434. <link id="TStrings.Text"/>
  2435. <link id="TStrings.SetTextStr"/>
  2436. </seealso>
  2437. </element>
  2438. <element name="TStrings.Put"> <!-- Procedure -->
  2439. <short>Write handler for the <link id="TStrings.Strings"/> property.</short>
  2440. <descr>
  2441. <p>
  2442. <var>Put</var> is the write handler for the <link id="TStrings.Strings"/>
  2443. property. It does this by saving the object associated to the
  2444. <var>Index</var>-th string, deleting the <var>Index</var>-th string, and
  2445. inserting <var>S</var> and the saved object at position <var>Index</var>
  2446. with <link id="TStrings.InsertObject"/>
  2447. </p>
  2448. <p>
  2449. Descendent classes may wish to override <var>Put</var> to implement a more
  2450. efficient method.
  2451. </p>
  2452. </descr>
  2453. <seealso>
  2454. <link id="TStrings.Strings"/>
  2455. <link id="TStrings.Get"/>
  2456. <link id="TStrings.PutObject"/>
  2457. </seealso>
  2458. </element>
  2459. <element name="TStrings.PutObject"> <!-- Procedure -->
  2460. <short>Write handler for the <link id="TStrings.Objects"/> property.</short>
  2461. <descr>
  2462. <p>
  2463. <var>PutObject</var> is the write handler for the <link
  2464. id="TStrings.Objects"/> property. The <var>TStrings</var> implementation of
  2465. <var>PutObject</var> does nothing.
  2466. </p>
  2467. <p>
  2468. Descendent objects that should support Object storage must override this
  2469. method to store the <var>AObject</var> so that it is associated with the
  2470. <var>Index</var>-th string in the list. <var>Index</var> should have a value
  2471. between <var>0</var> and <var>Count-1</var>. If the value of
  2472. <var>Index</var> is out of range, an error should be raised using <link
  2473. id="TStrings.Error"/>.
  2474. </p>
  2475. </descr>
  2476. <seealso>
  2477. <link id="TStrings.Objects"/>
  2478. <link id="TStrings.GetObject"/>
  2479. <link id="TStrings.Put"/>
  2480. </seealso>
  2481. </element>
  2482. <element name="TStrings.SetCapacity"> <!-- Procedure -->
  2483. <short>Write handler for the <link id="TStrings.Capacity"/> property.</short>
  2484. <descr>
  2485. <p>
  2486. <var>SetCapacity</var> is the write handler for the <link
  2487. id="TStrings.Capacity"/> property. The <var>TStrings</var> implementation
  2488. of <var>SetCapacity</var> does nothing.
  2489. </p>
  2490. <p>
  2491. Descendent classes can override this method to set the current capacity of
  2492. the stringlist to <var>NewCapacity</var>. The capacity is the number of strings the list can hold
  2493. before it tries to expand its storage space. <var>NewCapacity</var> should
  2494. be no less than <var>Count</var>.
  2495. </p>
  2496. </descr>
  2497. <seealso>
  2498. <link id="TStrings.Capacity"/>
  2499. <link id="TStrings.GetCapacity"/>
  2500. </seealso>
  2501. </element>
  2502. <element name="TStrings.SetTextStr"> <!-- Procedure -->
  2503. <short>Write handler for the <link id="TStrings.Text"/> property.</short>
  2504. <descr>
  2505. <p>
  2506. <var>SetTextStr</var> is the write method for the <link id="TStrings.Text"/>
  2507. property. It does nothing other than calling <link id="TStrings.SetText"/>.
  2508. </p>
  2509. <p>
  2510. Descendent classes may override this method to implement a more efficient
  2511. algoritm that fits their storage method better.
  2512. </p>
  2513. </descr>
  2514. <seealso>
  2515. <link id="TStrings.Text"/>
  2516. <link id="TStrings.GetTextStr"/>
  2517. </seealso>
  2518. </element>
  2519. <element name="TStrings.SetUpdateState"> <!-- Procedure -->
  2520. <short>Sets the update state. </short>
  2521. <descr>
  2522. <p>
  2523. <var>SetUpdateState</var> sets the update state to <var>Updating</var>. The
  2524. <var>TStrings</var> implementation of <var>SetUpdateState</var> does
  2525. nothing.
  2526. </p>
  2527. <p>
  2528. Descendent objects may override this method to implement optimizations. If
  2529. <var>Updating</var> is <var>True</var> then the list of strings is about to
  2530. be updated (possibly many times). If it is <var>False</var> no more updates
  2531. will take place till the next <var>SetUpdateState</var> call.
  2532. </p>
  2533. </descr>
  2534. <seealso>
  2535. <link id="TStrings.BeginUpdate"/>
  2536. <link id="TStrings.EndUpdate"/>
  2537. </seealso>
  2538. </element>
  2539. <element name="TStrings.Destroy"> <!-- Destructor -->
  2540. <short>Frees all strings and objects, and removes the list from memory.</short>
  2541. <descr>
  2542. <var>Destroy</var> is the destructor of <var>TStrings</var> it does nothing
  2543. except calling the inherited destructor.
  2544. </descr>
  2545. <seealso>
  2546. </seealso>
  2547. </element>
  2548. <element name="TStrings.Add"> <!-- Function -->
  2549. <short>Add a string to the list</short>
  2550. <descr>
  2551. <var>Add</var> adds <var>S</var> at the end of the list and returns the
  2552. index of <var>S</var> in the list (which should equal <link id="Tstrings.Count"/>
  2553. </descr>
  2554. <seealso>
  2555. <link id="TStrings.Items"/>
  2556. <link id="TStrings.AddObject"/>"
  2557. <link id="TStrings.Insert"/>
  2558. <link id="TStrings.Delete"/>
  2559. <link id="TStrings.Strings"/>
  2560. <link id="TStrings.Count"/>
  2561. </seealso>
  2562. </element>
  2563. <element name="TStrings.AddObject"> <!-- Function -->
  2564. <short>Add a string and associated object to the list.</short>
  2565. <descr>
  2566. <p>
  2567. <var>AddObject</var> adds <var>S</var> to the list of strings, and
  2568. associates <var>AObject</var> with it. It returns the index of <var>S</var>.
  2569. </p>
  2570. <remark>
  2571. An object added to the list is not automatically destroyed by the list of
  2572. the list is destroyed or the string it is associated with is deleted. It is
  2573. the responsibility of the application to destroy any objects associated with
  2574. strings.
  2575. </remark>
  2576. </descr>
  2577. <seealso>
  2578. <link id="TStrings.Add"/>
  2579. <link id="Tstrings.Items"/>
  2580. <link id="TStrings.Objects"/>
  2581. <link id="Tstrings.InsertObject"/>
  2582. </seealso>
  2583. </element>
  2584. <element name="TStrings.Append"> <!-- Procedure -->
  2585. <short>Add a string to the list.</short>
  2586. <descr>
  2587. <var>Append</var> does the same as <link id="TStrings.Add"/>, only it does
  2588. not return the index of the inserted string.
  2589. </descr>
  2590. <seealso>
  2591. <link id="TStrings.Add"/>
  2592. </seealso>
  2593. </element>
  2594. <element name="TStrings.AddStrings"> <!-- Procedure -->
  2595. <short>Add contents of another stringlist to this list.</short>
  2596. <descr>
  2597. <var>AddStrings</var> adds the contents of <var>TheStrings</var> to the
  2598. stringlist. Any associated objects are added as well.
  2599. </descr>
  2600. <seealso>
  2601. <link id="TStrings.Add"/>
  2602. <link id="TStrings.Assign"/>
  2603. </seealso>
  2604. </element>
  2605. <element name="TStrings.Assign"> <!-- Procedure -->
  2606. <short>Assign the contents of another stringlist to this one.</short>
  2607. <descr>
  2608. <var>Assign</var> replaces the contents of the stringlist with the contents
  2609. of <var>Source</var> if <var>Source</var> is also of type
  2610. <var>TStrings</var>. Any associated objects are copied as well.
  2611. </descr>
  2612. <seealso>
  2613. <link id="TStrings.Add"/>
  2614. <link id="TStrings.AddStrings"/>
  2615. <link id="TPersistent.Assign"/>
  2616. </seealso>
  2617. </element>
  2618. <element name="TStrings.BeginUpdate"> <!-- Procedure -->
  2619. <short>Mark the beginning of an update batch.</short>
  2620. <descr>
  2621. <p>
  2622. <var>BeginUpdate</var> increases the update count by one. It is advisable to
  2623. call <var>BeginUpdate</var> before lengthy operations on the stringlist. At
  2624. the end of these operation, <link id="TStrings.EndUpdate"/> should be
  2625. called to mark the end of the operation. Descendent classes may use this
  2626. information to perform optmizations. e.g. updating the screen only once
  2627. after many strings were added to the list.
  2628. </p>
  2629. <p>
  2630. All <var>TStrings</var> methods that modify the string list call
  2631. <var>BeginUpdate</var> before the actual operation, and call
  2632. <var>endUpdate</var> when the operation is finished. Descendent classes
  2633. should also call these methods when modifying the string list.
  2634. </p>
  2635. <remark>
  2636. <p>
  2637. Always put the corresponding call to <link id="TStrings.EndUpdate"/> in the
  2638. context of a <var>Finally</var> block, to ensure that the update count is
  2639. always descreased at the end of the operation, even if an exception
  2640. occurred:
  2641. </p>
  2642. <code>
  2643. With MyStrings do
  2644. try
  2645. BeginUpdate;
  2646. // Some lengthy operation.
  2647. Finally
  2648. EndUpdate
  2649. end;
  2650. </code>
  2651. </remark>
  2652. </descr>
  2653. <seealso>
  2654. <link id="TStrings.EndUpdate"/>
  2655. </seealso>
  2656. </element>
  2657. <element name="TStrings.Clear"> <!-- Procedure -->
  2658. <short>Removes all strings and associated objects from the list.</short>
  2659. <descr>
  2660. <p>
  2661. <var>Clear</var> will remove all strings and their associated objects from
  2662. the list. After a call to clear, <link id="TStrings.Count"/> is zero.
  2663. </p>
  2664. <p>
  2665. Since it is an abstract method, <var>TStrings</var> itself does not implement
  2666. <var>Clear</var>. Descendent classes such as <link
  2667. id="TStringList"/> implement this method.
  2668. </p>
  2669. </descr>
  2670. <seealso>
  2671. <link id="TStrings.Items"/>
  2672. <link id="TStrings.Delete"/>
  2673. <link id="TStrings.Count"/>"
  2674. </seealso>
  2675. </element>
  2676. <element name="TStrings.Delete"> <!-- Procedure -->
  2677. <short>Delete a string from the list.</short>
  2678. <descr>
  2679. <p>
  2680. <var>Delete</var> deletes the string at position <var>Index</var> from the
  2681. list. The associated object is also removed from the list, but not
  2682. destroyed. <var>Index</var> is zero-based, and should be in the range
  2683. <var>0</var> to <var>Count-1</var>.
  2684. </p>
  2685. <p>
  2686. Since it is an abstract method, <var>TStrings</var> itself does not implement
  2687. <var>Delete</var>. Descendent classes such as <link
  2688. id="TStringList"/> implement this method.
  2689. </p>
  2690. </descr>
  2691. <errors>
  2692. If <var>Index</var> is not in the allowed range, an <link
  2693. id="EStringListError"/> is raised.
  2694. </errors>
  2695. <seealso>
  2696. <link id="TStrings.Insert"/>
  2697. <link id="TStrings.Items"/>
  2698. <link id="TStrings.Clear"/>
  2699. </seealso>
  2700. </element>
  2701. <element name="TStrings.EndUpdate"> <!-- Procedure -->
  2702. <short>Mark the end of an update batch.</short>
  2703. <descr>
  2704. <p>
  2705. <var>EndUpdate</var> should be called at the end of a lengthy operation on
  2706. the stringlist, but only if there was a call to <var>BeginUpdate</var> before
  2707. the operation was started. It is best to put the call to
  2708. <var>EndUpdate</var> in the context of a <var>Finally</var> block, so it
  2709. will be called even if an exception occurs.
  2710. </p>
  2711. <p>
  2712. For more information, see <link id="TStrings.BeginUpdate"/>.
  2713. </p>
  2714. </descr>
  2715. <seealso>
  2716. <link id="TStrings.BeginUpdate"/>
  2717. </seealso>
  2718. </element>
  2719. <element name="TStrings.Equals"> <!-- Function -->
  2720. <short>Compares the contents of two stringlists.</short>
  2721. <descr>
  2722. <p>
  2723. <var>Equals</var> compares the contents of the stringlist with the contents
  2724. of <var>TheStrings</var>. If the contents match, i.e. the stringlist contain
  2725. an equal amount of strings, and all strings match, then <var>True</var> is
  2726. returned. If the number of strings in the lists is is unequal, or they
  2727. contain one or more different strings, <var>False</var> is returned.
  2728. </p>
  2729. <remark>
  2730. <ol>
  2731. <li>The strings are compared case-insensitively.</li>
  2732. <li>The associated objects are not compared</li>
  2733. </ol>
  2734. </remark>
  2735. </descr>
  2736. <seealso>
  2737. <link id="Tstrings.Items"/>
  2738. <link id="TStrings.Count"/>
  2739. <link id="TStrings.Assign"/>
  2740. </seealso>
  2741. </element>
  2742. <element name="TStrings.Exchange"> <!-- Procedure -->
  2743. <short>Exchanges two strings in the list.</short>
  2744. <descr>
  2745. <p>
  2746. <var>Exchange</var> exchanges the strings at positions <var>Index1</var>
  2747. and <var>Index2</var>. The associated objects are also exchanged.
  2748. </p>
  2749. <p>
  2750. Both indexes must be in the range of valid indexes, i.e. must have a
  2751. value between <var>0</var> and <var>Count-1</var>.
  2752. </p>
  2753. </descr>
  2754. <errors>
  2755. If either <var>Index1</var> or <var>Index2</var> is not in the range of valid
  2756. indexes, an <link id="EStringListError"/> exception is raised.
  2757. </errors>
  2758. <seealso>
  2759. <link id="TStrings.Move"/>
  2760. <link id="TStrings.Strings"/>
  2761. <link id="TStrings.Count"/>
  2762. </seealso>
  2763. </element>
  2764. <element name="TStrings.GetText"> <!-- Function -->
  2765. <short>Returns the contents as a PChar</short>
  2766. <descr>
  2767. <p>
  2768. <var>GetText</var> allocates a memory buffer and compies the contents of the
  2769. stringlist to this buffer as a series of strings, separated by an
  2770. end-of-line marker. The buffer is zero terminated.
  2771. </p>
  2772. <remark>
  2773. The caller is responsible for freeing the returned memory buffer.
  2774. </remark>
  2775. </descr>
  2776. <seealso>
  2777. </seealso>
  2778. </element>
  2779. <element name="TStrings.IndexOf"> <!-- Function -->
  2780. <short>Find a string in the list and return its position.</short>
  2781. <descr>
  2782. <p>
  2783. <var>IndexOf</var> searches the list for <var>S</var>. The search is
  2784. case-insensitive. If a matching entry is found, its position is returned.
  2785. if no matching string is found, <var>-1</var> is returned.
  2786. </p>
  2787. <remark>
  2788. <ol>
  2789. <li>Only the first occurrence of the string is returned.</li>
  2790. <li>The returned position is zero-based, i.e. 0 indicates the first string
  2791. in the list.</li>
  2792. </ol>
  2793. </remark>
  2794. </descr>
  2795. <seealso>
  2796. <link id="TStrings.IndexOfObject"/>
  2797. <link id="TStrings.IndexOfName"/>
  2798. <link id="TStrings.Strings"/>
  2799. </seealso>
  2800. </element>
  2801. <element name="TStrings.IndexOfName"> <!-- Function -->
  2802. <short>Finds the index of a name in the name-value pairs.</short>
  2803. <descr>
  2804. <p>
  2805. <var>IndexOfName</var> searches in the list of strings for a name-value pair
  2806. with name part <var>Name</var>. If such a pair is found, it returns the
  2807. index of the pair in the stringlist. If no such pair is found, the function
  2808. returns <var>-1</var>. The search is done case-insensitive.
  2809. </p>
  2810. <remark>
  2811. <ol>
  2812. <li>Only the first occurrence of a matching name-value pair is returned.</li>
  2813. <li>The returned position is zero-based, i.e. 0 indicates the first string
  2814. in the list.</li>
  2815. </ol>
  2816. </remark>
  2817. </descr>
  2818. <seealso>
  2819. <link id="TStrings.IndexOf"/>
  2820. <link id="TStrings.IndexOfObject"/>
  2821. <link id="TStrings.Strings"/>
  2822. </seealso>
  2823. </element>
  2824. <element name="TStrings.IndexOfObject"> <!-- Function -->
  2825. <short>Finds an object in the list and returns its index.</short>
  2826. <descr>
  2827. <p>
  2828. <var>IndexOfObject</var> searchs through the list of strings till it find a
  2829. string associated with <var>AObject</var>, and returns the index of this
  2830. string. If no such string is found, <var>-1</var> is returned.
  2831. </p>
  2832. <remark>
  2833. <ol>
  2834. <li>Only the first occurrence of a string with associated object
  2835. <var>AObject</var> is returned; if more strings in the list can be
  2836. associated with <var>AObject</var>, they will not be found by this routine.</li>
  2837. <li>The returned position is zero-based, i.e. 0 indicates the first string
  2838. in the list.</li>
  2839. </ol>
  2840. </remark>
  2841. </descr>
  2842. <seealso>
  2843. </seealso>
  2844. </element>
  2845. <element name="TStrings.Insert"> <!-- Procedure -->
  2846. <short>Insert a string in the list.</short>
  2847. <descr>
  2848. <p>
  2849. <var>Insert</var> inserts the string <var>S</var> at position
  2850. <var>Index</var> in the list. <var>Index</var> is a zero-based position,
  2851. and can have values from <var>0</var> to <var>Count</var>. If
  2852. <var>Index</var> equals <var>Count</var> then the string is appended to the
  2853. list.
  2854. </p>
  2855. <remark>
  2856. <ol>
  2857. <li>All methods that add strings to the list use <var>Insert</var> to add
  2858. a string to the list.</li>
  2859. <li>If the string has an associated object, use <link
  2860. id="TStrings.InsertObject"/> instead.</li>
  2861. </ol>
  2862. </remark>
  2863. </descr>
  2864. <errors>
  2865. If <var>Index</var> is less than zero or larger than <var>Count</var> then
  2866. an <link id="EStringListError"/> exception is raised.
  2867. </errors>
  2868. <seealso>
  2869. <link id="TStrings.Add"/>
  2870. <link id="TStrings.InsertObject"/>
  2871. <link id="TStrings.Append"/>
  2872. <link id="TStrings.Delete"/>
  2873. </seealso>
  2874. </element>
  2875. <element name="TStrings.InsertObject"> <!-- Procedure -->
  2876. <short>Insert a string and associated object in the list.</short>
  2877. <descr>
  2878. <p>
  2879. <var>InsertObject</var> inserts the string <var>S</var> and its associated
  2880. object<var>AObject</var> at position <var>Index</var> in the list.
  2881. <var>Index</var> is a zero-based position, and can have values from
  2882. <var>0</var> to <var>Count</var>. If <var>Index</var> equals
  2883. <var>Count</var> then the string is appended to the list.
  2884. </p>
  2885. </descr>
  2886. <errors>
  2887. If <var>Index</var> is less than zero or larger than <var>Count</var> then
  2888. an <link id="EStringListError"/> exception is raised.
  2889. </errors>
  2890. <seealso>
  2891. <link id="TStrings.Insert"/>
  2892. <link id="TStrings.AddObject"/>
  2893. <link id="TStrings.Append"/>
  2894. <link id="TStrings.Delete"/>
  2895. </seealso>
  2896. </element>
  2897. <element name="TStrings.LoadFromFile"> <!-- Procedure -->
  2898. <short>Load the contents of a file as a series of strings.</short>
  2899. <descr>
  2900. <p>
  2901. <var>LoadFromFile</var> loads the contents of a file into the stringlist.
  2902. Each line in the file (as marked by the end-of-line marker of the
  2903. particular OS the application runs on) becomes one string in the stringlist.
  2904. This action replaces
  2905. the contents of the stringlist, it does not append the strings to the
  2906. current content.
  2907. </p>
  2908. <p>
  2909. <var>LoadFromFile</var> simply creates a <link id="TFileStream">file
  2910. stream</link> with the given filename, and then executes
  2911. <link id="TStrings.LoadfromStream"/>; after that the file stream object
  2912. is destroyed again.
  2913. </p>
  2914. </descr>
  2915. <seealso>
  2916. <link id="TStrings.LoadFromStream"/>
  2917. <link id="TStrings.SaveToFile"/>
  2918. <link id="Tstrings.SaveToStream"/>
  2919. </seealso>
  2920. </element>
  2921. <element name="TStrings.LoadFromStream"> <!-- Procedure -->
  2922. <short>Load the contents of a stream as a series of strings.</short>
  2923. <descr>
  2924. <var>LoadFromStream</var> loads the contents of <var>Stream</var>
  2925. into the stringlist.
  2926. Each line in the stream (as marked by the end-of-line marker of the
  2927. particular OS the application runs on) becomes one string in the stringlist.
  2928. This action replaces
  2929. the contents of the stringlist, it does not append the strings to the
  2930. current content.
  2931. </descr>
  2932. <seealso>
  2933. <link id="TStrings.LoadFromFile"/>
  2934. <link id="TStrings.SaveToFile"/>
  2935. <link id="Tstrings.SaveToStream"/>
  2936. </seealso>
  2937. </element>
  2938. <element name="TStrings.Move"> <!-- Procedure -->
  2939. <short>Move a string from one place in the list to another.</short>
  2940. <descr>
  2941. <p>
  2942. <var>Move</var> moves the string at position <var>CurIndex</var> so
  2943. it has position <var>NewIndex</var> after the move operation. The object
  2944. associated to the string is also moved. <var>CurIndex</var> and
  2945. <var>NewIndex</var> should be in the range of <var>0</var> to
  2946. <var>Count-1</var>.
  2947. </p>
  2948. <remark>
  2949. <p>
  2950. <var>NewIndex</var> is <em>not</em> the position in the stringlist before
  2951. the move operation starts. The move operation
  2952. </p>
  2953. <ol>
  2954. <li> removes the string from position <var>CurIndex</var></li>
  2955. <li> inserts the string at position <var>NewIndex</var></li>
  2956. </ol>
  2957. <p>
  2958. This may not lead to the desired result if <var>NewIndex</var> is bigger
  2959. than <var>CurIndex</var>. Consider the following example:
  2960. </p>
  2961. <code>
  2962. With MyStrings do
  2963. begin
  2964. Clear;
  2965. Add('String 0');
  2966. Add('String 1');
  2967. Add('String 2');
  2968. Add('String 3');
  2969. Add('String 4');
  2970. Move(1,3);
  2971. end;
  2972. </code>
  2973. <p>
  2974. After the <var>Move</var> operation has completed, 'String 1' will be between 'String 3'
  2975. and 'String 4'.
  2976. </p>
  2977. </remark>
  2978. </descr>
  2979. <errors>
  2980. If either <var>CurIndex</var> or <var>NewIndex</var> is outside the allowed
  2981. range, an <link id="EStringListError"/> is raised.
  2982. </errors>
  2983. <seealso>
  2984. <link id="TStrings.Exchange"/>
  2985. </seealso>
  2986. </element>
  2987. <element name="TStrings.SaveToFile"> <!-- Procedure -->
  2988. <short>Save the contents of the list to a file.</short>
  2989. <descr>
  2990. <p>
  2991. <var>SaveToFile</var> saves the contents of the stringlist to the file with
  2992. name <var>FileName</var>. It writes the strings to the file, separated by
  2993. end-of-line markers, so each line in the file will contain 1 string from the
  2994. stringlist.
  2995. </p>
  2996. <p>
  2997. <var>SaveToFile</var> creates a <link id="TFileStream">file stream</link>
  2998. with name <var>FileName</var>, calls <link id="TStrings.SaveToStream"/>
  2999. and then destroys the file stream object.
  3000. </p>
  3001. </descr>
  3002. <errors>
  3003. An <link id="EStreamError"/> exception can be raised if the file <var>FileName</var> cannot be opened,
  3004. or if it cannot be written to.
  3005. </errors>
  3006. <seealso>
  3007. <link id="TStrings.SaveToStream"/>
  3008. <link id="Tstrings.LoadFromStream"/>
  3009. <link id="TStrings.LoadFromFile"/>
  3010. </seealso>
  3011. </element>
  3012. <element name="TStrings.SaveToStream"> <!-- Procedure -->
  3013. <short>Save the contents of the string to a stream.</short>
  3014. <descr>
  3015. <p>
  3016. <var>SaveToStream</var> saves the contents of the stringlist to
  3017. <var>Stream</var>. It writes the strings to the stream, separated by
  3018. end-of-line markers, so each 'line' in the stream will contain 1 string from the
  3019. stringlist.
  3020. </p>
  3021. </descr>
  3022. <errors>
  3023. An <link id="EStreamError"/> exception can be raised if the stream cannot be written to.
  3024. </errors>
  3025. <seealso>
  3026. <link id="TStrings.SaveToFile"/>
  3027. <link id="Tstrings.LoadFromStream"/>
  3028. <link id="TStrings.LoadFromFile"/>
  3029. </seealso>
  3030. </element>
  3031. <element name="TStrings.SetText"> <!-- Procedure -->
  3032. <short>Set the contents of the list from a PChar.</short>
  3033. <descr>
  3034. <var>SetText</var> parses the contents of <var>TheText</var> and fills the
  3035. stringlist based on the contents. It regards <var>TheText</var> as a series
  3036. of strings, separated by end-of-line markers. Each of these strings is added
  3037. to the stringlist.
  3038. </descr>
  3039. <seealso>
  3040. <link id="TStrings.Text"/>
  3041. </seealso>
  3042. </element>
  3043. <element name="TStrings.Capacity"> <!-- Property -->
  3044. <short>Capacity of the list, i.e. number of strings that the list can
  3045. currently hold before it tries to expand.</short>
  3046. <descr>
  3047. <p>
  3048. <var>Capacity</var> is the number of strings that the list can hold before
  3049. it tries to allocate more memory.
  3050. </p>
  3051. <p><var>TStrings</var> returns <link id="TStrings.Count"/> when read. Trying
  3052. to set the capacity has no effect. Descendent classes such as
  3053. <link id="TStringlist"/> can override this property such that it actually
  3054. sets the new capacity.
  3055. </p>
  3056. </descr>
  3057. <seealso>
  3058. <link id="TStringList"/>
  3059. <link id="TStrings.Count"/>
  3060. </seealso>
  3061. </element>
  3062. <element name="TStrings.CommaText"> <!-- Property -->
  3063. <short>Contents of the list as a comma-separated string.</short>
  3064. <descr>
  3065. <p>
  3066. <var>CommaText</var> represents the stringlist as a single string,
  3067. consisting of a comma-separated concatenation of the strings in the list.
  3068. If one of the strings contains spaces, comma's or quotes it will be enclosed by
  3069. double quotes. Any double quotes in a string will be doubled. For instance
  3070. the following strings:
  3071. </p>
  3072. <pre>
  3073. Comma,string
  3074. Quote"string
  3075. Space string
  3076. NormalSttring
  3077. </pre>
  3078. <p>
  3079. is converted to
  3080. </p>
  3081. <code>
  3082. "Comma,string","Quote""String","Space string",NormalString
  3083. </code>
  3084. <p>
  3085. Conversely, when setting the <var>CommaText</var> property, the text will be parsed
  3086. according to the rules outlined above, and the strings will be set
  3087. accordingly. Note that spaces will in this context be regarded as string
  3088. separators, unless the string as a whole is contained in double quotes.
  3089. Spaces that occur next to a delimiter will be ignored.
  3090. The following string:
  3091. </p>
  3092. <pre>
  3093. "Comma,string" , "Quote""String",Space string,, NormalString
  3094. </pre>
  3095. <p>
  3096. Will be converted to
  3097. </p>
  3098. <pre>
  3099. Comma,String
  3100. Quote"String
  3101. Space
  3102. String
  3103. NormalString
  3104. </pre>
  3105. </descr>
  3106. <seealso>
  3107. <link id="TStrings.Text"/>
  3108. <link id="TStrings.SetText"/>
  3109. </seealso>
  3110. </element>
  3111. <element name="TStrings.Count"> <!-- Property -->
  3112. <short>Number of strings in the list.</short>
  3113. <descr>
  3114. <p>
  3115. <var>Count</var> is the current number of strings in the list.
  3116. <var>TStrings</var> does not implement this property; descendent classes
  3117. should override the property read handler to return the correct value.
  3118. </p>
  3119. <p>
  3120. Strings in the list are always uniquely identified by their
  3121. <var>Index</var>; the index of a string is zero-based, i.e. it's supported
  3122. range is <var>0</var> to <var>Count-1</var>. trying to access a string with
  3123. an index larger than or equal to <var>Count</var> will result in an error.
  3124. Code that iterates over the list in a stringlist should always take into
  3125. account the zero-based character of the list index.
  3126. </p>
  3127. </descr>
  3128. <seealso>
  3129. <link id="TStrings.Strings"/>
  3130. <link id="TStrings.Objects"/>
  3131. <link id="TStrings.Capacity"/>
  3132. </seealso>
  3133. </element>
  3134. <element name="TStrings.Names"> <!-- Property -->
  3135. <short>Name parts of the name-value pairs in the list.</short>
  3136. <descr>
  3137. <p>
  3138. <var>Names</var> provides indexed access to the names of teh name-value
  3139. pairs in the list. It returns the name part of the <var>Index</var>-th
  3140. string in the list.
  3141. </p>
  3142. <remark>
  3143. The index is not an index based on the number of name-value pairs in the
  3144. list. It is the name part of the name-value pair a string <var>Index</var>
  3145. in the list. If the string at position <var>Index</var> is not a name-value
  3146. pair (i.e. does not contain the equal sign (=)), then an empty name is
  3147. returned.
  3148. </remark>
  3149. </descr>
  3150. <seealso>
  3151. <link id="TStrings.Values"/>
  3152. <link id="TStrings.IndexOfName"/>
  3153. </seealso>
  3154. </element>
  3155. <element name="TStrings.Objects"> <!-- Property -->
  3156. <short>Indexed access to the objects associated with the strings in the
  3157. list.</short>
  3158. <descr>
  3159. <p>
  3160. <var>Objects</var> provides indexed access to the objects associated to
  3161. the strings in the list. <var>Index</var> is a zero-based index and
  3162. must be in the range of <var>0</var> to <var>Count-1</var>.
  3163. </p>
  3164. <p>
  3165. Setting the <var>objects</var> property will not free the previously associated object,
  3166. if there was one. The caller is repsonsible for freeing the object that
  3167. was previously associated to the string.
  3168. </p>
  3169. <p>
  3170. <var>TStrings</var> does not implement any storage for objects. Reading the
  3171. <var>Objects</var> property will always return <var>Nil</var>, Setting the
  3172. property will have no effect. It is the responsability of the descendent
  3173. classes to provide storage for the associated objects.
  3174. </p>
  3175. </descr>
  3176. <errors>
  3177. If an <var>Index</var> outside the valid range is specified, an <link
  3178. id="EStringListError"/> exception will be raised.
  3179. </errors>
  3180. <seealso>
  3181. <link id="TStrings.Strings"/>
  3182. <link id="TStrings.IndexOfObject"/>
  3183. <link id="TStrings.Names"/>
  3184. <link id="TStrings.Values"/>
  3185. </seealso>
  3186. </element>
  3187. <element name="TStrings.Values"> <!-- Property -->
  3188. <short>Value parts of the name-value pairs in the list.</short>
  3189. <descr>
  3190. <p>
  3191. <var>Values</var> represents the value parts of the name-value pairs in the
  3192. list.
  3193. </p>
  3194. <p>
  3195. When reading this property, if there is a name-value pair in the list
  3196. of strings that has name part <var>Name</var>, then the corresponding value
  3197. is returned. If there is no such pair, an empty string is returned.
  3198. </p>
  3199. <p>
  3200. When writing this value, first it is checked whether there exists a
  3201. name-value pair in the list with name <var>Name</var>. If such a pair is
  3202. found, it's value part is overwritten with the specified value. If no
  3203. such pair is found, a new name-value pair is added with the specified
  3204. <var>Name</var> and value.
  3205. </p>
  3206. <remark>
  3207. <ol>
  3208. <li>Names are compared case-insensitively.</li>
  3209. <li>Any character, including whitespace, up till the first equal (=) sign
  3210. in a string is considered part of the name.</li>
  3211. </ol>
  3212. </remark>
  3213. </descr>
  3214. <seealso>
  3215. <link id="TStrings.Names"/>
  3216. <link id="TStrings.Strings"/>
  3217. <link id="TStrings.Objects"/>
  3218. </seealso>
  3219. </element>
  3220. <element name="TStrings.Strings"> <!-- Property -->
  3221. <short>Indexed access to teh strings in the list.</short>
  3222. <descr>
  3223. <p>
  3224. <var>Strings</var> is the default property of <var>TStrings</var>. It
  3225. provides indexed read-write access to the list of strings. Reading it will
  3226. return the string at position <var>Index</var> in the list. Writing it will
  3227. set the string at position <var>Index</var>.
  3228. </p>
  3229. <p>
  3230. <var>Index</var> is the position of the string in the list. It is
  3231. zero-based, i.e. valued values range from <var>0</var> (the first string in
  3232. the list) till <var>Count-1</var> (the last string in the list).
  3233. When browsing through the strings in the list, this fact must be taken into
  3234. account.
  3235. </p>
  3236. <p>
  3237. To access the objects associated with the strings in the list, use the <link
  3238. id="TStrings.Objects"/> property. The name parts of name-value pairs can be
  3239. accessed with the <link id="TStrings.Names"/> property, and the values can
  3240. be set or read through the <link id="TStrings.Values"/> property.
  3241. </p>
  3242. <p>
  3243. Searching through the list can be done using the <link
  3244. id="TStrings.IndexOf"/> method.
  3245. </p>
  3246. </descr>
  3247. <errors>
  3248. If <var>Index</var> is outside the allowed range, an <link
  3249. id="EStringListError"/> exception is raised.
  3250. </errors>
  3251. <seealso>
  3252. <link id="TStrings.Count"/>
  3253. <link id="TStrings.Objects"/>
  3254. <link id="TStrings.Names"/>
  3255. <link id="TStrings.Values"/>
  3256. <link id="TStrings.IndexOf"/>
  3257. </seealso>
  3258. </element>
  3259. <element name="TStrings.Text"> <!-- Property -->
  3260. <short>Contents of the list as one big string.</short>
  3261. <descr>
  3262. <p>
  3263. <var>Text</var> returns, when read, the contents of the stringlist as one
  3264. big string consisting of all strings in the list, separated by an
  3265. end-of-line marker. When this property is set, the string will be cut into
  3266. smaller strings, based on the positions of end-of-line markers in the
  3267. string. Any previous content of the stringlist will be lost.
  3268. </p>
  3269. <remark>
  3270. If any of the strings in the list contains an end-of-line marker, then the
  3271. resulting string will appear to contain more strings than actually present
  3272. in the list. To avoid this ambiguity, use the <link id="TStrings.CommaText"/>
  3273. property instead.
  3274. </remark>
  3275. </descr>
  3276. <seealso>
  3277. <link id="TStrings.Strings"/>
  3278. <link id="TStrings.Count"/>
  3279. <link id="TStrings.CommaText"/>
  3280. </seealso>
  3281. </element>
  3282. <element name="TStrings.StringsAdapter"> <!-- Property -->
  3283. <short>Not implemented in Free Pascal.</short>
  3284. <descr>
  3285. </descr>
  3286. <seealso>
  3287. </seealso>
  3288. </element>
  3289. <element name="TDuplicates"> <!-- Enumeration type -->
  3290. <short>Type to describe what to do with duplicate values in a <link
  3291. id="TStringlist"/>.</short>
  3292. <descr>
  3293. </descr>
  3294. <seealso>
  3295. </seealso>
  3296. </element>
  3297. <element name="TDuplicates.dupIgnore"> <!-- Enumeration value -->
  3298. <short>Duplicate values will not be be added to the list, but no error will
  3299. be triggered.</short>
  3300. <seealso>
  3301. </seealso>
  3302. </element>
  3303. <element name="TDuplicates.dupAccept"> <!-- Enumeration value -->
  3304. <short>Duplicate values can be added to the list.</short>
  3305. <descr>
  3306. </descr>
  3307. <seealso>
  3308. </seealso>
  3309. </element>
  3310. <element name="TDuplicates.dupError"> <!-- Enumeration value -->
  3311. <short>If an attempt is made to add a duplicate value to the list, an
  3312. <link id="EStringListError"/> exception is raised.</short>
  3313. <descr>
  3314. </descr>
  3315. <seealso>
  3316. </seealso>
  3317. </element>
  3318. <element name="TStringItemList"> <!-- Array type -->
  3319. <short>Array of <link id="TStringItem"/> records.</short>
  3320. <descr>
  3321. This declaration is provided for Delphi compatibility, it is not used in
  3322. Free Pascal.
  3323. </descr>
  3324. </element>
  3325. <!--
  3326. *********************************************************************
  3327. TStringList
  3328. *********************************************************************
  3329. -->
  3330. <element name="TStringList"> <!-- Class -->
  3331. <short>Standard implementation of the <link id="TStrings"/> class.</short>
  3332. <descr>
  3333. <p>
  3334. <var>TStringList</var> is a descendent class of <link id="TStrings"/> that
  3335. implements all of the abstract methods introduced there. It also introduces
  3336. some additional methods:
  3337. </p>
  3338. <ul>
  3339. <li>Sort the list, or keep the list sorted at all times</li>
  3340. <li>Special handling of duplicates in sorted lists</li>
  3341. <li>Notification of changes in the list</li>
  3342. </ul>
  3343. </descr>
  3344. <seealso>
  3345. <link id="TStrings"/>
  3346. <link id="TStrings.Duplicates"/>
  3347. <link id="TStrings.Sorted"/>
  3348. </seealso>
  3349. </element>
  3350. <element name="TStringList.Changed"> <!-- Procedure -->
  3351. <short>Called when the list of strings was modified.</short>
  3352. <descr>
  3353. </descr>
  3354. <seealso>
  3355. </seealso>
  3356. </element>
  3357. <element name="TStringList.Changing"> <!-- Procedure -->
  3358. <short>Called when the list is changing.</short>
  3359. <descr>
  3360. </descr>
  3361. <seealso>
  3362. </seealso>
  3363. </element>
  3364. <element name="TStringList.Get"> <!-- Function -->
  3365. <short>Overrides the standard read handler for the <link id="TStrings.Strings"/> property.</short>
  3366. <descr>
  3367. </descr>
  3368. <seealso>
  3369. </seealso>
  3370. </element>
  3371. <element name="TStringList.GetCapacity"> <!-- Function -->
  3372. <short>Overrides the standard read handler for the <link
  3373. id="TStrings.Capacity"/> property.</short>
  3374. <descr>
  3375. </descr>
  3376. <seealso>
  3377. </seealso>
  3378. </element>
  3379. <element name="TStringList.GetCount"> <!-- Function -->
  3380. <short>Overrides the standard read handler for the <link
  3381. id="TStrings.Count"/> property.</short>
  3382. <descr>
  3383. </descr>
  3384. <seealso>
  3385. </seealso>
  3386. </element>
  3387. <element name="TStringList.GetObject"> <!-- Function -->
  3388. <short>Overrides the standard read handler for the <link
  3389. id="TStrings.Objects"/> property.</short>
  3390. <descr>
  3391. </descr>
  3392. <seealso>
  3393. </seealso>
  3394. </element>
  3395. <element name="TStringList.Put"> <!-- Procedure -->
  3396. <short>Overrides the standard write handler for the <link
  3397. id="TStrings.Strings"/> property.</short>
  3398. <descr>
  3399. </descr>
  3400. <seealso>
  3401. </seealso>
  3402. </element>
  3403. <element name="TStringList.PutObject"> <!-- Procedure -->
  3404. <short>Overrides the standard write handler for the <link
  3405. id="TStrings.Objects"/> property.</short>
  3406. <descr>
  3407. </descr>
  3408. <seealso>
  3409. </seealso>
  3410. </element>
  3411. <element name="TStringList.SetCapacity"> <!-- Procedure -->
  3412. <short>Overrides the standard write handler for the <link
  3413. id="TStrings.Capacity"/> property.</short>
  3414. <descr>
  3415. </descr>
  3416. <seealso>
  3417. </seealso>
  3418. </element>
  3419. <element name="TStringList.SetUpdateState"> <!-- Procedure -->
  3420. <short>Overrides the standard <link id="TStrings.SetUpdateState"/>
  3421. call.</short>
  3422. <descr>
  3423. </descr>
  3424. <seealso>
  3425. </seealso>
  3426. </element>
  3427. <element name="TStringList.Destroy"> <!-- Destructor -->
  3428. <short>Destroys the stringlist.</short>
  3429. <descr>
  3430. <p>
  3431. <var>Destroy</var> clears the stringlist, release all memory allocated for
  3432. the storage of the strings, and then calls the inherited destroy method.
  3433. </p>
  3434. <remark>
  3435. Any objects associated to strings in the list will <em>not</em> be
  3436. destroyed; it is the responsability of the caller to destroy all objects
  3437. associated with strings in the list.
  3438. </remark>
  3439. </descr>
  3440. </element>
  3441. <element name="TStringList.Add"> <!-- Function -->
  3442. <short>Implements the <link id="TStrings.Add"/> function.</short>
  3443. <descr>
  3444. <p>
  3445. <var>Add</var> will add <var>S</var> to the list. If the list is sorted and
  3446. the string <var>S</var> is already present in the list and
  3447. <link id="TStringList.Duplicates"/> is <var>dupError</var> then an <link
  3448. id="EStringListError"/> exception is raised. If <var>Duplicates</var> is
  3449. set to <var>dupIgnore</var> then the return value is underfined.
  3450. </p>
  3451. <p>
  3452. If the list is sorted, new strings will not necessarily be added to the end
  3453. of the list, rather they will be inserted at their alphabetical position.
  3454. </p>
  3455. </descr>
  3456. <errors>
  3457. If the list is sorted and the string <var>S</var> is already present in the list and
  3458. <link id="TStringList.Duplicates"/> is <var>dupError</var> then an <link
  3459. id="EStringListError"/> exception is raised.
  3460. </errors>
  3461. <seealso>
  3462. <link id="TStringList.Insert"/>
  3463. <link id="TStringList.Duplicates"/>
  3464. </seealso>
  3465. </element>
  3466. <element name="TStringList.Clear"> <!-- Procedure -->
  3467. <short>Implements the <link id="TStrings.Add"/> function.</short>
  3468. <descr>
  3469. </descr>
  3470. <seealso>
  3471. </seealso>
  3472. </element>
  3473. <element name="TStringList.Delete"> <!-- Procedure -->
  3474. <short>Implements the <link id="TStrings.Delete"/> function.</short>
  3475. <descr>
  3476. </descr>
  3477. <seealso>
  3478. </seealso>
  3479. </element>
  3480. <element name="TStringList.Exchange"> <!-- Procedure -->
  3481. <short>Implements the <link id="TStrings.Exchange"/> function.</short>
  3482. <descr>
  3483. <p>
  3484. <var>Exchange</var> will exchange two items in the list as described in
  3485. <link id="TStrings.Exchange"/>.
  3486. </p>
  3487. <remark>
  3488. <var>Exchange</var> will not check whether the list os sorted or not;
  3489. if <var>Exchange</var> is called on a sorted list and the strings are not
  3490. identical, the sort order of the list will be destroyed.
  3491. </remark>
  3492. </descr>
  3493. <seealso>
  3494. <link id="TStringList.Sorted"/>
  3495. <link id="TStrings.Exchange"/>
  3496. </seealso>
  3497. </element>
  3498. <element name="TStringList.Find"> <!-- Function -->
  3499. <short>Locates the index for a given string in sorted lists.</short>
  3500. <descr>
  3501. <p>
  3502. <var>Find</var> returns <var>True</var> if the string <var>S</var> is present in the
  3503. list. Upon exit, the <var>Index</var> parameter will contain the position of
  3504. the string in the list. If the string is not found, the function will return
  3505. <var>False</var> and <var>Index</var> will contain the position where the
  3506. string will be inserted if it is added to the list.
  3507. </p>
  3508. <remark>
  3509. <ol>
  3510. <li> Use this method only on sorted lists. For unsorted lists, use <link
  3511. id="TStringList.IndexOf"/> instead.</li>
  3512. <li>Find uses a binary search method to locate the string</li>
  3513. </ol>
  3514. </remark>
  3515. </descr>
  3516. <seealso>
  3517. </seealso>
  3518. </element>
  3519. <element name="TStringList.IndexOf"> <!-- Function -->
  3520. <short>Overrides the <link id="TStrings.IndexOf"/> property.</short>
  3521. <descr>
  3522. <var>IndexOf</var> overrides the ancestor method <link
  3523. id="TStrings.indexOf"/>. It tries to optimize the
  3524. search by executing a binary search if the list is sorted. The function
  3525. returns the position of <var>S</var> if it is found in the list, or -1 if
  3526. the string is not found in the list.
  3527. </descr>
  3528. <seealso>
  3529. <link id="TStrings.IndexOf"/>
  3530. <link id="TStringList.Find"/>
  3531. </seealso>
  3532. </element>
  3533. <element name="TStringList.Insert"> <!-- Procedure -->
  3534. <short>Overrides the <link id="TStrings.Insert"/> method.</short>
  3535. <descr>
  3536. <var>Insert</var> will insert the string <var>S</var> at position
  3537. <var>Index</var> in the list. If the list is sorted, an <link
  3538. id="EStringListError"/> exception will be raised instead. <var>Index</var>
  3539. is a zero-based position.
  3540. </descr>
  3541. <errors>
  3542. If <var>Index</var> contains an invalid value (less than zero or larger than
  3543. <var>Count</var>, or the list is sorted, an <link id="EStringListError"/>
  3544. exception will be raised.
  3545. </errors>
  3546. <seealso>
  3547. <link id="TStringList.Add"/>
  3548. <link id="TStrings.Insert"/>
  3549. <link id="TStringList.InsertObject"/>
  3550. </seealso>
  3551. </element>
  3552. <element name="TStringList.Sort"> <!-- Procedure -->
  3553. <short>Sorts the strings in the list.</short>
  3554. <descr>
  3555. <var>Sort</var> will sort the strings in the list using the quicksort
  3556. algorithm. If the list has its <link id="TStringList.Sorted"/> property set
  3557. to <var>True</var> then nothing will be done.
  3558. </descr>
  3559. <seealso>
  3560. <link id="TStringList.Sorted"/>
  3561. </seealso>
  3562. </element>
  3563. <element name="TStringList.Duplicates"> <!-- Property -->
  3564. <short>Describes the behaviour of a sorted list with respect to duplicate
  3565. strings.</short>
  3566. <descr>
  3567. <p>
  3568. <var>Duplicates</var> describes what to do in case a duplicate value is
  3569. added to the list:
  3570. </p>
  3571. <table>
  3572. <tr><td>dupIgnore</td><td><printshort id="TDuplicates.dupIgnore"/></td></tr>
  3573. <tr><td>dupError</td><td><printshort id="TDuplicates.dupError"/></td></tr>
  3574. <tr><td>dupAccept</td><td><printshort id="TDuplicates.dupAccept"/></td></tr>
  3575. </table>
  3576. <p>
  3577. If the stringlist is not sorted, the <var>Duplicates</var> setting is
  3578. ignored.
  3579. </p>
  3580. </descr>
  3581. <seealso>
  3582. </seealso>
  3583. </element>
  3584. <element name="TStringList.Sorted"> <!-- Property -->
  3585. <short>Determines whether the list is sorted or not.</short>
  3586. <descr>
  3587. <p>
  3588. <var>Sorted</var> can be set to <var>True</var> in order to cause the list
  3589. of strings to be sorted. Further additions to the list will be inserted at
  3590. the correct position so the list remains sorted at all times. Setting the
  3591. property to <var>False</var> has no immediate effect, but will allow strings
  3592. to be inserted at any position.
  3593. </p>
  3594. <remark>
  3595. <ol>
  3596. <li>
  3597. When <var>Sorted</var> is <var>True</var>, <link id="TStringList.Insert"/>
  3598. cannot be used. For sorted lists, <link id="TStringList.Add"/> should be
  3599. used instead.</li>
  3600. <li>If <var>Sorted</var> is <var>True</var>, the <link
  3601. id="TStringList.Duplicates"/> setting has effect. This setting is ignored
  3602. when <var>Sorted</var> is <var>False</var>.</li>
  3603. </ol>
  3604. </remark>
  3605. </descr>
  3606. <seealso>
  3607. <link id="TStringList.Sort"/>
  3608. <link id="TStringList.Duplicates"/>
  3609. <link id="TStringList.Add"/>
  3610. <link id="TstringList.Insert"/>
  3611. </seealso>
  3612. </element>
  3613. <element name="TStringList.OnChange"> <!-- Property -->
  3614. <short>Event triggered after the list was modified.</short>
  3615. <descr>
  3616. <p>
  3617. <var>OnChange</var> can be assigned to respond to changes that have occurred
  3618. in the list. The handler is called whenever strings are added, moved,
  3619. modified or deleted from the list.
  3620. </p>
  3621. <p>
  3622. The <var>Onchange</var> event is triggered after the modification took place.
  3623. When the modification is about to happen, an <link
  3624. id="TstringList.OnChanging"/> event occurs.
  3625. </p>
  3626. </descr>
  3627. <seealso>
  3628. <link id="TStringList.OnChanging"/>
  3629. </seealso>
  3630. </element>
  3631. <element name="TStringList.OnChanging"> <!-- Property -->
  3632. <short>Event triggered when the list is about to be modified.</short>
  3633. <descr>
  3634. <p>
  3635. <var>OnChanging</var> can be assigned to respond to changes that will occurred
  3636. in the list. The handler is called whenever strings will be added, moved,
  3637. modified or deleted from the list.
  3638. </p>
  3639. <p>
  3640. The <var>Onchanging</var> event is triggered before the modification will
  3641. take place. When the modification has happened, an <link
  3642. id="TstringList.OnChange"/> event occurs.
  3643. </p>
  3644. </descr>
  3645. <seealso>
  3646. <link id="TStringList.OnChange"/>
  3647. </seealso>
  3648. </element>
  3649. <!--
  3650. *********************************************************************
  3651. TStream
  3652. *********************************************************************
  3653. -->
  3654. <element name="TStream"> <!-- Class -->
  3655. <short>Base class for streams.</short>
  3656. <descr>
  3657. <p>
  3658. <var>TStream</var> is the base class for all streaming classes. It defines
  3659. abstract methods for <link id="TStream.Read">reading</link>, <link
  3660. id="TStream.Write">writing</link> from and to streams, as well as functions to
  3661. determine the size of the stream as well as the current position of the
  3662. stream.
  3663. </p>
  3664. <p>Descendent classes such as <link id="TMemoryStream"/> or <link
  3665. id="TFileStream"/> then implement these abstract methods to write streams to
  3666. memory or file.
  3667. </p>
  3668. </descr>
  3669. <seealso>
  3670. <link id="TMemoryStream"/>
  3671. <link id="TFileStream"/>
  3672. <link id="TStringStream"/>
  3673. </seealso>
  3674. </element>
  3675. <element name="TStream.SetSize"> <!-- Procedure -->
  3676. <short>Sets the size of the stream</short>
  3677. <descr>
  3678. <var>SetSize</var> is the write handler for the <link id="TStream.Size"/>
  3679. property. The <var>TStream</var> implementation of <var>SetSize</var> does
  3680. nothing, but descendent classes may override this methods to allow
  3681. programmers to set the size of the stream.
  3682. </descr>
  3683. <seealso>
  3684. <link id="TStream.GetSize"/>
  3685. <link id="TStream.Size"/>
  3686. </seealso>
  3687. </element>
  3688. <element name="TStream.Read"> <!-- Function -->
  3689. <short>Reads data from the stream to a buffer and returns the number of
  3690. bytes read.</short>
  3691. <descr>
  3692. <p>
  3693. <var>Read</var> attempts to read <var>Count</var> from the stream to
  3694. <var>Buffer</var> and returns the number of bytes actually read.
  3695. </p>
  3696. <p>This method should be used when the number of bytes is not determined.
  3697. If a specific number of bytes is expected, use <link
  3698. id="TSTream.ReadBuffer"/> instead.
  3699. </p>
  3700. <p>
  3701. <var>Read</var> is an abstract method that is overridden by descendent
  3702. classes to do the actual reading.
  3703. </p>
  3704. </descr>
  3705. <errors>
  3706. Descendent classes that do not allow reading from the stream may raise an
  3707. exception when the <var>Read</var> is used.
  3708. </errors>
  3709. <seealso>
  3710. <link id="TStream.Write"/>
  3711. <link id="TStream.ReadBuffer"/>
  3712. </seealso>
  3713. </element>
  3714. <element name="TStream.Write"> <!-- Function -->
  3715. <short>Writes data from the stream to the buffer and returns the number of
  3716. bytes written.</short>
  3717. <descr>
  3718. <p>
  3719. <var>Write</var> attempts to write <var>Count</var> bytes from
  3720. <var>Buffer</var> to the stream. It returns the actual number of bytes
  3721. written to the stream.
  3722. </p>
  3723. <p>This method should be used when the number of bytes that should be
  3724. written is not determined. If a specific number of bytes should be
  3725. written, use <link id="TSTream.WriteBuffer"/> instead.
  3726. </p>
  3727. <p>
  3728. <var>Write</var> is an abstract method that is overridden by descendent
  3729. classes to do the actual writinging.
  3730. </p>
  3731. </descr>
  3732. <errors>
  3733. Descendent classes that do not allow writing to the stream may raise an
  3734. exception when <var>Write</var> is used.
  3735. </errors>
  3736. <seealso>
  3737. <link id="TStream.Read"/>
  3738. <link id="TStream.WriteBuffer"/>
  3739. </seealso>
  3740. </element>
  3741. <element name="TStream.Seek"> <!-- Function -->
  3742. <short>Sets the current position in the stream</short>
  3743. <descr>
  3744. <p>
  3745. <var>Seek</var> sets the position of the stream to <var>Offset</var> bytes
  3746. from <var>Origin</var>. <var>Origin</var> can have one of the following
  3747. values:
  3748. </p>
  3749. <table>
  3750. <tr><td>Constant</td><td>Meaning</td></tr>
  3751. <tr><td>soFromBeginning</td><td>Set the position relative to the start of
  3752. the stream.</td></tr>
  3753. <tr><td>soFromCurrent</td><td>Set the position relative to the beginning of
  3754. the stream.</td></tr>
  3755. <tr><td>soFromEnd</td><td>Set the position relative to the end of the
  3756. stream.</td></tr>
  3757. </table>
  3758. <p>
  3759. <var>Offset</var> should be negative when the origin is <var>SoFromEnd</var>.
  3760. It should be positive for <var>soFromBeginning</var> and can have both signs
  3761. for <var>soFromCurrent</var>
  3762. </p>
  3763. <p>
  3764. This is an abstract method, which must be overridden by descendent classes.
  3765. They may choose not to implement this method for all values of
  3766. <var>Origin</var> and <var>Offset</var>.
  3767. </p>
  3768. </descr>
  3769. <errors>
  3770. An exception may be raised if this method is called with an invalid pair of
  3771. <var>Offset</var>,<var>Origin</var> values. e.g. a negative
  3772. <var>offset</var> for <var>soFromBeginning</var>.
  3773. </errors>
  3774. <seealso>
  3775. <link id="TStream.Position"/>
  3776. </seealso>
  3777. </element>
  3778. <element name="TStream.ReadBuffer"> <!-- Procedure -->
  3779. <short>Reads data from the stream to a buffer</short>
  3780. <descr>
  3781. <p>
  3782. <var>ReadBuffer</var> reads <var>Count</var> bytes of the stream into
  3783. <var>Buffer</var>. If the stream does not contain <var>Count</var> bytes,
  3784. then an exception is raised.
  3785. </p>
  3786. <p>
  3787. <var>ReadBuffer</var> should be used to read in a fixed number of bytes,
  3788. such as when reading structures or the content of variables. If the number
  3789. of bytes is not determined, use <link id="TStream.Read"/> instead.
  3790. <var>ReadBuffer</var> uses <var>Read</var> internally to do the actual
  3791. reading.
  3792. </p>
  3793. </descr>
  3794. <errors>
  3795. If the stream does not allow to read <var>Count</var> bytes, then an
  3796. exception is raised.
  3797. </errors>
  3798. <seealso>
  3799. <link id="TStream.Read"/>
  3800. <link id="TStream.WriteBuffer"/>
  3801. </seealso>
  3802. </element>
  3803. <element name="TStream.WriteBuffer"> <!-- Procedure -->
  3804. <short>Writes data from the stream to the buffer</short>
  3805. <descr>
  3806. <p>
  3807. <var>WriteBuffer</var> writes <var>Count</var> bytes to the stream from
  3808. <var>Buffer</var>. If the stream does not allow <var>Count</var> bytes to be
  3809. written, then an exception is raised.
  3810. </p>
  3811. <p>
  3812. <var>WriteBuffer</var> should be used to read in a fixed number of bytes,
  3813. such as when writing structures or the content of variables. If the number
  3814. of bytes is not determined, use <link id="TStream.Write"/> instead.
  3815. <var>WriteBuffer</var> uses <var>Write</var> internally to do the actual
  3816. reading.
  3817. </p>
  3818. </descr>
  3819. <errors>
  3820. If the stream does not allow to write <var>Count</var> bytes, then an
  3821. exception is raised.
  3822. </errors>
  3823. <seealso>
  3824. <link id="TStream.Write"/>
  3825. <link id="TStream.ReadBuffer"/>
  3826. </seealso>
  3827. </element>
  3828. <element name="TStream.CopyFrom"> <!-- Function -->
  3829. <short>Copy data from one stream to another</short>
  3830. <descr>
  3831. <p>
  3832. <var>CopyFrom</var> reads <var>Count</var> bytes from <var>Source</var> and
  3833. writes them to the current stream. This updates the current position in the
  3834. stream. After the action is completed, the number of bytes copied is
  3835. returned.
  3836. </p>
  3837. <p>
  3838. This can be used to quickly copy data from one stream to another or to copy
  3839. the whole contents of the stream.
  3840. </p>
  3841. </descr>
  3842. <seealso>
  3843. <link id="TStream.Read"/>
  3844. <link id="TStream.Write"/>
  3845. </seealso>
  3846. </element>
  3847. <element name="TStream.ReadComponent"> <!-- Function -->
  3848. <short>Reads component data from a stream</short>
  3849. <descr>
  3850. <p>
  3851. <var>ReadComponent</var> reads a component state from the stream and
  3852. transfers this state to <var>Instance</var>. If <var>Instance</var> is nil,
  3853. then it is created first based on the type stored in the stream.
  3854. <var>ReadComponent</var> returns the component as it is read from the stream.
  3855. </p>
  3856. <p>
  3857. <var>ReadComponent</var> simply creates a <link id="TReader"/> object and
  3858. calls its <link id="TReader.ReadRootComponent">ReadRootComponent</link>
  3859. method.
  3860. </p>
  3861. </descr>
  3862. <errors>
  3863. If an error occurs during the reading of the component, an <link
  3864. id="EFilerError"/> exception is raised.
  3865. </errors>
  3866. <seealso>
  3867. <link id="TStream.WriteComponent"/>
  3868. <link id="TStream.ReadComponentRes"/>
  3869. <link id="TReader.ReadRootComponent"/>
  3870. </seealso>
  3871. </element>
  3872. <element name="TStream.ReadComponentRes"> <!-- Function -->
  3873. <short>Reads component data and resource header from a stream</short>
  3874. <descr>
  3875. <p>
  3876. <var>ReadComponentRes</var> reads a resource header from the stream, and then
  3877. calls <link id="TStream.ReadComponent">ReadComponent</link> to read the
  3878. component state from the stream into <var>Instance</var>.
  3879. </p>
  3880. <p>
  3881. This method is usually called by the global streaming method when
  3882. instantiating forms and datamodules as created by an IDE. It should be used
  3883. mainly on Windows, to store components in Windows resources.
  3884. </p>
  3885. </descr>
  3886. <errors>
  3887. If an error occurs during the reading of the component, an <link
  3888. id="EFilerError"/> exception is raised.
  3889. </errors>
  3890. <seealso>
  3891. <link id="TStream.ReadComponent"/>
  3892. <link id="TStream.WriteComponentRes"/>
  3893. </seealso>
  3894. </element>
  3895. <element name="TStream.WriteComponent"> <!-- Procedure -->
  3896. <short>Write component data to the stream</short>
  3897. <descr>
  3898. <p>
  3899. <var>WriteComponent</var> writes the published properties of
  3900. <var>Instance</var> to the stream, so they can later be read with <link
  3901. id="TStream.ReadComponent"/>. This method is intended to be used by an IDE,
  3902. to preserve the state of a form or datamodule as designed in the IDE.
  3903. </p>
  3904. <p>
  3905. <var>WriteComponent</var> simply calls <link
  3906. id="TStream.WriteDescendent">WriteDescendent</link> with <var>Nil</var>
  3907. ancestor.
  3908. </p>
  3909. </descr>
  3910. <seealso>
  3911. <link id="TStream.ReadComponent"/>
  3912. <link id="TStream.WriteComponentRes"/>
  3913. </seealso>
  3914. </element>
  3915. <element name="TStream.WriteComponentRes"> <!-- Procedure -->
  3916. <short>Write resource header and component data to a stream</short>
  3917. <descr>
  3918. <p>
  3919. <var>WriteComponentRes</var> writes a <var>ResName</var> resource header
  3920. to the stream and then calls <link id="TStream.WriteComponent">WriteComponent</link>
  3921. to write the published properties of <var>Instance</var> to the stream.
  3922. </p>
  3923. <p>
  3924. This method is intened for use by an IDE that can use it to store forms or
  3925. datamodules as designed in a Windows resource stream.
  3926. </p>
  3927. </descr>
  3928. <seealso>
  3929. <link id="TStream.WriteComponent"/>
  3930. <link id="TStream.ReadComponentRes"/>
  3931. </seealso>
  3932. </element>
  3933. <element name="TStream.WriteDescendent"> <!-- Procedure -->
  3934. <short>Write component data to a stream, relative to an ancestor</short>
  3935. <descr>
  3936. <p>
  3937. <var>WriteDescendent</var> writes the state of <var>Instance</var> to the
  3938. stream where it differs from <var>Ancestor</var>, i.e. only the changed
  3939. properties are written to the stream.
  3940. </p>
  3941. <p>
  3942. <var>WriteDescendent</var> creates a <link id="TWriter"/> object and calls
  3943. its <link id="TWriter.WriteDescendent">WriteDescendent</link> object. The
  3944. writer is passed a <link id="TBinaryObjectWriter">binary driver
  3945. object</link> by default.
  3946. </p>
  3947. </descr>
  3948. <seealso>
  3949. </seealso>
  3950. </element>
  3951. <element name="TStream.WriteDescendentRes"> <!-- Procedure -->
  3952. <short>Write resource header and component data to a stream, relative to an ancestor</short>
  3953. <descr>
  3954. <p>
  3955. <var>WriteDescendentRes</var> writes a <var>ResName</var> resource header,
  3956. and then calls <link id="TStream.WriteDescendent">WriteDescendent</link> to
  3957. write the state of <var>Instance</var> to the
  3958. stream where it differs from <var>Ancestor</var>, i.e. only the changed
  3959. properties are written to the stream.
  3960. </p>
  3961. <p>
  3962. This method is intened for use by an IDE that can use it to store forms or
  3963. datamodules as designed in a Windows resource stream.
  3964. </p>
  3965. </descr>
  3966. <seealso>
  3967. </seealso>
  3968. </element>
  3969. <element name="TStream.WriteResourceHeader"> <!-- Procedure -->
  3970. <short>Write resource header to the stream</short>
  3971. <descr>
  3972. <p>
  3973. <var>WriteResourceHeader</var> writes a resource-file header for a resource
  3974. called <var>ResName</var>. It returns in <var>FixupInfo</var> the argument
  3975. that should be passed on to <link id="TStream.FixupResourceHeader"/>.
  3976. </p>
  3977. <p>
  3978. <var>WriteResourceHeader</var> should not be used directly. It is called by
  3979. the <link id="TStream.WriteComponentRes"/> and
  3980. <link id="TStream.WriteDescendentRes"/>
  3981. methods.
  3982. </p>
  3983. </descr>
  3984. <seealso>
  3985. <link id="TStream.FixupResourceHeader"/>
  3986. <link id="TStream.WriteComponentRes"/>
  3987. <link id="TStream.WriteDescendentRes"/>
  3988. </seealso>
  3989. </element>
  3990. <element name="TStream.FixupResourceHeader"> <!-- Procedure -->
  3991. <short>Not implemented in FPC</short>
  3992. <descr>
  3993. <p>
  3994. <var>FixupResourceHeader</var> is used to write the size of the resource
  3995. after a component was written to stream. The size is determined from the
  3996. current position, and it is written at position <var>FixupInfo</var>. After
  3997. that the current position is restored.
  3998. </p>
  3999. <p>
  4000. <var>FixupResourceHeader</var> should never be called directly; it is
  4001. handled by the streaming system.
  4002. </p>
  4003. </descr>
  4004. <seealso>
  4005. <link id="TStream.WriteResourceHeader"/>
  4006. <link id="TStream.WriteComponentRes"/>
  4007. <link id="TStream.WriteDescendentRes"/>
  4008. </seealso>
  4009. </element>
  4010. <element name="TStream.ReadResHeader"> <!-- Procedure -->
  4011. <short>Read a resource header from the stream.</short>
  4012. <descr>
  4013. <p>
  4014. <var>ReadResourceHeader</var> reads a reasource file header from the stream.
  4015. It positions the stream just beyond the header.
  4016. </p>
  4017. <p>
  4018. <var>ReadResourceHeader</var> should not be called directly, it is called by
  4019. the streaming system when needed.
  4020. </p>
  4021. </descr>
  4022. <errors>
  4023. If the resource header is invalid an <link id="EInvalidImage"/> exception is
  4024. raised.
  4025. </errors>
  4026. <seealso>
  4027. <link id="TStream.ReadComponentRes"/>
  4028. <link id="EInvalidImage"/>
  4029. </seealso>
  4030. </element>
  4031. <element name="TStream.ReadByte"> <!-- Function -->
  4032. <short>Read a byte from the stream and return its value.</short>
  4033. <descr>
  4034. <var>ReadByte</var> reads one byte from the stream and returns its value.
  4035. </descr>
  4036. <errors>
  4037. If the byte cannot be read, a <link id="EStreamError"/> exception will be
  4038. raised. This is a utility function which symply calls the
  4039. <link id="TStream.Read">Read</link> function.
  4040. </errors>
  4041. <seealso>
  4042. <link id="TStream.Read"/>
  4043. <link id="TStream.WriteByte"/>
  4044. <link id="TStream.ReadWord"/>
  4045. <link id="TStream.ReadDWord"/>
  4046. <link id="TStream.ReadAnsiString"/>
  4047. </seealso>
  4048. </element>
  4049. <element name="TStream.ReadWord"> <!-- Function -->
  4050. <short>Read a word from the stream and return its value.</short>
  4051. <descr>
  4052. <var>ReadWord</var> reads one Word (i.e. 2 bytes) from the stream
  4053. and returns its value. This is a utility function which symply calls the
  4054. <link id="TStream.Read">Read</link> function.
  4055. </descr>
  4056. <errors>
  4057. If the word cannot be read, a <link id="EStreamError"/> exception will be
  4058. raised.
  4059. </errors>
  4060. <seealso>
  4061. <link id="TStream.Read"/>
  4062. <link id="TStream.WriteWord"/>
  4063. <link id="TStream.ReadByte"/>
  4064. <link id="TStream.ReadDWord"/>
  4065. <link id="TStream.ReadAnsiString"/>
  4066. </seealso>
  4067. </element>
  4068. <element name="TStream.ReadDWord"> <!-- Function -->
  4069. <short>Read a DWord from the stream and return its value.</short>
  4070. <descr>
  4071. <var>ReadDWord</var> reads one DWord (i.e. 4 bytes) from the stream
  4072. and returns its value. This is a utility function which simply calls the
  4073. <link id="TStream.Read">Read</link> function.
  4074. </descr>
  4075. <errors>
  4076. If the DWord cannot be read, a <link id="EStreamError"/> exception will be
  4077. raised.
  4078. </errors>
  4079. <seealso>
  4080. <link id="TStream.Read"/>
  4081. <link id="TStream.WriteDWord"/>
  4082. <link id="TStream.ReadByte"/>
  4083. <link id="TStream.ReadWord"/>
  4084. <link id="TStream.ReadAnsiString"/>
  4085. </seealso>
  4086. </element>
  4087. <element name="TStream.ReadAnsiString"> <!-- Function -->
  4088. <short>Read an ansistring from the stream and return its value.</short>
  4089. <descr>
  4090. <var>ReadAnsiString</var> reads an ansistring from the stream
  4091. and returns its value. This is a utility function which simply calls the
  4092. read function several times.
  4093. The Ansistring should be stored as 4 bytes (a DWord) representing the length
  4094. of the string, and then the string value itself.
  4095. The <link id="TStream.WriteAnsiString">WriteAnsiString</link> function
  4096. writes an ansistring in such a format.
  4097. </descr>
  4098. <errors>
  4099. If the AnsiString cannot be read, a <link id="EStreamError"/> exception will be
  4100. raised.
  4101. </errors>
  4102. <seealso>
  4103. <link id="TStream.Read"/>
  4104. <link id="TStream.WriteAnsiString"/>
  4105. <link id="TStream.ReadByte"/>
  4106. <link id="TStream.ReadWord"/>
  4107. <link id="TStream.ReadDWord"/>
  4108. </seealso>
  4109. </element>
  4110. <element name="TStream.WriteByte"> <!-- Procedure -->
  4111. <short>Write a byte to the stream.</short>
  4112. <descr>
  4113. <var>WriteByte</var> writes the byte <var>B</var> to the stream. This is a
  4114. utility function which simply calls the <link
  4115. id="TStream.Write">Write</link> function.
  4116. The byte can be read from the stream using the <link
  4117. id="TStream.ReadByte">ReadByte</link> function.
  4118. </descr>
  4119. <errors>
  4120. If an error occurs when attempting to write, an <link id="EStreamError"/> exception will be raised.
  4121. </errors>
  4122. <seealso>
  4123. <link id="TStream.Write"/>
  4124. <link id="TStream.ReadByte"/>
  4125. <link id="TStream.WriteWord"/>
  4126. <link id="TStream.WriteDWord"/>
  4127. <link id="TStream.WriteAnsiString"/>
  4128. </seealso>
  4129. </element>
  4130. <element name="TStream.WriteWord"> <!-- Procedure -->
  4131. <short>Write a word to the stream.</short>
  4132. <descr>
  4133. <var>WriteWord</var> writes the word <var>W</var> (i.e. 2 bytes) to the stream. This is a
  4134. utility function which simply calls the <link
  4135. id="TStream.Write">Write</link> function.
  4136. The word can be read from the stream using the <link
  4137. id="TStream.ReadWord">ReadWord</link> function.
  4138. </descr>
  4139. <errors>
  4140. If an error occurs when attempting to write, an <link id="EStreamError"/> exception will be raised.
  4141. </errors>
  4142. <seealso>
  4143. <link id="TStream.Write"/>
  4144. <link id="TStream.ReadWord"/>
  4145. <link id="TStream.WriteByte"/>
  4146. <link id="TStream.WriteDWord"/>
  4147. <link id="TStream.WriteAnsiString"/>
  4148. </seealso>
  4149. </element>
  4150. <element name="TStream.WriteDWord"> <!-- Procedure -->
  4151. <short>Write a DWord to the stream.</short>
  4152. <descr>
  4153. <var>WriteDWord</var> writes the DWord <var>D</var> (i.e. 4 bytes) to the stream. This is a
  4154. utility function which simply calls the <link
  4155. id="TStream.Write">Write</link> function.
  4156. The DWord can be read from the stream using the <link
  4157. id="TStream.ReadDWord">ReadDWord</link> function.
  4158. </descr>
  4159. <errors>
  4160. If an error occurs when attempting to write, an <link id="EStreamError"/> exception will be raised.
  4161. </errors>
  4162. <seealso>
  4163. <link id="TStream.Write"/>
  4164. <link id="TStream.ReadDWord"/>
  4165. <link id="TStream.WriteByte"/>
  4166. <link id="TStream.WriteWord"/>
  4167. <link id="TStream.WriteAnsiString"/>
  4168. </seealso>
  4169. </element>
  4170. <element name="TStream.WriteAnsiString"> <!-- Procedure -->
  4171. <short>Write an ansistring to the stream.</short>
  4172. <descr>
  4173. <var>WriteAnsiString</var> writes the AnsiString <var>S</var> (i.e. 4 bytes) to the stream. This is a
  4174. utility function which simply calls the <link
  4175. id="TStream.Write">Write</link> function.
  4176. The ansistring is written as a 4 byte length specifier, followed by the
  4177. ansistring's content.
  4178. The ansistring can be read from the stream using the <link
  4179. id="TStream.ReadAnsiString">ReadAnsiString</link> function.
  4180. </descr>
  4181. <errors>
  4182. If an error occurs when attempting to write, an <link id="EStreamError"/> exception will be raised.
  4183. </errors>
  4184. <seealso>
  4185. <link id="TStream.Write"/>
  4186. <link id="TStream.ReadAnsiString"/>
  4187. <link id="TStream.WriteByte"/>
  4188. <link id="TStream.WriteWord"/>
  4189. <link id="TStream.WriteDWord"/>
  4190. </seealso>
  4191. </element>
  4192. <element name="TStream.Position"> <!-- Property -->
  4193. <short>The current position in the stream.</short>
  4194. <descr>
  4195. <p>
  4196. <var>Position</var> can be read to determine the current position in the
  4197. stream. It can be written to to set the (absolute) position in the stream.
  4198. The position is zero-based, so to set the position at the beginning of the
  4199. stream, the position must be set to zero.
  4200. </p>
  4201. <remark>
  4202. Not all <var>TStream</var> descendants support setting the position in the
  4203. stream, so this should be used with care.
  4204. </remark>
  4205. </descr>
  4206. <errors>
  4207. Some descendents may raise an <link id="EStreamError"/> exception if they
  4208. do not support setting the stream position.
  4209. </errors>
  4210. <seealso>
  4211. <link id="TStream.Size"/>
  4212. <link id="TStream.Seek"/>
  4213. </seealso>
  4214. </element>
  4215. <element name="TStream.Size"> <!-- Property -->
  4216. <short>The current size of the stream.</short>
  4217. <descr>
  4218. <p>
  4219. <var>Size</var> can be read to determine the stream size or to set the
  4220. stream size.
  4221. </p>
  4222. <remark>
  4223. Not all descendents of <var>TStream</var> support getting or setting the
  4224. stream size; they may raise an exception if the <var>Size</var> property
  4225. is read or set.
  4226. </remark>
  4227. </descr>
  4228. <seealso>
  4229. <link id="TStream.Position"/>
  4230. <link id="TStream.Seek"/>
  4231. </seealso>
  4232. </element>
  4233. <!--
  4234. *********************************************************************
  4235. THandleStream
  4236. *********************************************************************
  4237. -->
  4238. <element name="THandleStream"> <!-- Class -->
  4239. <short>Base clas for streams that are identified by an OS handle.</short>
  4240. <descr>
  4241. <p>
  4242. <var>THandleStream</var> is an abstract descendent of the <link
  4243. id="TStream"/>
  4244. class that provides methods for a stream to handle all reading and writing
  4245. to and from a handle, provided by the underlying OS. To this end, it
  4246. overrides the <link id="THandleStream.Read">Read</link> and <link
  4247. id="THandleStream.Write">Write</link> methods of TStream.
  4248. </p>
  4249. <remark>
  4250. <ul>
  4251. <li>
  4252. <var>ThandleStream</var> does not obtain a handle from the OS by itself,
  4253. it just handles reading and writing to such a handle by wrapping the system
  4254. calls for reading and writing;
  4255. Descendent classes should obtain a handle from the OS by themselves and pass it on in the inherited
  4256. constructor.</li>
  4257. <li>
  4258. Contrary to Delphi, no seek is implemented for <var>THandleStream</var>,
  4259. since pipes and sockets do not support this. The seek is implemented in
  4260. descendent methods that support it.
  4261. </li>
  4262. </ul>
  4263. </remark>
  4264. </descr>
  4265. <seealso>
  4266. <link id="TStream"/>
  4267. <link id="TFileStream"/>
  4268. </seealso>
  4269. </element>
  4270. <element name="THandleStream.Create"> <!-- Constructor -->
  4271. <short>Create a handlestream from an OS Handle.</short>
  4272. <descr>
  4273. <var>Create</var> creates a new instance of a <var>THandleStream</var>
  4274. class. It stores <var>AHandle</var> in an internal variable and
  4275. then calls the inherited constructor.
  4276. </descr>
  4277. <seealso>
  4278. <link id="TStream"/>
  4279. </seealso>
  4280. </element>
  4281. <element name="THandleStream.Read"> <!-- Function -->
  4282. <short>Overrides standard read method.</short>
  4283. <descr>
  4284. <p>
  4285. <var>Read</var> implements the abstract <link id="TStream.Read">Read</link>
  4286. method of <var>TStream</var>. It uses the <link
  4287. id="THandleStream.Handle">Handle</link> property to read the
  4288. <var>Count</var> bytes into <var>Buffer</var>
  4289. </p>
  4290. <p>
  4291. If no error occurs while reading, the number of bytes actually read will be
  4292. returned.
  4293. </p>
  4294. </descr>
  4295. <errors>
  4296. If the operating system reports an error while reading from the handle, -1
  4297. is returned.
  4298. </errors>
  4299. <seealso>
  4300. <link id="TStream.Read"/>
  4301. <link id="THandleStream.Write"/>
  4302. <link id="THandleStream.Handle"/>
  4303. </seealso>
  4304. </element>
  4305. <element name="THandleStream.Write"> <!-- Function -->
  4306. <short>Overrides standard write method.</short>
  4307. <descr>
  4308. <p>
  4309. <var>Write</var> implements the abstract <link id="TStream.Write">Write</link>
  4310. method of <var>TStream</var>. It uses the <link
  4311. id="THandleStream.Handle">Handle</link> property to write the
  4312. <var>Count</var> bytes from <var>Buffer</var>.
  4313. </p>
  4314. <p>
  4315. If no error occurs while writing, the number of bytes actually written will be
  4316. returned.
  4317. </p>
  4318. </descr>
  4319. <errors>
  4320. If the operating system reports an error while writing to handle, -1
  4321. is returned.
  4322. </errors>
  4323. <seealso>
  4324. <link id="TStream.Read"/>
  4325. <link id="THandleStream.Write"/>
  4326. <link id="THandleStream.Handle"/>
  4327. </seealso>
  4328. </element>
  4329. <element name="THandleStream.Handle"> <!-- Property -->
  4330. <short>The OS handle of the stream.</short>
  4331. <descr>
  4332. <var>Handle</var> represents the Operating system handle to which reading
  4333. and writing is done. The handle can be read only, i.e. it cannot be set
  4334. after the <var>THandlestream</var> instance was created. It should be
  4335. passed to the constructor <link id="THandleStream.Create"/>
  4336. </descr>
  4337. <seealso>
  4338. <link id="THandleStream"/>
  4339. <link id="THandleStream.Create"/>
  4340. </seealso>
  4341. </element>
  4342. <!--
  4343. *********************************************************************
  4344. TFileStream
  4345. *********************************************************************
  4346. -->
  4347. <element name="TFileStream"> <!-- Class -->
  4348. <short>Stream that stores its data in a named file on disk.</short>
  4349. <descr>
  4350. <p>
  4351. <var>TFileStream</var> is a <link id="TStream"/> descdendent that
  4352. stores or reads it's data from a named file in the filesystem of
  4353. the operating system.
  4354. </p>
  4355. <p>
  4356. To this end, it overrides some of the abstract methods in <var>TStream</var>
  4357. and implements them for the case of files on disk, and it adds the <link
  4358. id="TFileStream.Filename">FileName</link> property to the list of public
  4359. properties.
  4360. </p>
  4361. </descr>
  4362. <seealso>
  4363. <link id="TFileStream.Create"/>
  4364. <link id="TStream"/>
  4365. </seealso>
  4366. </element>
  4367. <element name="TFileStream.SetSize"> <!-- Procedure -->
  4368. <short>Sets the size of the file stream.</short>
  4369. <descr>
  4370. <p>
  4371. <var>SetSize</var> sets the size of the file at <var>NewSize</var> bytes.
  4372. Errors returned by the operating system call will be silently ignored.
  4373. </p>
  4374. <p>
  4375. This is the protected write method of the public <link id="TStream.Size"/>
  4376. property.
  4377. </p>
  4378. </descr>
  4379. <seealso>
  4380. <link id="TStream.Size"/>
  4381. </seealso>
  4382. </element>
  4383. <element name="TFileStream.Create"> <!-- Constructor -->
  4384. <short>Creates a file stream.</short>
  4385. <descr>
  4386. <p>
  4387. <var>Create</var> creates a new instance of a <var>TFileStream</var> class.
  4388. It opens the file <var>AFileName</var> with mode <var>Mode</var>, which can
  4389. have one of the following values:
  4390. </p>
  4391. <table>
  4392. <tr>
  4393. <td>fmCreate</td><td><printshort id="fmCreate"/></td>
  4394. </tr>
  4395. <tr>
  4396. <td>fmOpenRead</td><td><printshort id="fmOpenRead"/></td>
  4397. </tr>
  4398. <tr>
  4399. <td>fmOpenWrite</td><td><printshort id="fmOpenWrite"/></td>
  4400. </tr>
  4401. <tr>
  4402. <td>fmOpenReadWrite</td><td><printshort id="fmOpenReadWrite"/></td>
  4403. </tr>
  4404. </table>
  4405. <p>
  4406. After the file has been opened in the requested mode and a handle has been
  4407. obtained from the operating system, the inherited constructor is called.
  4408. </p>
  4409. </descr>
  4410. <errors>
  4411. If the file could not be opened in the requested mode, an <link
  4412. id="EFOpenError"/> exception is raised.
  4413. </errors>
  4414. <seealso>
  4415. <link id="TStream"/>
  4416. <link id="TFileStream.FileName"/>
  4417. <link id="THandleStream.Create"/>
  4418. </seealso>
  4419. </element>
  4420. <element name="TFileStream.Destroy"> <!-- Destructor -->
  4421. <short>Destroys the file stream.</short>
  4422. <descr>
  4423. <p>
  4424. <var>Destroy</var> closes the file (causing possible buffered data to be
  4425. written to disk) and then calls the inherited destructor.
  4426. </p>
  4427. <p>
  4428. Do not call <var>destroy</var> directly, instead call the <var>Free</var>
  4429. method. Destroy does not check whether <var>Self</var> is nil, while
  4430. <var>Free</var> does.
  4431. </p>
  4432. </descr>
  4433. <seealso>
  4434. <link id="TFileStream.Create"/>
  4435. </seealso>
  4436. </element>
  4437. <element name="TFileStream.Seek"> <!-- Function -->
  4438. <short>Overrides the standard method.</short>
  4439. <descr>
  4440. <p>
  4441. <var>Seek</var> attempts to set the position of the stream at
  4442. <var>Offset</var> bytes from <var>Origin</var>. <var>Offset</var> can have
  4443. any integer value which would set the position within the boundaries of the
  4444. file, and thus the valid range depends on the value of <var>Origin</var>.
  4445. <var>Origin</var> can have one of the following values:
  4446. </p>
  4447. <table>
  4448. <tr>
  4449. <td>soFromBeginning</td><td><printshort id="soFromBeginning"/></td>
  4450. </tr>
  4451. <tr>
  4452. <td>soFromCurrent</td><td><printshort id="soFromCurrent"/></td>
  4453. </tr>
  4454. <tr>
  4455. <td>soFromEnd</td><td><printshort id="soFromEnd"/></td>
  4456. </tr>
  4457. </table>
  4458. <p>
  4459. <var>Seek</var> returns the new position in the file, or -1 on error.
  4460. </p>
  4461. </descr>
  4462. <errors>
  4463. On error, -1 is returned, and the position is not changed.
  4464. </errors>
  4465. <seealso>
  4466. <link id="TStream.Position"/>
  4467. <link id="TStream.Size"/>
  4468. </seealso>
  4469. </element>
  4470. <element name="TFileStream.FileName"> <!-- Property -->
  4471. <short>The filename of the stream.</short>
  4472. <descr>
  4473. <var>FileName</var> is the name of the file that the stream reads from or writes
  4474. to. It is the name as passed in the constructor of the stream; it cannot be
  4475. changed. To write to another file, the stream must be freed and created
  4476. again with the new filename.
  4477. </descr>
  4478. <seealso>
  4479. <link id="TFileStream.Create"/>
  4480. </seealso>
  4481. </element>
  4482. <!--
  4483. *********************************************************************
  4484. TCustomMemoryStream
  4485. *********************************************************************
  4486. -->
  4487. <element name="TCustomMemoryStream"> <!-- Class -->
  4488. <short>Abstract stream that stores its data in memory.</short>
  4489. <descr>
  4490. <p>
  4491. <var>TCustomMemoryStream</var> is the parent class for streams that stored
  4492. their data in memory. It introduces all needed functions to handle reading
  4493. from and navigating through the memory, and introduces a
  4494. <link id="TCustomMemoryStream.Memory">Memory</link> property which points to
  4495. the memory area where the stream data is kept.
  4496. </p>
  4497. <p>
  4498. The only thing which <var>TCustomMemoryStream</var> does not do is obtain
  4499. memory to store data when writing data or the writing of data. This
  4500. functionality is implemented in descendent streams such as <link
  4501. id='TMemoryStream'/>. The reason for this approach is that this way it is
  4502. possible to create e.g. read-only descendents of
  4503. <var>TCustomMemoryStream</var> that point to a fixed part in memory which
  4504. can be read from, but not written to.
  4505. </p>
  4506. <remark>
  4507. Since <var>TCustomMemoryStream</var> is an abstract class, do not create
  4508. instances of <var>TMemoryStream</var> directly. Instead,
  4509. create instances of descendents such as <link id="TMemoryStream"/>.
  4510. </remark>
  4511. </descr>
  4512. <seealso>
  4513. <link id="TMemoryStream"/>
  4514. <link id="TStream"/>
  4515. </seealso>
  4516. </element>
  4517. <element name="TCustomMemoryStream.SetPointer"> <!-- Procedure -->
  4518. <short>Sets the internal memory pointer and size of the memory block.</short>
  4519. <descr>
  4520. <p>
  4521. <var>SetPointer</var> updates the internal memory pointer and the size of
  4522. the memory area pointed to.
  4523. </p>
  4524. <p>
  4525. Descendent memory streams should call this method whenever they set or reset
  4526. the memory the stream should read from or write to.
  4527. </p>
  4528. </descr>
  4529. <seealso>
  4530. <link id="TCustomMemoryStream.Memory"/>
  4531. <link id="TStream.Size"/>
  4532. </seealso>
  4533. </element>
  4534. <element name="TCustomMemoryStream.Read"> <!-- Function -->
  4535. <short>Reads <var>Count</var> bytes from the stream into <var>buffer</var>.</short>
  4536. <descr>
  4537. <p>
  4538. <var>Read</var> reads <var>Count</var> bytes from the stream into the memory
  4539. pointed to by <var>buffer</var>. It returns the number of bytes actually
  4540. read.
  4541. </p>
  4542. <p>
  4543. This method overrides the abstract <link id="TStream.Read"/> method of <link
  4544. id="TStream"/>. It will read as much bytes as are still available in the
  4545. memory area pointer to by <link id="TCustomMemoryStream.Memory">Memory</link>.
  4546. After the bytes are read, the internal stream position is updated.
  4547. </p>
  4548. </descr>
  4549. <seealso>
  4550. <link id="TCustomMemoryStream.Memory"/>
  4551. <link id="TStream.Read"/>
  4552. </seealso>
  4553. </element>
  4554. <element name="TCustomMemoryStream.Seek"> <!-- Function -->
  4555. <short>Sets a new position in the stream.</short>
  4556. <descr>
  4557. <var>Seek</var> overrides the abstract <link id="TStream.Seek"/> method.
  4558. It simply updates the internal stream position, and returns the new
  4559. position.
  4560. </descr>
  4561. <errors>
  4562. No checking is done whether the new position is still a valid position, i.e.
  4563. whether the position is still within the range <var>0..Size</var>.
  4564. Attempting a seek outside the valid memory range of the stream may result in
  4565. an exception at the next read or write operation.
  4566. </errors>
  4567. <seealso>
  4568. <link id="TStream.Position"/>
  4569. <link id="TStream.Size"/>
  4570. <link id="TCustomMemoryStream.Memory"/>
  4571. </seealso>
  4572. </element>
  4573. <element name="TCustomMemoryStream.SaveToStream"> <!-- Procedure -->
  4574. <short>Writes the contents of the memory stream to another stream.</short>
  4575. <descr>
  4576. <p>
  4577. <var>SaveToStream</var> writes the contents of the memory stream to
  4578. <var>Stream</var>. The content of <var>Stream</var> is not cleared first.
  4579. The current position of the memory stream is not changed by this action.
  4580. </p>
  4581. <remark>
  4582. <p>
  4583. This method will work much faster than the use of the
  4584. <link id="TStream.CopyFrom"/> method:
  4585. </p>
  4586. <code>
  4587. Seek(0,soFromBeginning);
  4588. Stream.CopyFrom(Self,Size);
  4589. </code>
  4590. <p>
  4591. because the <var>CopyFrom</var> method copies the contents in blocks, while
  4592. <var>SaveToStream</var> writes the contents of the memory as one big block.
  4593. </p>
  4594. </remark>
  4595. </descr>
  4596. <errors>
  4597. If an error occurs when writing to <var>Stream</var> an <link
  4598. id="EStreamError"/> exception will be raised.
  4599. </errors>
  4600. <seealso>
  4601. <link id="TCustomMemoryStream.SaveToFile"/>
  4602. <link id="TStream.CopyFrom"/>
  4603. </seealso>
  4604. </element>
  4605. <element name="TCustomMemoryStream.SaveToFile"> <!-- Procedure -->
  4606. <short>Writes the contents of the stream to a file.</short>
  4607. <descr>
  4608. <p>
  4609. <var>SaveToFile</var> writes the contents of the stream to a file with name
  4610. <var>FileName</var>.
  4611. It simply creates a filestream and writes the contents of the memorystream
  4612. to this file stream using <link id="TCustomMemoryStream.SaveToStream"/>.
  4613. </p>
  4614. <remark>
  4615. <p>
  4616. This method will work much faster than the use of the <link
  4617. id="TStream.CopyFrom"/> method:
  4618. </p>
  4619. <code>
  4620. Stream:=TFileStream.Create(fmCreate,FileName);
  4621. Seek(0,soFromBeginning);
  4622. Stream.CopyFrom(Self,Size);
  4623. </code>
  4624. <p>
  4625. because the <var>CopyFrom</var> method copies the contents in blocks, while
  4626. <var>SaveToFile</var> writes the contents of the memory as one big block.
  4627. </p>
  4628. </remark>
  4629. </descr>
  4630. <errors>
  4631. If an error occurs when creating or writing to the file, an <link
  4632. id="EStreamError"/> exception may occur.
  4633. </errors>
  4634. <seealso>
  4635. <link id="TCustomMemoryStream.SaveToStream"/>
  4636. <link id="TFileStream"/>
  4637. <link id="TStream.CopyFrom"/>
  4638. </seealso>
  4639. </element>
  4640. <element name="TCustomMemoryStream.Memory"> <!-- Property -->
  4641. <short>Pointer to the data kept in the memory stream.</short>
  4642. <descr>
  4643. <p>
  4644. <var>Memory</var> points to the memory area where stream keeps it's data.
  4645. The property is read-only, so the pointer cannot be set this way.
  4646. </p>
  4647. <remark>
  4648. Do not write to the memory pointed to by <var>Memory</var>, since the memory
  4649. content may be read-only, and thus writing to it may cause errors.
  4650. </remark>
  4651. </descr>
  4652. <seealso>
  4653. <link id="TStream.Size"/>
  4654. </seealso>
  4655. </element>
  4656. <!--
  4657. *********************************************************************
  4658. TMemoryStream
  4659. *********************************************************************
  4660. -->
  4661. <element name="TMemoryStream"> <!-- Class -->
  4662. <short>Standard implementation of a stream that stores its data in memory</short>
  4663. <descr>
  4664. <p>
  4665. <var>TMemoryStream</var> is a <link id="TStream"/> descendent that stores
  4666. it's data in memory. It descends directly from <link id="TCustomMemoryStream"/>
  4667. and implements the necessary to allocate and de-allocate memory diretly from
  4668. the heap. It implements the <link id="TMemoryStream.Write">Write</link> method
  4669. which is missing in <var>TCustomMemoryStream</var>.
  4670. </p>
  4671. <p>
  4672. <var>TMemoryStream</var> also introduces methods to load the contents of
  4673. another stream or a file into the memory stream.
  4674. </p>
  4675. <p>
  4676. It is not necessary to do any memory management manually, as the stream
  4677. will allocate or de-allocate memory as needed. When the stream is freed, all
  4678. allocated memory will be freed as well.
  4679. </p>
  4680. </descr>
  4681. <seealso>
  4682. <link id="TCustomMemoryStream"/>
  4683. <link id="TStream"/>
  4684. </seealso>
  4685. </element>
  4686. <element name="TMemoryStream.Realloc"> <!-- Function -->
  4687. <short>Sets the new capacity for the memory stream</short>
  4688. <descr>
  4689. <p>
  4690. <var>SetCapacity</var> sets the capacity of the memory stream, i.e.
  4691. does the actual allocation or de-allocation of memory for the stream. It
  4692. allocates at least <var>NewCapacity</var> bytes on the heap, moves the
  4693. current contents of the stream to this location (as much as fits in) and
  4694. returns the new memory location.
  4695. Extra allocated memory is not initialized, i.e. may contain garbage.
  4696. </p>
  4697. <p>
  4698. Memory is allocated in blocks of 4 Kb; this can be changed by overriding
  4699. the method.
  4700. </p>
  4701. </descr>
  4702. <seealso>
  4703. <link id="TMemoryStream.Capacity"/>
  4704. </seealso>
  4705. </element>
  4706. <element name="TMemoryStream.Capacity"> <!-- Property -->
  4707. <short>Current capacity of the stream.</short>
  4708. <descr>
  4709. <p>
  4710. <var>Capacity</var> is the current capacity of the stream, this is the
  4711. current size of the memory allocated to the stream. This is not necessarily
  4712. equal to the size of the stream, but will always be larger than or equal to
  4713. the size of the stream. When writing to the stream, the <link
  4714. id="TMemoryStream.Write"/> sets the capacity to the needed value.
  4715. </p>
  4716. <p>
  4717. If a lot of write operations will occur, performance may be improved by
  4718. setting the capacity to a large value, so less reallocations of memory will
  4719. occur while writing to the stream.
  4720. </p>
  4721. </descr>
  4722. <seealso>
  4723. <link id="TMemoryStream.ReAlloc"/>
  4724. </seealso>
  4725. </element>
  4726. <element name="TMemoryStream.Destroy"> <!-- Destructor -->
  4727. <short>Frees any allocated memory and destroys the memory stream.</short>
  4728. <descr>
  4729. <var>Free</var> clears the memory stream, thus in effect freeing any memory
  4730. allocated for it, and then frees the memory stream.
  4731. </descr>
  4732. </element>
  4733. <element name="TMemoryStream.Clear"> <!-- Procedure -->
  4734. <short>Zeroes the position, capacity and size of the stream.</short>
  4735. <descr>
  4736. <var>Clear</var> sets the position and size to 0, and sets the capacity of
  4737. the stream to 0, thus freeing all memory allocated for the stream.
  4738. </descr>
  4739. <seealso>
  4740. <link id="TStream.Size"/>
  4741. <link id="TStream.Position"/>
  4742. <link id="TCustomMemoryStream.Memory"/>
  4743. </seealso>
  4744. </element>
  4745. <element name="TMemoryStream.LoadFromStream"> <!-- Procedure -->
  4746. <short>Loads the contents of a stream into memory.</short>
  4747. <descr>
  4748. <p>
  4749. <var>LoadFromStream</var> loads the contents of <var>Stream</var> into
  4750. the memorybuffer of the stream. Any previous contents of the memory
  4751. stream are overwritten. Memory is allocated as needed.
  4752. </p>
  4753. <remark>
  4754. <p>
  4755. The <var>LoadFromStream</var> uses the <link id="TStream.Size">Size</link>
  4756. property of <var>Stream</var> to determine how much memory must be
  4757. allocated. Some streams do not allow the stream size to be determined, so
  4758. care must be taken when using this method.
  4759. </p>
  4760. <p>
  4761. This method will work much faster than the use of the <link
  4762. id="TStream.CopyFrom"/> method:
  4763. </p>
  4764. <code>
  4765. Seek(0,soFromBeginning);
  4766. CopyFrom(Stream,Stream.Size);
  4767. </code>
  4768. <p>
  4769. because the <var>CopyFrom</var> method copies the contents in blocks, while
  4770. <var>LoadFromStream</var> reads the contents of the stream as one big block.
  4771. </p>
  4772. </remark>
  4773. </descr>
  4774. <errors>
  4775. If an error occurs when reading from the stream, an <link
  4776. id="EStreamError"/> may occur.
  4777. </errors>
  4778. <seealso>
  4779. <link id="TStream.CopyFrom"/>
  4780. <link id="TMemoryStream.LoadFromFile"/>
  4781. </seealso>
  4782. </element>
  4783. <element name="TMemoryStream.LoadFromFile"> <!-- Procedure -->
  4784. <short>Loads the contents of a file into memory.</short>
  4785. <descr>
  4786. <p>
  4787. <var>LoadFromFile</var> loads the contents of the file with name
  4788. <var>FileName</var> into the memory stream. The current contents of the
  4789. memory stream is replaced by the contents of the file. Memory is allocated
  4790. as needed.
  4791. </p>
  4792. <p>
  4793. The <var>LoadFromFile</var> method simply creates a filestream and then
  4794. calls the <link id="TMemoryStream.LoadFromStream"/> method.
  4795. </p>
  4796. </descr>
  4797. If an error occurs when creating or reading from the stream, an <link
  4798. id="EStreamError"/> may occur.
  4799. <seealso>
  4800. <link id="TMemoryStream.LoadFromStream"/>
  4801. </seealso>
  4802. </element>
  4803. <element name="TMemoryStream.SetSize"> <!-- Procedure -->
  4804. <short>Sets the size for the memory stream.</short>
  4805. <descr>
  4806. <var>SetSize</var> sets the size of the memory stream to <var>NewSize</var>.
  4807. This will set the capacity of the stream to <var>NewSize</var> and correct
  4808. the current position in the stream when needed.
  4809. </descr>
  4810. <seealso>
  4811. <link id="TStream.Position"/>
  4812. <link id="TStream.Size"/>
  4813. </seealso>
  4814. </element>
  4815. <element name="TMemoryStream.Write"> <!-- Function -->
  4816. <short>Writes data to the stream's memory.</short>
  4817. <descr>
  4818. <p>
  4819. <var>Write</var> writes <var>Count</var> bytes from <var>Buffer</var>
  4820. to the stream's memory, starting at the current position in the stream.
  4821. If more memory is needed than currently allocated, more memory will be
  4822. allocated. Any contents in the memory stream at the current position will be
  4823. overwritten. The function returns the number of bytes actually written
  4824. (which should under normal circumstances always equal <var>Count</var>).
  4825. </p>
  4826. <p>
  4827. This method overrides the abstract <link id="TStream.Write"/> method.
  4828. </p>
  4829. </descr>
  4830. <errors>
  4831. If no more memory could be allocated, then an exception will be raised.
  4832. </errors>
  4833. <seealso>
  4834. <link id="TCustomMemoryStream.Read"/>
  4835. </seealso>
  4836. </element>
  4837. <!--
  4838. *********************************************************************
  4839. TStringStream
  4840. *********************************************************************
  4841. -->
  4842. <element name="TStringStream"> <!-- Class -->
  4843. <short>Stream that stores its data in a string.</short>
  4844. <descr>
  4845. <p>
  4846. <var>TStringStream</var> stores its data in an ansistring. The contents of
  4847. this string is available as the
  4848. <link id="TStringStream.DataString">DataString</link> property. It also
  4849. introduces some methods to read or write parts of the stringstream's data
  4850. as a string.
  4851. </p>
  4852. <p>The main purpose of a <var>TStringSTream</var> is to be able to treat a
  4853. string as a stream from which can be read.
  4854. </p>
  4855. </descr>
  4856. <seealso>
  4857. <link id="TStream"/>
  4858. <link id="TStringStream.DataString"/>
  4859. <link id="TStringStream.ReadString"/>
  4860. <link id="TStringStream.WriteString"/>
  4861. </seealso>
  4862. </element>
  4863. <element name="TStringStream.SetSize"> <!-- Procedure -->
  4864. <short>Sets the size of the stream.</short>
  4865. <descr>
  4866. <var>SetSize</var> sets the size of the stream to <var>newsize</var>.
  4867. It does this by setting the size of the ansisting in which the stream
  4868. is stored. <var>NewSize</var> can have any value greater than or equal to
  4869. zero.
  4870. </descr>
  4871. <errors>
  4872. In case there is not enough memory, an exception may be raised.
  4873. </errors>
  4874. <seealso>
  4875. <link id="TStream.Size"/>
  4876. </seealso>
  4877. </element>
  4878. <element name="TStringStream.Create"> <!-- Constructor -->
  4879. <short>Creates a new stringstream and sets its initial content.</short>
  4880. <descr>
  4881. <var>Create</var> creates a new <var>TStringStream</var> instance and
  4882. sets its initial content to <var>Astring</var>. The position is still 0 but
  4883. the size of the stream will equal the length of the string.
  4884. </descr>
  4885. <seealso>
  4886. <link id="TStringStream.DataString"/>
  4887. </seealso>
  4888. </element>
  4889. <element name="TStringStream.Read"> <!-- Function -->
  4890. <short>Reads from the stream.</short>
  4891. <descr>
  4892. <var>Read</var> implements the abstract <link id="TStream.Read">Read</link>
  4893. from <link id="TStream"/>. It tries to read <var>Count</var> bytes into
  4894. <var>Buffer</var>. It returns the number of bytes actually read. The
  4895. position of the stream is advanced with the number of bytes actually read;
  4896. When the reading has reached the end of the <link
  4897. id="TStringSTream.DataString">DataString</link>, then the reading stops,
  4898. i.e. it is not possible to read beyond the end of the datastring.
  4899. </descr>
  4900. <seealso>
  4901. <link id="TStream.Read"/>
  4902. <link id="TStringStream.Write"/>
  4903. <link id="TStringStream.DataString"/>
  4904. </seealso>
  4905. </element>
  4906. <element name="TStringStream.ReadString"> <!-- Function -->
  4907. <short>Reads a string of length <var>Count</var></short>
  4908. <descr>
  4909. <p>
  4910. <var>ReadString</var> reads <var>Count</var> bytes from the stream and
  4911. returns the read bytes as a string. If less than <var>Count</var> bytes
  4912. were available, the string has as many characters as bytes could be read.
  4913. </p>
  4914. <p>The <var>ReadString</var> method is a wrapper around the <link
  4915. id="TStringStream.Read">Read</link> method. It does not do the same stringas
  4916. the <link id="TStream.ReadAnsiString"/> method, which first reads a length
  4917. integer to determine the length of the string to be read.
  4918. </p>
  4919. </descr>
  4920. <seealso>
  4921. <link id="TStringStream.Read"/>
  4922. <link id="TStream.ReadAnsiString"/>
  4923. </seealso>
  4924. </element>
  4925. <element name="TStringStream.Seek"> <!-- Function -->
  4926. <short>Sets the position in the stream.</short>
  4927. <descr>
  4928. <var>Seek</var> implements the abstract <link id="TStream.Seek">Seek</link>
  4929. method.
  4930. </descr>
  4931. <seealso>
  4932. </seealso>
  4933. </element>
  4934. <element name="TStringStream.Write"> <!-- Function -->
  4935. <short><var>Write</var> implements the abstract <link id="TStream.Write"/>
  4936. method.</short>
  4937. <descr>
  4938. </descr>
  4939. <seealso>
  4940. </seealso>
  4941. </element>
  4942. <element name="TStringStream.WriteString"> <!-- Procedure -->
  4943. <short><var>WriteString</var> writes a string to the stream.</short>
  4944. <descr>
  4945. </descr>
  4946. <seealso>
  4947. </seealso>
  4948. </element>
  4949. <element name="TStringStream.DataString"> <!-- Property -->
  4950. <short>Contains the contents of the stream in string form</short>
  4951. <descr>
  4952. </descr>
  4953. <seealso>
  4954. </seealso>
  4955. </element>
  4956. <!--
  4957. *********************************************************************
  4958. TResourceStream
  4959. *********************************************************************
  4960. -->
  4961. <element name="TResourceStream"> <!-- Class -->
  4962. <short>Stream that reads its data from a resource object.</short>
  4963. <descr>
  4964. </descr>
  4965. <seealso>
  4966. </seealso>
  4967. </element>
  4968. <element name="TResourceStream.Initialize"> <!-- Procedure -->
  4969. <short>Initializes the resource stream.</short>
  4970. <descr>
  4971. </descr>
  4972. <seealso>
  4973. </seealso>
  4974. </element>
  4975. <element name="TResourceStream.Create"> <!-- Constructor -->
  4976. <short>Creates a new instance of a resource stream.</short>
  4977. <descr>
  4978. </descr>
  4979. <seealso>
  4980. </seealso>
  4981. </element>
  4982. <element name="TResourceStream.CreateFromID"> <!-- Constructor -->
  4983. <short>Creates a new instance of a resource stream with resource</short>
  4984. <descr>
  4985. </descr>
  4986. <seealso>
  4987. </seealso>
  4988. </element>
  4989. <element name="TResourceStream.Destroy"> <!-- Destructor -->
  4990. <short>Destroys the instance of the resource stream.</short>
  4991. <descr>
  4992. </descr>
  4993. <seealso>
  4994. </seealso>
  4995. </element>
  4996. <element name="TResourceStream.Write"> <!-- Function -->
  4997. <short><var>Write</var> implements the abstract <link id="TStream.Write"/>
  4998. method.</short>
  4999. <descr>
  5000. </descr>
  5001. <seealso>
  5002. </seealso>
  5003. </element>
  5004. <element name="TValueType"> <!-- Enumeration type -->
  5005. <short>Enumerated type used to identify the kind of streamed property</short>
  5006. <descr>
  5007. </descr>
  5008. <seealso>
  5009. </seealso>
  5010. </element>
  5011. <element name="TValueType.vaNull"> <!-- Enumeration value -->
  5012. <short>Empty value. Ends a list.</short>
  5013. </element>
  5014. <element name="TValueType.vaList"> <!-- Enumeration value -->
  5015. <short>Identifies the start of a list of values</short>
  5016. </element>
  5017. <element name="TValueType.vaInt8"> <!-- Enumeration value -->
  5018. <short>Integer value, 8 bits long.</short>
  5019. </element>
  5020. <element name="TValueType.vaInt16"> <!-- Enumeration value -->
  5021. <short>Integer value, 16 bits long.</short>
  5022. </element>
  5023. <element name="TValueType.vaInt32"> <!-- Enumeration value -->
  5024. <short>Integer value, 32 bits long.</short>
  5025. </element>
  5026. <element name="TValueType.vaExtended"> <!-- Enumeration value -->
  5027. <short>Extended value.</short>
  5028. </element>
  5029. <element name="TValueType.vaString"> <!-- Enumeration value -->
  5030. <short>String value.</short>
  5031. </element>
  5032. <element name="TValueType.vaIdent"> <!-- Enumeration value -->
  5033. <short>Identifier.</short>
  5034. </element>
  5035. <element name="TValueType.vaFalse"> <!-- Enumeration value -->
  5036. <short>Boolean <var>False</var> value.</short>
  5037. </element>
  5038. <element name="TValueType.vaTrue"> <!-- Enumeration value -->
  5039. <short>Boolean <var>True</var> value.</short>
  5040. </element>
  5041. <element name="TValueType.vaBinary"> <!-- Enumeration value -->
  5042. <short>Binary data follows.</short>
  5043. </element>
  5044. <element name="TValueType.vaSet"> <!-- Enumeration value -->
  5045. <short>Set data follows.</short>
  5046. </element>
  5047. <element name="TValueType.vaLString"> <!-- Enumeration value -->
  5048. <short>Ansistring data follows.</short>
  5049. </element>
  5050. <element name="TValueType.vaNil"> <!-- Enumeration value -->
  5051. <short>Nil pointer.</short>
  5052. </element>
  5053. <element name="TValueType.vaCollection"> <!-- Enumeration value -->
  5054. <short>Collection follows</short>
  5055. </element>
  5056. <element name="TValueType.vaSingle"> <!-- Enumeration value -->
  5057. <short>Single type follows.</short>
  5058. </element>
  5059. <element name="TValueType.vaCurrency"> <!-- Enumeration value -->
  5060. <short>Currency value follows</short>
  5061. </element>
  5062. <element name="TValueType.vaDate"> <!-- Enumeration value -->
  5063. <short>Date value follows</short>
  5064. </element>
  5065. <element name="TValueType.vaWString"> <!-- Enumeration value -->
  5066. <short>Widestring value follows.</short>
  5067. </element>
  5068. <element name="TValueType.vaInt64"> <!-- Enumeration value -->
  5069. <short>Integer value, 64 bits long.</short>
  5070. </element>
  5071. <element name="TFilerFlag"> <!-- Enumeration type -->
  5072. <short>Flags used by the <link id="TFiler"/> class</short>
  5073. <descr>
  5074. The <var>TFiler</var> class uses this enumeration type to decide whether the
  5075. streamed object was streamed as part of an inherited form or not.
  5076. </descr>
  5077. <seealso>
  5078. <link id="TFiler"/>
  5079. </seealso>
  5080. </element>
  5081. <element name="TFilerFlag.ffInherited"> <!-- Enumeration value -->
  5082. <short>Stored object is an inherited object.</short>
  5083. </element>
  5084. <element name="TFilerFlag.ffChildPos"> <!-- Enumeration value -->
  5085. <short>The position of the child on it's parent is included.</short>
  5086. </element>
  5087. <element name="TFilerFlag.ffInline"> <!-- Enumeration value -->
  5088. <short>Used for frames.</short>
  5089. </element>
  5090. <element name="TFilerFlags"> <!-- Set type -->
  5091. <short>Set of <link id="TFilerFlag"/></short>
  5092. </element>
  5093. <element name="TReaderProc"> <!-- Procedure type -->
  5094. <short>Reader procedure used by <link id="TPersistent.DefineProperties">DefineProperties</link></short>
  5095. <descr>
  5096. The <var>TReaderProc</var> reader procedure is a callback procedure which
  5097. will be used by a <link id="TPersistent"/> descendent to read user
  5098. properties from a stream during the streaming process. The <var>Reader</var>
  5099. argument is the writer object which can be used read properties from the
  5100. stream.
  5101. </descr>
  5102. <seealso>
  5103. <Link id="TPersistent.DefineProperties"/>
  5104. </seealso>
  5105. </element>
  5106. <element name="TWriterProc"> <!-- Procedure type -->
  5107. <short>Writer procedure used by <link id="TPersistent.DefineProperties">DefineProperties</link></short>
  5108. <descr>
  5109. The <var>TWriterProc</var> writer procedure is a callback procedure which
  5110. will be used by a <link id="TPersistent"/> descendent to write user
  5111. properties from a stream during the streaming process. The <var>Writer</var>
  5112. argument is the writer object which can be used write properties to the
  5113. stream.
  5114. </descr>
  5115. <seealso>
  5116. <Link id="TPersistent.DefineProperties"/>
  5117. </seealso>
  5118. </element>
  5119. <element name="TStreamProc"> <!-- Procedure type -->
  5120. <short>Procedure type used in streaming.</short>
  5121. <descr>
  5122. </descr>
  5123. <seealso>
  5124. </seealso>
  5125. </element>
  5126. <!--
  5127. *********************************************************************
  5128. TFiler
  5129. *********************************************************************
  5130. -->
  5131. <element name="TFiler"> <!-- Class -->
  5132. <short>Class responsible for streaming of components.</short>
  5133. <descr>
  5134. </descr>
  5135. <seealso>
  5136. </seealso>
  5137. </element>
  5138. <element name="TFiler.SetRoot"> <!-- Procedure -->
  5139. <short>Sets the root component which is being streamed.</short>
  5140. <descr>
  5141. Sets the root component.
  5142. The root component is the initial component which is being streamed.
  5143. </descr>
  5144. <seealso>
  5145. </seealso>
  5146. </element>
  5147. <element name="TFiler.DefineProperty"> <!-- Procedure -->
  5148. <short></short>
  5149. <descr>
  5150. </descr>
  5151. <seealso>
  5152. </seealso>
  5153. </element>
  5154. <element name="TFiler.DefineBinaryProperty"> <!-- Procedure -->
  5155. <short></short>
  5156. <descr>
  5157. </descr>
  5158. <seealso>
  5159. </seealso>
  5160. </element>
  5161. <element name="TFiler.Root"> <!-- Property -->
  5162. <short>The root component is the initial component which is being streamed.
  5163. </short>
  5164. <descr>
  5165. The streaming process will stream a component and all the components which
  5166. it owns. The <var>Root</var> component is the component which is initially
  5167. streamed.
  5168. </descr>
  5169. <seealso>
  5170. <link id="TFiler.LookupRoot">LookupRoot</link>
  5171. </seealso>
  5172. </element>
  5173. <element name="TFiler.LookupRoot"> <!-- Property -->
  5174. <short>Component used to look up ancestor components.</short>
  5175. <descr>
  5176. When comparing inherited component's values against parent values, the
  5177. values are compared with the component in <var>LookupRoot</var>. Initially,
  5178. it is set to <link id="TFiler.Root">Root</link>.
  5179. </descr>
  5180. <seealso>
  5181. <link id="TFiler.Root">Root</link>
  5182. </seealso>
  5183. </element>
  5184. <element name="TFiler.Ancestor"> <!-- Property -->
  5185. <short>Ancestor component from which an inherited component is streamed.</short>
  5186. <descr>
  5187. When streaming a component, this is the parent component. Only properties
  5188. that differ from the parent's property value will be streamed.
  5189. </descr>
  5190. <seealso>
  5191. <link id="TFiler.Root">Root</link>
  5192. <link id="TFiler.LookupRoot">LookupRoot</link>
  5193. </seealso>
  5194. </element>
  5195. <element name="TFiler.IgnoreChildren"> <!-- Property -->
  5196. <short>Determines whether children will be streamed as well.</short>
  5197. <descr>
  5198. By default, all children (i.e. owned objects) will also be streamed when
  5199. streaming a component. This property can be used to prevent owned objects
  5200. from being streamed.
  5201. </descr>
  5202. </element>
  5203. <element name="TComponentClass"> <!-- "class of" type -->
  5204. <short>Class of TComponent</short>
  5205. <descr>
  5206. The <var>TComponentClass</var> type is used when constructing
  5207. <link id="TComponent"/> descendent instances and when registering
  5208. components.
  5209. </descr>
  5210. <seealso>
  5211. <link id="TComponent"/>
  5212. </seealso>
  5213. </element>
  5214. <!--
  5215. *********************************************************************
  5216. TAbstractObjectReader
  5217. *********************************************************************
  5218. -->
  5219. <element name="TAbstractObjectReader"> <!-- Class -->
  5220. <short>Abstract driver class to read stored component data.</short>
  5221. <descr>
  5222. <p>
  5223. The Free Pascal streaming mechanism, while compatible with Delphi's
  5224. mechanism, differs from it in the sense that the streaming mechanism uses
  5225. a driver class when streaming components. The <var>TAbstractObjectReader</var>
  5226. class is the base driver class for reading property values from streams.
  5227. It consists entirely of abstract methods, which must be implemented by
  5228. descendent classes.
  5229. </p>
  5230. <p>
  5231. Different streaming mechanisms can be implemented by making a descendent
  5232. from <var>TAbstractObjectReader</var>. The <link id="TBinaryObjectReader"/>
  5233. class is such a descendent class, which streams data in binary (Delphi
  5234. compatible) format.
  5235. </p>
  5236. <p>
  5237. All methods described in this class, mustbe implemented by descendent
  5238. classes.
  5239. </p>
  5240. </descr>
  5241. <seealso>
  5242. <link id="TBinaryObjectReader"/>
  5243. </seealso>
  5244. </element>
  5245. <element name="TAbstractObjectReader.NextValue"> <!-- Function -->
  5246. <short>Returns the type of the next value in the stream.</short>
  5247. <descr>
  5248. <p>
  5249. This function should return the type of the next value in the stream,
  5250. but should not read it, i.e. the stream position should not be altered by
  5251. this method. This is used to 'peek' in the stream what value is next.
  5252. </p>
  5253. </descr>
  5254. <seealso>
  5255. <link id="TAbstractObjectReader.ReadValue"/>
  5256. </seealso>
  5257. </element>
  5258. <element name="TAbstractObjectReader.ReadValue"> <!-- Function -->
  5259. <short>Reads the type of the next value.</short>
  5260. <descr>
  5261. This function returns the type of the next value in the stream and reads it.
  5262. i.e. after the call to this method, the stream is positioned to read the
  5263. value of the type returned by this function.
  5264. </descr>
  5265. <seealso>
  5266. <link id="TAbstractObjectReader.ReadValue"/>
  5267. </seealso>
  5268. </element>
  5269. <element name="TAbstractObjectReader.BeginRootComponent"> <!-- Procedure -->
  5270. <short>Starts the reading of the root component.</short>
  5271. <descr>
  5272. This function can be used to initialize the driver class for reading a
  5273. component. It is called once at the beginning of the read process, and
  5274. is immediatly followed by a call to <link
  5275. id="TAbstractObjectReader.BeginComponent">BeginComponent</link>.
  5276. </descr>
  5277. <seealso>
  5278. <link id="TAbstractObjectReader.BeginComponent"/>
  5279. </seealso>
  5280. </element>
  5281. <element name="TAbstractObjectReader.BeginComponent"> <!-- Procedure -->
  5282. <short>Marks the reading of a new component. </short>
  5283. <descr>
  5284. <p>
  5285. This method is called when the streaming process wants to start reading a
  5286. new component.
  5287. </p>
  5288. <p>
  5289. Descendent classes should override this method to read the start of a
  5290. component new component definition and return the needed arguments.
  5291. <var>Flags</var> should be filled with any flags that were found at the
  5292. component definition, as well as <var>AChildPos</var>. The
  5293. <var>CompClassName</var> should be filled with the class name of the
  5294. streamed component, and the <var>CompName</var> argument should be filled
  5295. with the name of the component.
  5296. </p>
  5297. </descr>
  5298. <seealso>
  5299. <link id="TAbstractObjectReader.BeginRootComponent"/>
  5300. <link id="TAbstractObjectReader.BeginProperty"/>
  5301. </seealso>
  5302. </element>
  5303. <element name="TAbstractObjectReader.BeginProperty"> <!-- Function -->
  5304. <short>Marks the reading of a property value.</short>
  5305. <descr>
  5306. <var>BeginProperty</var> is called by the streaming system when it wants to
  5307. read a new property. The return value of the function is the name of the
  5308. property which can be read from the stream.
  5309. </descr>
  5310. <seealso>
  5311. <link id="TAbstractObjectReader.BeginComponent"/>
  5312. </seealso>
  5313. </element>
  5314. <element name="TAbstractObjectReader.ReadBinary"> <!-- Procedure -->
  5315. <short>Read binary data from the stream.</short>
  5316. <descr>
  5317. <var>ReadBinary</var> is called when binary data should be read from the
  5318. stream
  5319. (i.e. after <link id="TAbstractObjectReader.ReadValue">ReadValue</link>
  5320. returned a valuetype of <var>vaBinary</var>). The data should be stored in the <var>DestData</var> memory stream
  5321. by descendent classes.
  5322. </descr>
  5323. <seealso>
  5324. <link id="TAbstractObjectReader.ReadFloat"/>
  5325. <link id="TAbstractObjectReader.ReadDate"/>
  5326. <link id="TAbstractObjectReader.ReadSingle"/>
  5327. <link id="TAbstractObjectReader.ReadIdent"/>
  5328. <link id="TAbstractObjectReader.ReadInt8"/>
  5329. <link id="TAbstractObjectReader.ReadInt16"/>
  5330. <link id="TAbstractObjectReader.ReadInt32"/>
  5331. <link id="TAbstractObjectReader.ReadInt64"/>
  5332. <link id="TabstractObjectReader.ReadSet"/>
  5333. <link id="TabstractObjectReader.ReadStr"/>
  5334. <link id="TabstractObjectReader.ReadString"/>
  5335. </seealso>
  5336. </element>
  5337. <element name="TAbstractObjectReader.ReadFloat"> <!-- Function -->
  5338. <short>Read a float value from the stream.</short>
  5339. <descr>
  5340. <var>ReadFloat</var> is called by the streaming system when it wants to read
  5341. a float from the stream (i.e. after <link id="TAbstractObjectReader.ReadValue">ReadValue</link>
  5342. returned a valuetype of <var>vaExtended</var>). The return value should be the value of the float.
  5343. </descr>
  5344. <seealso>
  5345. <link id="TAbstractObjectReader.ReadFloat"/>
  5346. <link id="TAbstractObjectReader.ReadDate"/>
  5347. <link id="TAbstractObjectReader.ReadSingle"/>
  5348. <link id="TAbstractObjectReader.ReadIdent"/>
  5349. <link id="TAbstractObjectReader.ReadInt8"/>
  5350. <link id="TAbstractObjectReader.ReadInt16"/>
  5351. <link id="TAbstractObjectReader.ReadInt32"/>
  5352. <link id="TAbstractObjectReader.ReadInt64"/>
  5353. <link id="TabstractObjectReader.ReadSet"/>
  5354. <link id="TabstractObjectReader.ReadStr"/>
  5355. <link id="TabstractObjectReader.ReadString"/>
  5356. </seealso>
  5357. </element>
  5358. <element name="TAbstractObjectReader.ReadSingle"> <!-- Function -->
  5359. <short>Read a single (real-type) value from the stream.</short>
  5360. <descr>
  5361. <var>ReadSingle</var> is called by the streaming system when it wants to read
  5362. a single-type float from the stream (i.e. after <link id="TAbstractObjectReader.ReadValue">ReadValue</link>
  5363. returned a valuetype of <var>vaSingle</var>). The return value should be the value of
  5364. the float.
  5365. </descr>
  5366. <seealso>
  5367. <link id="TAbstractObjectReader.ReadFloat"/>
  5368. <link id="TAbstractObjectReader.ReadDate"/>
  5369. <link id="TAbstractObjectReader.ReadSingle"/>
  5370. <link id="TAbstractObjectReader.ReadIdent"/>
  5371. <link id="TAbstractObjectReader.ReadInt8"/>
  5372. <link id="TAbstractObjectReader.ReadInt16"/>
  5373. <link id="TAbstractObjectReader.ReadInt32"/>
  5374. <link id="TAbstractObjectReader.ReadInt64"/>
  5375. <link id="TabstractObjectReader.ReadSet"/>
  5376. <link id="TabstractObjectReader.ReadStr"/>
  5377. <link id="TabstractObjectReader.ReadString"/>
  5378. </seealso>
  5379. </element>
  5380. <element name="TAbstractObjectReader.ReadDate"> <!-- Function -->
  5381. <short>Read a date value from the stream.</short>
  5382. <descr>
  5383. <var>ReadDate</var> is called by the streaming system when it wants to read
  5384. a date/time value from the stream (i.e. after <link id="TAbstractObjectReader.ReadValue">ReadValue</link>
  5385. returned a valuetype of <var>vaDate</var>). The return value should be the date/time
  5386. value. (This value can be stored as a float, since <var>TDateTime</var> is
  5387. nothing but a float.)
  5388. </descr>
  5389. <seealso>
  5390. <link id="TAbstractObjectReader.ReadFloat"/>
  5391. <link id="TAbstractObjectReader.ReadSingle"/>
  5392. <link id="TAbstractObjectReader.ReadIdent"/>
  5393. <link id="TAbstractObjectReader.ReadInt8"/>
  5394. <link id="TAbstractObjectReader.ReadInt16"/>
  5395. <link id="TAbstractObjectReader.ReadInt32"/>
  5396. <link id="TAbstractObjectReader.ReadInt64"/>
  5397. <link id="TabstractObjectReader.ReadSet"/>
  5398. <link id="TabstractObjectReader.ReadStr"/>
  5399. <link id="TabstractObjectReader.ReadString"/>
  5400. </seealso>
  5401. </element>
  5402. <element name="TAbstractObjectReader.ReadIdent"> <!-- Function -->
  5403. <short>Read an identifier from the stream.</short>
  5404. <descr>
  5405. <p>
  5406. <var>ReadIdent</var> is called by the streaming system if it expects to read
  5407. an identifier of type <var>ValueType</var> from the stream after a call to
  5408. <link id="TAbstractObjectReader.Readvalue">ReadValue</link> returned
  5409. <var>vaIdent</var>. The identifier
  5410. should be returned as a string. Note that in some cases the identifier does
  5411. not actually have to be in the stream;
  5412. </p>
  5413. <table>
  5414. <tr><td>ValueType</td><td>Expected value</td></tr>
  5415. <tr><td>vaIdent</td><td>Read from stream.</td></tr>
  5416. <tr><td>vaNil</td><td>'Nil'. This does not have to be read from the stream.</td></tr>
  5417. <tr><td>vaFalse</td><td>'False'. This does not have to be read from the stream.</td></tr>
  5418. <tr><td>vaTrue</td><td>'True'. This does not have to be read from the stream.</td></tr>
  5419. <tr><td>vaNull</td><td>'Null'. This does not have to be read from the stream.</td></tr>
  5420. </table>
  5421. </descr>
  5422. <seealso>
  5423. <link id="TAbstractObjectReader.ReadFloat"/>
  5424. <link id="TAbstractObjectReader.ReadDate"/>
  5425. <link id="TAbstractObjectReader.ReadSingle"/>
  5426. <link id="TAbstractObjectReader.ReadInt8"/>
  5427. <link id="TAbstractObjectReader.ReadInt16"/>
  5428. <link id="TAbstractObjectReader.ReadInt32"/>
  5429. <link id="TAbstractObjectReader.ReadInt64"/>
  5430. <link id="TabstractObjectReader.ReadSet"/>
  5431. <link id="TabstractObjectReader.ReadStr"/>
  5432. <link id="TabstractObjectReader.ReadString"/>
  5433. </seealso>
  5434. </element>
  5435. <element name="TAbstractObjectReader.ReadInt8"> <!-- Function -->
  5436. <short>Read an 8-bit integer from the stream.</short>
  5437. <descr>
  5438. <var>ReadInt8</var> is called by the streaming process if it expects to
  5439. read an integer value with a size of 8 bits (1 byte) from the stream (i.e. after <link id="TAbstractObjectReader.ReadValue">ReadValue</link>
  5440. returned a valuetype of <var>vaInt8</var>).
  5441. The return value is the value if the integer. Note that the size of the
  5442. value in the stream does not actually have to be 1 byte.
  5443. </descr>
  5444. <seealso>
  5445. <link id="TAbstractObjectReader.ReadFloat"/>
  5446. <link id="TAbstractObjectReader.ReadDate"/>
  5447. <link id="TAbstractObjectReader.ReadSingle"/>
  5448. <link id="TAbstractObjectReader.ReadIdent"/>
  5449. <link id="TAbstractObjectReader.ReadInt16"/>
  5450. <link id="TAbstractObjectReader.ReadInt32"/>
  5451. <link id="TAbstractObjectReader.ReadInt64"/>
  5452. <link id="TabstractObjectReader.ReadSet"/>
  5453. <link id="TabstractObjectReader.ReadStr"/>
  5454. <link id="TabstractObjectReader.ReadString"/>
  5455. </seealso>
  5456. </element>
  5457. <element name="TAbstractObjectReader.ReadInt16"> <!-- Function -->
  5458. <short>Read a 16-bit integer from the stream.</short>
  5459. <descr>
  5460. <var>ReadInt16</var> is called by the streaming process if it expects to
  5461. read an integer value with a size of 16 bits (2 bytes) from the stream (i.e. after <link id="TAbstractObjectReader.ReadValue">ReadValue</link>
  5462. returned a valuetype of <var>vaInt16</var>).
  5463. The return value is the value if the integer. Note that the size of the
  5464. value in the stream does not actually have to be 2 bytes.
  5465. </descr>
  5466. <seealso>
  5467. <link id="TAbstractObjectReader.ReadFloat"/>
  5468. <link id="TAbstractObjectReader.ReadDate"/>
  5469. <link id="TAbstractObjectReader.ReadSingle"/>
  5470. <link id="TAbstractObjectReader.ReadIdent"/>
  5471. <link id="TAbstractObjectReader.ReadInt8"/>
  5472. <link id="TAbstractObjectReader.ReadInt32"/>
  5473. <link id="TAbstractObjectReader.ReadInt64"/>
  5474. <link id="TabstractObjectReader.ReadSet"/>
  5475. <link id="TabstractObjectReader.ReadStr"/>
  5476. <link id="TabstractObjectReader.ReadString"/>
  5477. </seealso>
  5478. </element>
  5479. <element name="TAbstractObjectReader.ReadInt32"> <!-- Function -->
  5480. <short>Read a 32-bit integer from the stream.</short>
  5481. <descr>
  5482. <var>ReadInt32</var> is called by the streaming process if it expects to
  5483. read an integer value with a size of 32 bits (4 bytes) from the stream (i.e. after <link id="TAbstractObjectReader.ReadValue">ReadValue</link>
  5484. returned a valuetype of <var>vaInt32</var>).
  5485. The return value is the value of the integer. Note that the size of the
  5486. value in the stream does not actually have to be 4 bytes.
  5487. </descr>
  5488. <seealso>
  5489. <link id="TAbstractObjectReader.ReadFloat"/>
  5490. <link id="TAbstractObjectReader.ReadDate"/>
  5491. <link id="TAbstractObjectReader.ReadSingle"/>
  5492. <link id="TAbstractObjectReader.ReadIdent"/>
  5493. <link id="TAbstractObjectReader.ReadInt8"/>
  5494. <link id="TAbstractObjectReader.ReadInt16"/>
  5495. <link id="TAbstractObjectReader.ReadInt64"/>
  5496. <link id="TabstractObjectReader.ReadSet"/>
  5497. <link id="TabstractObjectReader.ReadStr"/>
  5498. <link id="TabstractObjectReader.ReadString"/>
  5499. </seealso>
  5500. </element>
  5501. <element name="TAbstractObjectReader.ReadInt64"> <!-- Function -->
  5502. <short>Read a 64-bit integer from the stream.</short>
  5503. <descr>
  5504. <var>ReadInt64</var> is called by the streaming process if it expects to
  5505. read an int64 value with a size of 64 bits (8 bytes) from the stream (i.e. after <link id="TAbstractObjectReader.ReadValue">ReadValue</link>
  5506. returned a valuetype of <var>vaInt64</var>).
  5507. The return value is the value if the integer. Note that the size of the
  5508. value in the stream does not actually have to be 8 bytes.
  5509. </descr>
  5510. <seealso>
  5511. <link id="TAbstractObjectReader.ReadFloat"/>
  5512. <link id="TAbstractObjectReader.ReadDate"/>
  5513. <link id="TAbstractObjectReader.ReadSingle"/>
  5514. <link id="TAbstractObjectReader.ReadIdent"/>
  5515. <link id="TAbstractObjectReader.ReadInt8"/>
  5516. <link id="TAbstractObjectReader.ReadInt16"/>
  5517. <link id="TAbstractObjectReader.ReadInt32"/>
  5518. <link id="TabstractObjectReader.ReadSet"/>
  5519. <link id="TabstractObjectReader.ReadStr"/>
  5520. <link id="TabstractObjectReader.ReadString"/>
  5521. </seealso>
  5522. </element>
  5523. <element name="TAbstractObjectReader.ReadSet"> <!-- Function -->
  5524. <short>Reads a set from the stream.</short>
  5525. <descr>
  5526. <p>
  5527. This method is called by the streaming system if it expects to read a
  5528. set from the stream (i.e. after <link id="TAbstractObjectReader.ReadValue">ReadValue</link>
  5529. returned a valuetype of <var>vaSet</var>). The return value is the contents of the
  5530. set, encoded in a bitmask the following way:
  5531. </p>
  5532. <p>
  5533. For each (enumerated) value in the set, the bit corresponding to the
  5534. ordinal value of the enumerated value should be set. i.e.
  5535. as <var>1 shl ord(value)</var>.
  5536. </p>
  5537. </descr>
  5538. <seealso>
  5539. <link id="TAbstractObjectReader.ReadFloat"/>
  5540. <link id="TAbstractObjectReader.ReadDate"/>
  5541. <link id="TAbstractObjectReader.ReadSingle"/>
  5542. <link id="TAbstractObjectReader.ReadIdent"/>
  5543. <link id="TAbstractObjectReader.ReadInt8"/>
  5544. <link id="TAbstractObjectReader.ReadInt16"/>
  5545. <link id="TAbstractObjectReader.ReadInt32"/>
  5546. <link id="TAbstractObjectReader.ReadInt64"/>
  5547. <link id="TabstractObjectReader.ReadStr"/>
  5548. <link id="TabstractObjectReader.ReadString"/>
  5549. </seealso>
  5550. </element>
  5551. <element name="TAbstractObjectReader.ReadStr"> <!-- Function -->
  5552. <short>Read a shortstring from the stream</short>
  5553. <descr>
  5554. <var>ReadStr</var> is called by the streaming system if it expects to read a
  5555. shortstring from the stream (i.e. after <link id="TAbstractObjectReader.ReadValue">ReadValue</link>
  5556. returned a valuetype of <var>vaLString</var>,<var>vaWstring</var> or
  5557. <var>vaString</var>). The return value is the string.
  5558. </descr>
  5559. <seealso>
  5560. <link id="TAbstractObjectReader.ReadFloat"/>
  5561. <link id="TAbstractObjectReader.ReadDate"/>
  5562. <link id="TAbstractObjectReader.ReadSingle"/>
  5563. <link id="TAbstractObjectReader.ReadIdent"/>
  5564. <link id="TAbstractObjectReader.ReadInt8"/>
  5565. <link id="TAbstractObjectReader.ReadInt16"/>
  5566. <link id="TAbstractObjectReader.ReadInt32"/>
  5567. <link id="TAbstractObjectReader.ReadInt64"/>
  5568. <link id="TabstractObjectReader.ReadSet"/>
  5569. <link id="TabstractObjectReader.ReadString"/>
  5570. </seealso>
  5571. </element>
  5572. <element name="TAbstractObjectReader.ReadString"> <!-- Function -->
  5573. <short>Read a string of type <var>StringType</var> from the stream.</short>
  5574. <descr>
  5575. <var>ReadStr</var> is called by the streaming system if it expects to read a
  5576. string from the stream (i.e. after <link id="TAbstractObjectReader.ReadValue">ReadValue</link>
  5577. returned a valuetype of <var>vaLString</var>,<var>vaWstring</var> or
  5578. <var>vaString</var>). The return value is the string.
  5579. </descr>
  5580. <seealso>
  5581. <link id="TAbstractObjectReader.ReadFloat"/>
  5582. <link id="TAbstractObjectReader.ReadDate"/>
  5583. <link id="TAbstractObjectReader.ReadSingle"/>
  5584. <link id="TAbstractObjectReader.ReadIdent"/>
  5585. <link id="TAbstractObjectReader.ReadInt8"/>
  5586. <link id="TAbstractObjectReader.ReadInt16"/>
  5587. <link id="TAbstractObjectReader.ReadInt32"/>
  5588. <link id="TAbstractObjectReader.ReadInt64"/>
  5589. <link id="TabstractObjectReader.ReadSet"/>
  5590. <link id="TabstractObjectReader.ReadStr"/>
  5591. </seealso>
  5592. </element>
  5593. <element name="TAbstractObjectReader.SkipComponent"> <!-- Procedure -->
  5594. <short>Skip till the end of the component.</short>
  5595. <descr>
  5596. This method is used to skip the entire declaration of a component in the
  5597. stream. Each descendent of <var>TAbstractObjectReader</var> should implement
  5598. this in a way which is optimal for the implemented stream format.
  5599. </descr>
  5600. <seealso>
  5601. <link id="TAbstractObjectReader.BeginComponent"/>
  5602. <link id="TAbstractObjectReader.SkipValue"/>
  5603. </seealso>
  5604. </element>
  5605. <element name="TAbstractObjectReader.SkipValue"> <!-- Procedure -->
  5606. <short>Skip the current value.</short>
  5607. <descr>
  5608. <var>SkipValue</var> should be used when skipping a value in the stream;
  5609. The method should determine the type of the value which should be skipped
  5610. by itself, if this is necessary.
  5611. </descr>
  5612. <seealso>
  5613. <link id="TAbstractObjectReader.SkipComponent"/>
  5614. </seealso>
  5615. </element>
  5616. <!--
  5617. *********************************************************************
  5618. TBinaryObjectReader
  5619. *********************************************************************
  5620. -->
  5621. <element name="TBinaryObjectReader"> <!-- Class -->
  5622. <short>Driver class descendent which reads component data stored in binary format.</short>
  5623. <descr>
  5624. </descr>
  5625. <seealso>
  5626. </seealso>
  5627. </element>
  5628. <element name="TBinaryObjectReader.Create"> <!-- Constructor -->
  5629. <short>Creates a new binary data reader instance.</short>
  5630. <descr>
  5631. </descr>
  5632. <seealso>
  5633. </seealso>
  5634. </element>
  5635. <element name="TBinaryObjectReader.Destroy"> <!-- Destructor -->
  5636. <short>Destroys the binary data reader.</short>
  5637. <descr>
  5638. </descr>
  5639. <seealso>
  5640. </seealso>
  5641. </element>
  5642. <element name="TBinaryObjectReader.NextValue" link="TAbstractObjectReader.NextValue"> <!-- Function -->
  5643. <short>Returns the type of the next value, but does not position the stream to read
  5644. it</short>
  5645. </element>
  5646. <element name="TBinaryObjectReader.ReadValue" link="TAbstractObjectReader.ReadValue"> <!-- Function -->
  5647. <short>Returns the type of the next value, and positions the stream to read it</short>
  5648. </element>
  5649. <element name="TBinaryObjectReader.BeginRootComponent" link="TAbstractObjectReader.BeginRootComponent"> <!-- Procedure -->
  5650. <short>Signals the beginning of the reading of the root component</short>
  5651. </element>
  5652. <element name="TBinaryObjectReader.BeginComponent" link="TAbstractObjectReader.BeginComponent"> <!-- Procedure -->
  5653. <short>Signals the beginning of the reading of a component</short>
  5654. </element>
  5655. <element name="TBinaryObjectReader.BeginProperty"
  5656. link="TAbstractObjectReader.BeginProperty"> <!-- Function -->
  5657. <short>Starts reading a property.</short>
  5658. </element>
  5659. <element name="TBinaryObjectReader.ReadBinary"
  5660. link="TAbstractObjectReader.ReadBinary"> <!-- Procedure -->
  5661. <short>Starts reading binary data.</short>
  5662. </element>
  5663. <element name="TBinaryObjectReader.ReadFloat"
  5664. link="TAbstractObjectReader.ReadFloat"> <!-- Function -->
  5665. <short>Reads a float from the stream.</short>
  5666. </element>
  5667. <element name="TBinaryObjectReader.ReadSingle"
  5668. link="TAbstractObjectReader.ReadSingle"> <!-- Function -->
  5669. <short>Reads a signle-type real from the stream.</short>
  5670. </element>
  5671. <element name="TBinaryObjectReader.ReadDate"
  5672. link="TAbstractObjectReader.ReadDate"> <!-- Function -->
  5673. <short>Reads a date from the stream</short>
  5674. </element>
  5675. <element name="TBinaryObjectReader.ReadIdent"
  5676. link="TAbstractObjectReader.ReadIdent"> <!-- Function -->
  5677. <short>Reads an identifier from the stream</short>
  5678. </element>
  5679. <element name="TBinaryObjectReader.ReadInt8"
  5680. link="TAbstractObjectReader.ReadInt8"> <!-- Function -->
  5681. <short>Reads an 8-bit integer from the stream.</short>
  5682. </element>
  5683. <element name="TBinaryObjectReader.ReadInt16"
  5684. link="TAbstractObjectReader.ReadInt16"> <!-- Function -->
  5685. <short>Reads a 16-bit integer from the stream</short>
  5686. </element>
  5687. <element name="TBinaryObjectReader.ReadInt32"
  5688. link="TAbstractObjectReader.ReadInt32"> <!-- Function -->
  5689. <short>Reads a 32-bit integer from the stream.</short>
  5690. </element>
  5691. <element name="TBinaryObjectReader.ReadInt64"
  5692. link="TAbstractObjectReader.ReadInt64"> <!-- Function -->
  5693. <short>Reads a 64-bit integer from the stream.</short>
  5694. </element>
  5695. <element name="TBinaryObjectReader.ReadSet"
  5696. link="TAbstractObjectReader.ReadSet"> <!-- Function -->
  5697. <short>Reads a set from the stream.</short>
  5698. </element>
  5699. <element name="TBinaryObjectReader.ReadStr"
  5700. link="TAbstractObjectReader.ReadStr"> <!-- Function -->
  5701. <short>Reads a shortstring from the stream.</short>
  5702. </element>
  5703. <element name="TBinaryObjectReader.ReadString"
  5704. link="TAbstractObjectReader.ReadString"> <!-- Function -->
  5705. <short>Reads a string of type <var>StringType</var> from the stream.</short>
  5706. </element>
  5707. <element name="TBinaryObjectReader.SkipComponent"
  5708. link="TAbstractObjectReader.SkipComponent"> <!-- Procedure -->
  5709. <short>Skips over a component's data in the stream.</short>
  5710. </element>
  5711. <element name="TBinaryObjectReader.SkipValue"
  5712. link="TAbstractObjectReader.SkipValue"> <!-- Procedure -->
  5713. <short>Skip over a value in the data.</short>
  5714. </element>
  5715. <element name="TFindMethodEvent"> <!-- Procedure type -->
  5716. <short>Occurs when the streaming process needs to locate a method</short>
  5717. </element>
  5718. <element name="TSetNameEvent"> <!-- Procedure type -->
  5719. <short>Occurs when the reader needs to set a component's name.</short>
  5720. <descr>
  5721. </descr>
  5722. <seealso>
  5723. </seealso>
  5724. </element>
  5725. <element name="TReferenceNameEvent"> <!-- Procedure type -->
  5726. <short>Occurs when a named object needs to be looked up.</short>
  5727. <descr>
  5728. </descr>
  5729. <seealso>
  5730. </seealso>
  5731. </element>
  5732. <element name="TAncestorNotFoundEvent"> <!-- Procedure type -->
  5733. <short>This event occurs when an ancestor component cannot be found.</short>
  5734. <descr>
  5735. </descr>
  5736. <seealso>
  5737. </seealso>
  5738. </element>
  5739. <element name="TReadComponentsProc"> <!-- Procedure type -->
  5740. <short>Callback type when reading a component from a stream</short>
  5741. <descr>
  5742. </descr>
  5743. <seealso>
  5744. </seealso>
  5745. </element>
  5746. <element name="TReaderError"> <!-- Procedure type -->
  5747. <short>Event handler type, called when an error occurs during the streaming.</short>
  5748. <descr>
  5749. </descr>
  5750. <seealso>
  5751. </seealso>
  5752. </element>
  5753. <element name="TFindComponentClassEvent"> <!-- Procedure type -->
  5754. <short>Event handler type, occurs when a component class pointer must be
  5755. found when reading a component from a stream.</short>
  5756. <descr>
  5757. </descr>
  5758. <seealso>
  5759. </seealso>
  5760. </element>
  5761. <element name="TCreateComponentEvent"> <!-- Procedure type -->
  5762. <short>Event handler type, occurs when a component instance must be created
  5763. when a component is read from a stream.</short>
  5764. <descr>
  5765. </descr>
  5766. <seealso>
  5767. </seealso>
  5768. </element>
  5769. <!--
  5770. *********************************************************************
  5771. TReader
  5772. *********************************************************************
  5773. -->
  5774. <element name="TReader"> <!-- Class -->
  5775. <short>Generic reader object which reads component data from any given source.</short>
  5776. <descr>
  5777. </descr>
  5778. <seealso>
  5779. </seealso>
  5780. </element>
  5781. <element name="TReader.Error"> <!-- Function -->
  5782. <short>Raises an error with message <var>Message</var></short>
  5783. <descr>
  5784. </descr>
  5785. <seealso>
  5786. </seealso>
  5787. </element>
  5788. <element name="TReader.FindMethod"> <!-- Function -->
  5789. <short>Return the address of a published method.</short>
  5790. <descr>
  5791. </descr>
  5792. <seealso>
  5793. </seealso>
  5794. </element>
  5795. <element name="TReader.ReadProperty"> <!-- Procedure -->
  5796. <short>Read and process a property name</short>
  5797. <descr>
  5798. </descr>
  5799. <seealso>
  5800. </seealso>
  5801. </element>
  5802. <element name="TReader.ReadPropValue"> <!-- Procedure -->
  5803. <short>Reads a property value for <var>PropInfo</var>.</short>
  5804. <descr>
  5805. </descr>
  5806. <seealso>
  5807. </seealso>
  5808. </element>
  5809. <element name="TReader.PropertyError"> <!-- Procedure -->
  5810. <short>Skips a property value and raises an exception.</short>
  5811. <descr>
  5812. </descr>
  5813. <seealso>
  5814. </seealso>
  5815. </element>
  5816. <element name="TReader.ReadData"> <!-- Procedure -->
  5817. <short>Reads the components data after it has been created.</short>
  5818. <descr>
  5819. </descr>
  5820. <seealso>
  5821. </seealso>
  5822. </element>
  5823. <element name="TReader.PropName"> <!-- Property -->
  5824. <short>Name of the property being read at this moment.</short>
  5825. <descr>
  5826. </descr>
  5827. <seealso>
  5828. </seealso>
  5829. </element>
  5830. <element name="TReader.CanHandleExceptions"> <!-- Property -->
  5831. <short>Indicates whether the reader is handling exceptions at this stage.</short>
  5832. <descr>
  5833. </descr>
  5834. <seealso>
  5835. </seealso>
  5836. </element>
  5837. <element name="TReader.Create"> <!-- Constructor -->
  5838. <short>Creates a new reader class</short>
  5839. <descr>
  5840. </descr>
  5841. <seealso>
  5842. </seealso>
  5843. </element>
  5844. <element name="TReader.Destroy"> <!-- Destructor -->
  5845. <short>Destroys a reader class.</short>
  5846. <descr>
  5847. </descr>
  5848. <seealso>
  5849. </seealso>
  5850. </element>
  5851. <element name="TReader.BeginReferences"> <!-- Procedure -->
  5852. <short>Initializes the component referencing mechanism.</short>
  5853. <descr>
  5854. </descr>
  5855. <seealso>
  5856. </seealso>
  5857. </element>
  5858. <element name="TReader.CheckValue"> <!-- Procedure -->
  5859. <short>Raises an exception if the next value in the stream is not of type
  5860. <var>Value</var></short>
  5861. <descr>
  5862. </descr>
  5863. <seealso>
  5864. </seealso>
  5865. </element>
  5866. <element name="TReader.DefineProperty"> <!-- Procedure -->
  5867. <short>Reads a user-defined property from the stream.</short>
  5868. <descr>
  5869. </descr>
  5870. <seealso>
  5871. </seealso>
  5872. </element>
  5873. <element name="TReader.DefineBinaryProperty"> <!-- Procedure -->
  5874. <short>Reads a user-defined binary property from the stream.</short>
  5875. <descr>
  5876. </descr>
  5877. <seealso>
  5878. </seealso>
  5879. </element>
  5880. <element name="TReader.EndOfList"> <!-- Function -->
  5881. <short>Returns true if the stream contains an end-of-list marker.</short>
  5882. <descr>
  5883. </descr>
  5884. <seealso>
  5885. </seealso>
  5886. </element>
  5887. <element name="TReader.EndReferences"> <!-- Procedure -->
  5888. <short>Finalizes the component referencing mechanism.</short>
  5889. <descr>
  5890. </descr>
  5891. <seealso>
  5892. </seealso>
  5893. </element>
  5894. <element name="TReader.FixupReferences"> <!-- Procedure -->
  5895. <short>Tries to resolve all unresolved component references.</short>
  5896. <descr>
  5897. </descr>
  5898. <seealso>
  5899. </seealso>
  5900. </element>
  5901. <element name="TReader.NextValue"> <!-- Function -->
  5902. <short>Returns the type of the next value.</short>
  5903. <descr>
  5904. </descr>
  5905. <seealso>
  5906. </seealso>
  5907. </element>
  5908. <element name="TReader.ReadBoolean"> <!-- Function -->
  5909. <short>Reads a boolean from the stream.</short>
  5910. <descr>
  5911. </descr>
  5912. <seealso>
  5913. </seealso>
  5914. </element>
  5915. <element name="TReader.ReadChar"> <!-- Function -->
  5916. <short>Reads a character from the stream.</short>
  5917. <descr>
  5918. </descr>
  5919. <seealso>
  5920. </seealso>
  5921. </element>
  5922. <element name="TReader.ReadCollection"> <!-- Procedure -->
  5923. <short>Reads a collection from the stream.</short>
  5924. <descr>
  5925. </descr>
  5926. <seealso>
  5927. </seealso>
  5928. </element>
  5929. <element name="TReader.ReadComponent"> <!-- Function -->
  5930. <short>Starts reading a component from the stream.</short>
  5931. <descr>
  5932. </descr>
  5933. <seealso>
  5934. </seealso>
  5935. </element>
  5936. <element name="TReader.ReadComponents"> <!-- Procedure -->
  5937. <short>Starts reading child components from the stream.</short>
  5938. <descr>
  5939. </descr>
  5940. <seealso>
  5941. </seealso>
  5942. </element>
  5943. <element name="TReader.ReadFloat"> <!-- Function -->
  5944. <short>Reads a float from the stream.</short>
  5945. <descr>
  5946. </descr>
  5947. <seealso>
  5948. </seealso>
  5949. </element>
  5950. <element name="TReader.ReadSingle"> <!-- Function -->
  5951. <short>Reads a single-type real from the stream.</short>
  5952. <descr>
  5953. </descr>
  5954. <seealso>
  5955. </seealso>
  5956. </element>
  5957. <element name="TReader.ReadDate"> <!-- Function -->
  5958. <short>Reads a date from the stream</short>
  5959. <descr>
  5960. </descr>
  5961. <seealso>
  5962. </seealso>
  5963. </element>
  5964. <element name="TReader.ReadIdent"> <!-- Function -->
  5965. <short>Reads an identifier from the stream.</short>
  5966. <descr>
  5967. </descr>
  5968. <seealso>
  5969. </seealso>
  5970. </element>
  5971. <element name="TReader.ReadInteger"> <!-- Function -->
  5972. <short>Reads an integer from the stream</short>
  5973. <descr>
  5974. </descr>
  5975. <seealso>
  5976. </seealso>
  5977. </element>
  5978. <element name="TReader.ReadInt64"> <!-- Function -->
  5979. <short>Reads a 64-bit integer from the stream.</short>
  5980. <descr>
  5981. </descr>
  5982. <seealso>
  5983. </seealso>
  5984. </element>
  5985. <element name="TReader.ReadListBegin"> <!-- Procedure -->
  5986. <short>Checks for the beginning of a list.</short>
  5987. <descr>
  5988. </descr>
  5989. <seealso>
  5990. </seealso>
  5991. </element>
  5992. <element name="TReader.ReadListEnd"> <!-- Procedure -->
  5993. <short>Checks for the end of a list.</short>
  5994. <descr>
  5995. </descr>
  5996. <seealso>
  5997. </seealso>
  5998. </element>
  5999. <element name="TReader.ReadRootComponent"> <!-- Function -->
  6000. <short>Starts reading a root component.</short>
  6001. <descr>
  6002. </descr>
  6003. <seealso>
  6004. </seealso>
  6005. </element>
  6006. <element name="TReader.ReadString"> <!-- Function -->
  6007. <short>Reads a string from the stream.</short>
  6008. <descr>
  6009. </descr>
  6010. <seealso>
  6011. </seealso>
  6012. </element>
  6013. <element name="TReader.ReadValue"> <!-- Function -->
  6014. <short>Reads the next value type from the stream.</short>
  6015. <descr>
  6016. </descr>
  6017. <seealso>
  6018. </seealso>
  6019. </element>
  6020. <element name="TReader.CopyValue"> <!-- Procedure -->
  6021. <short>Copy a value to a writer.</short>
  6022. <descr>
  6023. </descr>
  6024. <seealso>
  6025. </seealso>
  6026. </element>
  6027. <element name="TReader.Owner"> <!-- Property -->
  6028. <short>Owner of the component being read</short>
  6029. <descr>
  6030. </descr>
  6031. <seealso>
  6032. </seealso>
  6033. </element>
  6034. <element name="TReader.Parent"> <!-- Property -->
  6035. <short>Parent of the component being read.</short>
  6036. <descr>
  6037. </descr>
  6038. <seealso>
  6039. </seealso>
  6040. </element>
  6041. <element name="TReader.Driver"> <!-- Property -->
  6042. <short>The driver in use for streaming the data.</short>
  6043. <descr>
  6044. </descr>
  6045. <seealso>
  6046. </seealso>
  6047. </element>
  6048. <element name="TReader.OnError"> <!-- Property -->
  6049. <short>Handler called when an error occurs.</short>
  6050. <descr>
  6051. </descr>
  6052. <seealso>
  6053. </seealso>
  6054. </element>
  6055. <element name="TReader.OnFindMethod"> <!-- Property -->
  6056. <short>Handler to find or change a method address.</short>
  6057. <descr>
  6058. </descr>
  6059. <seealso>
  6060. </seealso>
  6061. </element>
  6062. <element name="TReader.OnSetName"> <!-- Property -->
  6063. <short>Handler called when setting a component name.</short>
  6064. <descr>
  6065. </descr>
  6066. <seealso>
  6067. </seealso>
  6068. </element>
  6069. <element name="TReader.OnReferenceName"> <!-- Property -->
  6070. <short>Handler called when another component is referenced.</short>
  6071. <descr>
  6072. </descr>
  6073. <seealso>
  6074. </seealso>
  6075. </element>
  6076. <element name="TReader.OnAncestorNotFound"> <!-- Property -->
  6077. <short>Handler called when the ancestor component cannot be found.</short>
  6078. <descr>
  6079. </descr>
  6080. <seealso>
  6081. </seealso>
  6082. </element>
  6083. <element name="TReader.OnCreateComponent"> <!-- Property -->
  6084. <short>Handler called when a component needs to be created.</short>
  6085. <descr>
  6086. </descr>
  6087. <seealso>
  6088. </seealso>
  6089. </element>
  6090. <element name="TReader.OnFindComponentClass"> <!-- Property -->
  6091. <short>Handler called when a component class reference needs to be found.</short>
  6092. <descr>
  6093. </descr>
  6094. <seealso>
  6095. </seealso>
  6096. </element>
  6097. <!--
  6098. *********************************************************************
  6099. TAbstractObjectWriter
  6100. *********************************************************************
  6101. -->
  6102. <element name="TAbstractObjectWriter"> <!-- Class -->
  6103. <short>Abstract driver class for writing component data.</short>
  6104. <descr>
  6105. </descr>
  6106. <seealso>
  6107. </seealso>
  6108. </element>
  6109. <element name="TAbstractObjectWriter.BeginCollection"> <!-- Procedure -->
  6110. <short>Start writing a collection.</short>
  6111. <descr>
  6112. </descr>
  6113. <seealso>
  6114. </seealso>
  6115. </element>
  6116. <element name="TAbstractObjectWriter.BeginComponent"> <!-- Procedure -->
  6117. <short>Start writing a component</short>
  6118. <descr>
  6119. </descr>
  6120. <seealso>
  6121. </seealso>
  6122. </element>
  6123. <element name="TAbstractObjectWriter.BeginList"> <!-- Procedure -->
  6124. <short>Start writing a list.</short>
  6125. <descr>
  6126. </descr>
  6127. <seealso>
  6128. </seealso>
  6129. </element>
  6130. <element name="TAbstractObjectWriter.EndList"> <!-- Procedure -->
  6131. <short>Mark the end of a list.</short>
  6132. <descr>
  6133. </descr>
  6134. <seealso>
  6135. </seealso>
  6136. </element>
  6137. <element name="TAbstractObjectWriter.BeginProperty"> <!-- Procedure -->
  6138. <short>Start writing a property</short>
  6139. <descr>
  6140. </descr>
  6141. <seealso>
  6142. </seealso>
  6143. </element>
  6144. <element name="TAbstractObjectWriter.EndProperty"> <!-- Procedure -->
  6145. <short>Marks the end of writing of a property.</short>
  6146. <descr>
  6147. </descr>
  6148. <seealso>
  6149. </seealso>
  6150. </element>
  6151. <element name="TAbstractObjectWriter.WriteBinary"> <!-- Procedure -->
  6152. <short>Writes binary data to the stream.</short>
  6153. <descr>
  6154. </descr>
  6155. <seealso>
  6156. </seealso>
  6157. </element>
  6158. <element name="TAbstractObjectWriter.WriteBoolean"> <!-- Procedure -->
  6159. <short>Writes a boolean value to the stream.</short>
  6160. <descr>
  6161. </descr>
  6162. <seealso>
  6163. </seealso>
  6164. </element>
  6165. <element name="TAbstractObjectWriter.WriteFloat"> <!-- Procedure -->
  6166. <short>Writes a float value to the stream.</short>
  6167. <descr>
  6168. </descr>
  6169. <seealso>
  6170. </seealso>
  6171. </element>
  6172. <element name="TAbstractObjectWriter.WriteSingle"> <!-- Procedure -->
  6173. <short>Writes a single-type real value to the stream.</short>
  6174. <descr>
  6175. </descr>
  6176. <seealso>
  6177. </seealso>
  6178. </element>
  6179. <element name="TAbstractObjectWriter.WriteDate"> <!-- Procedure -->
  6180. <short>Writes a date type to the stream.</short>
  6181. <descr>
  6182. </descr>
  6183. <seealso>
  6184. </seealso>
  6185. </element>
  6186. <element name="TAbstractObjectWriter.WriteIdent"> <!-- Procedure -->
  6187. <short>Writes an identifier to the stream.</short>
  6188. <descr>
  6189. </descr>
  6190. <seealso>
  6191. </seealso>
  6192. </element>
  6193. <element name="TAbstractObjectWriter.WriteInteger"> <!-- Procedure -->
  6194. <short>Writes an integer value to the stream</short>
  6195. <descr>
  6196. </descr>
  6197. <seealso>
  6198. </seealso>
  6199. </element>
  6200. <element name="TAbstractObjectWriter.WriteMethodName"> <!-- Procedure -->
  6201. <short>Writes a methodname to the stream.</short>
  6202. <descr>
  6203. </descr>
  6204. <seealso>
  6205. </seealso>
  6206. </element>
  6207. <element name="TAbstractObjectWriter.WriteSet"> <!-- Procedure -->
  6208. <short>Writes a set value to the stream.</short>
  6209. <descr>
  6210. </descr>
  6211. <seealso>
  6212. </seealso>
  6213. </element>
  6214. <element name="TAbstractObjectWriter.WriteString"> <!-- Procedure -->
  6215. <short>Writes a string value to the stream.</short>
  6216. <descr>
  6217. </descr>
  6218. <seealso>
  6219. </seealso>
  6220. </element>
  6221. <!--
  6222. *********************************************************************
  6223. TBinaryObjectWriter
  6224. *********************************************************************
  6225. -->
  6226. <element name="TBinaryObjectWriter"> <!-- Class -->
  6227. <short>Driver class which stores component data in binary form.</short>
  6228. <descr>
  6229. </descr>
  6230. <seealso>
  6231. </seealso>
  6232. </element>
  6233. <element name="TBinaryObjectWriter.Create"> <!-- Constructor -->
  6234. <short>Creates a new instance of a binary object writer.</short>
  6235. <descr>
  6236. </descr>
  6237. <seealso>
  6238. </seealso>
  6239. </element>
  6240. <element name="TBinaryObjectWriter.Destroy"> <!-- Destructor -->
  6241. <short>Destroys an instance of the binary object writer.</short>
  6242. <descr>
  6243. </descr>
  6244. <seealso>
  6245. </seealso>
  6246. </element>
  6247. <element name="TBinaryObjectWriter.BeginCollection"
  6248. link="TAbstractObjectWriter.BeginCollection">
  6249. <short>Start writing a collection.</short>
  6250. </element>
  6251. <element name="TBinaryObjectWriter.BeginComponent"
  6252. link="TAbstractObjectWriter.BeginComponent"> <!-- Procedure -->
  6253. <short>Start writing a component</short>
  6254. </element>
  6255. <element name="TBinaryObjectWriter.BeginList"
  6256. link="TAbstractObjectWriter.BeginList"> <!-- Procedure -->
  6257. <short>Start writing a list.</short>
  6258. </element>
  6259. <element name="TBinaryObjectWriter.EndList"
  6260. link="TAbstractObjectWriter.EndList"> <!-- Procedure -->
  6261. <short>Mark the end of a list.</short>
  6262. </element>
  6263. <element name="TBinaryObjectWriter.BeginProperty"
  6264. link="TAbstractObjectWriter.BeginProperty"> <!-- Procedure -->
  6265. <short>Start writing a property</short>
  6266. </element>
  6267. <element name="TBinaryObjectWriter.EndProperty"
  6268. link="TAbstractObjectWriter.EndProperty"> <!-- Procedure -->
  6269. <short>Marks the end of writing of a property.</short>
  6270. </element>
  6271. <element name="TBinaryObjectWriter.WriteBinary"
  6272. link="TAbstractObjectWriter.WriteBinary"> <!-- Procedure -->
  6273. <short>Writes binary data to the stream.</short>
  6274. </element>
  6275. <element name="TBinaryObjectWriter.WriteBoolean"
  6276. link="TAbstractObjectWriter.WriteBoolean"> <!-- Procedure -->
  6277. <short>Writes a boolean value to the stream.</short>
  6278. </element>
  6279. <element name="TBinaryObjectWriter.WriteFloat"
  6280. link="TAbstractObjectWriter.WriteFloat"> <!-- Procedure -->
  6281. <short>Writes a float value to the stream.</short>
  6282. </element>
  6283. <element name="TBinaryObjectWriter.WriteSingle"
  6284. link="TAbstractObjectWriter.WriteSingle"> <!-- Procedure -->
  6285. <short>Writes a single-type real value to the stream.</short>
  6286. </element>
  6287. <element name="TBinaryObjectWriter.WriteDate"
  6288. link="TAbstractObjectWriter.WriteDate"> <!-- Procedure -->
  6289. <short>Writes a date type to the stream.</short>
  6290. </element>
  6291. <element name="TBinaryObjectWriter.WriteIdent"
  6292. link="TAbstractObjectWriter.WriteIdent"> <!-- Procedure -->
  6293. <short>Writes an identifier to the stream.</short>
  6294. </element>
  6295. <element name="TBinaryObjectWriter.WriteInteger"
  6296. link="TAbstractObjectWriter.WriteInteger"> <!-- Procedure -->
  6297. <short>Writes an integer value to the stream.</short>
  6298. </element>
  6299. <element name="TBinaryObjectWriter.WriteMethodName"
  6300. link="TAbstractObjectWriter.WriteMethodName"> <!-- Procedure -->
  6301. <short>Writes a methodname to the stream.</short>
  6302. </element>
  6303. <element name="TBinaryObjectWriter.WriteSet"
  6304. link="TAbstractObjectWriter.WriteSet"> <!-- Procedure -->
  6305. <short>Writes a set value to the stream.</short>
  6306. </element>
  6307. <element name="TBinaryObjectWriter.WriteString"
  6308. link="TAbstractObjectWriter.WriteString"> <!-- Procedure -->
  6309. <short>Writes a string value to the stream.</short>
  6310. </element>
  6311. <!--
  6312. *********************************************************************
  6313. TTextObjectWriter
  6314. *********************************************************************
  6315. -->
  6316. <element name="TTextObjectWriter"> <!-- Class -->
  6317. <short>Driver class which stores component data in text format.</short>
  6318. <descr>
  6319. Not yet implemented.
  6320. </descr>
  6321. <seealso>
  6322. </seealso>
  6323. </element>
  6324. <element name="TFindAncestorEvent"> <!-- Procedure type -->
  6325. <short>Event that occurs w</short>
  6326. <descr>
  6327. </descr>
  6328. <seealso>
  6329. </seealso>
  6330. </element>
  6331. <!--
  6332. *********************************************************************
  6333. TWriter
  6334. *********************************************************************
  6335. -->
  6336. <element name="TWriter"> <!-- Class -->
  6337. <short>Object to write component data to an arbitrary format.</short>
  6338. <descr>
  6339. </descr>
  6340. <seealso>
  6341. </seealso>
  6342. </element>
  6343. <element name="TWriter.SetRoot" link="TFiler.SetRoot"> <!-- Procedure -->
  6344. <short>Sets the root component</short>
  6345. </element>
  6346. <element name="TWriter.WriteBinary"> <!-- Procedure -->
  6347. <short>Writes binary data to the stream.</short>
  6348. <descr>
  6349. </descr>
  6350. <seealso>
  6351. </seealso>
  6352. </element>
  6353. <element name="TWriter.WriteProperty"> <!-- Procedure -->
  6354. <short>Writes one property to the stream.</short>
  6355. <descr>
  6356. </descr>
  6357. <seealso>
  6358. </seealso>
  6359. </element>
  6360. <element name="TWriter.WriteProperties"> <!-- Procedure -->
  6361. <short>Writes the published properties to the stream.</short>
  6362. <descr>
  6363. </descr>
  6364. <seealso>
  6365. </seealso>
  6366. </element>
  6367. <element name="TWriter.Create"> <!-- Constructor -->
  6368. <short>Creates a new Writer instance with a driver.</short>
  6369. <descr>
  6370. </descr>
  6371. <seealso>
  6372. </seealso>
  6373. </element>
  6374. <element name="TWriter.Create"> <!-- Constructor -->
  6375. <short>Creates a new Writer with a stream and bufsize.</short>
  6376. <descr>
  6377. </descr>
  6378. <seealso>
  6379. </seealso>
  6380. </element>
  6381. <element name="TWriter.Destroy"> <!-- Destructor -->
  6382. <short>Destroys the writer instance.</short>
  6383. <descr>
  6384. </descr>
  6385. <seealso>
  6386. </seealso>
  6387. </element>
  6388. <element name="TWriter.DefineProperty"> <!-- Procedure -->
  6389. <short>Callback used when defining and streaming custom properties.</short>
  6390. <descr>
  6391. </descr>
  6392. <seealso>
  6393. </seealso>
  6394. </element>
  6395. <element name="TWriter.DefineBinaryProperty"> <!-- Procedure -->
  6396. <short>Callback used when defining and streaming custom properties.</short>
  6397. <descr>
  6398. </descr>
  6399. <seealso>
  6400. </seealso>
  6401. </element>
  6402. <element name="TWriter.WriteBoolean"> <!-- Procedure -->
  6403. <short>Write boolean value to the stream.</short>
  6404. <descr>
  6405. </descr>
  6406. <seealso>
  6407. </seealso>
  6408. </element>
  6409. <element name="TWriter.WriteCollection"> <!-- Procedure -->
  6410. <short>Write a collection to the stream.</short>
  6411. <descr>
  6412. </descr>
  6413. <seealso>
  6414. </seealso>
  6415. </element>
  6416. <element name="TWriter.WriteComponent"> <!-- Procedure -->
  6417. <short>Stream a component to the stream.</short>
  6418. <descr>
  6419. </descr>
  6420. <seealso>
  6421. </seealso>
  6422. </element>
  6423. <element name="TWriter.WriteChar"> <!-- Procedure -->
  6424. <short>Write a character to the stream.</short>
  6425. <descr>
  6426. </descr>
  6427. <seealso>
  6428. </seealso>
  6429. </element>
  6430. <element name="TWriter.WriteDescendent"> <!-- Procedure -->
  6431. <short>Write a descendent component to the stream.</short>
  6432. <descr>
  6433. </descr>
  6434. <seealso>
  6435. </seealso>
  6436. </element>
  6437. <element name="TWriter.WriteFloat"> <!-- Procedure -->
  6438. <short>Write a float to the stream.</short>
  6439. <descr>
  6440. </descr>
  6441. <seealso>
  6442. </seealso>
  6443. </element>
  6444. <element name="TWriter.WriteSingle"> <!-- Procedure -->
  6445. <short>Write a single-type real to the stream.</short>
  6446. <descr>
  6447. </descr>
  6448. <seealso>
  6449. </seealso>
  6450. </element>
  6451. <element name="TWriter.WriteDate"> <!-- Procedure -->
  6452. <short>Write a date to the stream.</short>
  6453. <descr>
  6454. </descr>
  6455. <seealso>
  6456. </seealso>
  6457. </element>
  6458. <element name="TWriter.WriteIdent"> <!-- Procedure -->
  6459. <short>Write an identifier to the stream.</short>
  6460. <descr>
  6461. </descr>
  6462. <seealso>
  6463. </seealso>
  6464. </element>
  6465. <element name="TWriter.WriteInteger"> <!-- Procedure -->
  6466. <short>Write an integer to the stream.</short>
  6467. <descr>
  6468. </descr>
  6469. <seealso>
  6470. </seealso>
  6471. </element>
  6472. <element name="TWriter.WriteListBegin"> <!-- Procedure -->
  6473. <short>Write a start-of-list marker to the stream.</short>
  6474. <descr>
  6475. </descr>
  6476. <seealso>
  6477. </seealso>
  6478. </element>
  6479. <element name="TWriter.WriteListEnd"> <!-- Procedure -->
  6480. <short>Write an end-of-list marker to the stream.</short>
  6481. <descr>
  6482. </descr>
  6483. <seealso>
  6484. </seealso>
  6485. </element>
  6486. <element name="TWriter.WriteRootComponent"> <!-- Procedure -->
  6487. <short>Write a root component to the stream.</short>
  6488. <descr>
  6489. </descr>
  6490. <seealso>
  6491. </seealso>
  6492. </element>
  6493. <element name="TWriter.WriteString"> <!-- Procedure -->
  6494. <short>Write a string to the stream.</short>
  6495. <descr>
  6496. </descr>
  6497. <seealso>
  6498. </seealso>
  6499. </element>
  6500. <element name="TWriter.RootAncestor"> <!-- Property -->
  6501. <short>Ancestor of root component.</short>
  6502. <descr>
  6503. </descr>
  6504. <seealso>
  6505. </seealso>
  6506. </element>
  6507. <element name="TWriter.OnFindAncestor"> <!-- Property -->
  6508. <short>Event occurring when an ancestor component must be found.</short>
  6509. <descr>
  6510. </descr>
  6511. <seealso>
  6512. </seealso>
  6513. </element>
  6514. <element name="TWriter.Driver"> <!-- Property -->
  6515. <short>Driver used when writing to the stream.</short>
  6516. <descr>
  6517. </descr>
  6518. <seealso>
  6519. </seealso>
  6520. </element>
  6521. <!--
  6522. *********************************************************************
  6523. TParser
  6524. *********************************************************************
  6525. -->
  6526. <element name="TParser"> <!-- Class -->
  6527. <short>Class to parse the contents of a stream containing text data.</short>
  6528. <descr>
  6529. </descr>
  6530. <seealso>
  6531. </seealso>
  6532. </element>
  6533. <element name="TParser.Create"> <!-- Constructor -->
  6534. <short>Creates a new parser instance.</short>
  6535. <descr>
  6536. </descr>
  6537. <seealso>
  6538. </seealso>
  6539. </element>
  6540. <element name="TParser.Destroy"> <!-- Destructor -->
  6541. <short>Destroys the parser instance.</short>
  6542. <descr>
  6543. </descr>
  6544. <seealso>
  6545. </seealso>
  6546. </element>
  6547. <element name="TParser.CheckToken"> <!-- Procedure -->
  6548. <short>Checks whether the token if of the given type.</short>
  6549. <descr>
  6550. </descr>
  6551. <seealso>
  6552. </seealso>
  6553. </element>
  6554. <element name="TParser.CheckTokenSymbol"> <!-- Procedure -->
  6555. <short>Checks whether the token equals the given symbol</short>
  6556. <descr>
  6557. </descr>
  6558. <seealso>
  6559. </seealso>
  6560. </element>
  6561. <element name="TParser.Error"> <!-- Procedure -->
  6562. <short>Raises an <link id="EParserError"/> exception with the given message</short>
  6563. <descr>
  6564. </descr>
  6565. <seealso>
  6566. </seealso>
  6567. </element>
  6568. <element name="TParser.ErrorFmt"> <!-- Procedure -->
  6569. <short>Raises an <link id="EParserError"/> exception and formats the message.</short>
  6570. <descr>
  6571. </descr>
  6572. <seealso>
  6573. </seealso>
  6574. </element>
  6575. <element name="TParser.ErrorStr"> <!-- Procedure -->
  6576. <short>Raises an <link id="EParserError"/> exception with the given message</short>
  6577. <descr>
  6578. </descr>
  6579. <seealso>
  6580. </seealso>
  6581. </element>
  6582. <element name="TParser.HexToBinary"> <!-- Procedure -->
  6583. <short>Writes hexadecimal data to the stream.</short>
  6584. <descr>
  6585. </descr>
  6586. <seealso>
  6587. </seealso>
  6588. </element>
  6589. <element name="TParser.NextToken"> <!-- Function -->
  6590. <short>Reads the next token and returns its type.</short>
  6591. <descr>
  6592. </descr>
  6593. <seealso>
  6594. </seealso>
  6595. </element>
  6596. <element name="TParser.SourcePos"> <!-- Function -->
  6597. <short>Returns the current position in the stream.</short>
  6598. <descr>
  6599. </descr>
  6600. <seealso>
  6601. </seealso>
  6602. </element>
  6603. <element name="TParser.TokenComponentIdent"> <!-- Function -->
  6604. <short>Checks whether the current token is a component identifier.</short>
  6605. <descr>
  6606. </descr>
  6607. <seealso>
  6608. </seealso>
  6609. </element>
  6610. <element name="TParser.TokenFloat"> <!-- Function -->
  6611. <short>Returns the current token as a float.</short>
  6612. <descr>
  6613. </descr>
  6614. <seealso>
  6615. </seealso>
  6616. </element>
  6617. <element name="TParser.TokenInt"> <!-- Function -->
  6618. <short>Returns the current token as an integer.</short>
  6619. <descr>
  6620. </descr>
  6621. <seealso>
  6622. </seealso>
  6623. </element>
  6624. <element name="TParser.TokenString"> <!-- Function -->
  6625. <short>Returns the current token as a string.</short>
  6626. <descr>
  6627. </descr>
  6628. <seealso>
  6629. </seealso>
  6630. </element>
  6631. <element name="TParser.TokenSymbolIs"> <!-- Function -->
  6632. <short>Returns <var>True</var> if the current token is a symbol.</short>
  6633. <descr>
  6634. </descr>
  6635. <seealso>
  6636. </seealso>
  6637. </element>
  6638. <element name="TParser.SourceLine"> <!-- Property -->
  6639. <short>Current source linenumber.</short>
  6640. <descr>
  6641. </descr>
  6642. <seealso>
  6643. </seealso>
  6644. </element>
  6645. <element name="TParser.Token"> <!-- Property -->
  6646. <short>Contents of the current token.</short>
  6647. <descr>
  6648. </descr>
  6649. <seealso>
  6650. </seealso>
  6651. </element>
  6652. <!--
  6653. *********************************************************************
  6654. EThread
  6655. *********************************************************************
  6656. -->
  6657. <element name="EThread"> <!-- Class -->
  6658. <short>Thread error exception.</short>
  6659. <descr>
  6660. </descr>
  6661. <seealso>
  6662. </seealso>
  6663. </element>
  6664. <element name="TThreadMethod"> <!-- Procedure type -->
  6665. <short>Procedure variable used when synchronizing threads.</short>
  6666. <descr>
  6667. </descr>
  6668. <seealso>
  6669. </seealso>
  6670. </element>
  6671. <element name="TThreadPriority"> <!-- Enumeration type -->
  6672. <short>Enumeration specifying the priority at which a thread runs.</short>
  6673. <descr>
  6674. </descr>
  6675. <seealso>
  6676. </seealso>
  6677. </element>
  6678. <element name="TThreadPriority.tpIdle"> <!-- Enumeration value -->
  6679. <short>Thread only runs when other processes are idle.</short>
  6680. <descr>
  6681. </descr>
  6682. <seealso>
  6683. </seealso>
  6684. </element>
  6685. <element name="TThreadPriority.tpLowest"> <!-- Enumeration value -->
  6686. <short>Thread runs at the lowest priority.</short>
  6687. <descr>
  6688. </descr>
  6689. <seealso>
  6690. </seealso>
  6691. </element>
  6692. <element name="TThreadPriority.tpLower"> <!-- Enumeration value -->
  6693. <short>Thread runs at a lower priority.</short>
  6694. <descr>
  6695. </descr>
  6696. <seealso>
  6697. </seealso>
  6698. </element>
  6699. <element name="TThreadPriority.tpNormal"> <!-- Enumeration value -->
  6700. <short>Thread runs at normal process priority.</short>
  6701. <descr>
  6702. </descr>
  6703. <seealso>
  6704. </seealso>
  6705. </element>
  6706. <element name="TThreadPriority.tpHigher"> <!-- Enumeration value -->
  6707. <short>Thread runs at high priority</short>
  6708. <descr>
  6709. </descr>
  6710. <seealso>
  6711. </seealso>
  6712. </element>
  6713. <element name="TThreadPriority.tpHighest"> <!-- Enumeration value -->
  6714. <short>Thread runs at highest possible priority.</short>
  6715. <descr>
  6716. </descr>
  6717. <seealso>
  6718. </seealso>
  6719. </element>
  6720. <element name="TThreadPriority.tpTimeCritical"> <!-- Enumeration value -->
  6721. <short>Thread runs at realtime priority.</short>
  6722. <descr>
  6723. </descr>
  6724. <seealso>
  6725. </seealso>
  6726. </element>
  6727. <!--
  6728. *********************************************************************
  6729. TThread
  6730. *********************************************************************
  6731. -->
  6732. <element name="TThread"> <!-- Class -->
  6733. <short>Abstract Thread class.</short>
  6734. <descr>
  6735. The <var>TThread</var> class encapsulates the native thread support of the
  6736. operating system. To create a thread, declare a descendent of the
  6737. <var>TThread</var> object and override the <link
  6738. id="TThread.Execute">Execute</link> method. In this method, the thhread's
  6739. code should be executed. To run a thread, create an instance of the tthread
  6740. descendent, and call it's execute method.
  6741. </descr>
  6742. <seealso>
  6743. <link id="EThread"/>
  6744. <link id="TThread.Execute"/>
  6745. </seealso>
  6746. </element>
  6747. <element name="TThread.DoTerminate"> <!-- Procedure -->
  6748. <short>Terminates the thread.</short>
  6749. <descr>
  6750. </descr>
  6751. <seealso>
  6752. </seealso>
  6753. </element>
  6754. <element name="TThread.Execute"> <!-- Procedure -->
  6755. <short>Execute method. Should be overridden in a descendent thread.</short>
  6756. <descr>
  6757. </descr>
  6758. <seealso>
  6759. </seealso>
  6760. </element>
  6761. <element name="TThread.Synchronize"> <!-- Procedure -->
  6762. <short>Synchronizes the thread by executing the method in the main thread.</short>
  6763. <descr>
  6764. </descr>
  6765. <seealso>
  6766. </seealso>
  6767. </element>
  6768. <element name="TThread.ReturnValue"> <!-- Property -->
  6769. <short>Return value of the thread when it stops executing.</short>
  6770. <descr>
  6771. </descr>
  6772. <seealso>
  6773. </seealso>
  6774. </element>
  6775. <element name="TThread.Terminated"> <!-- Property -->
  6776. <short>Indicates whether the <link id="TThread.Terminate">Terminate</link>method was called by the user.</short>
  6777. <descr>
  6778. </descr>
  6779. <seealso>
  6780. </seealso>
  6781. </element>
  6782. <element name="TThread.FStackPointer"> <!-- Variable -->
  6783. <short></short>
  6784. <descr>
  6785. </descr>
  6786. <seealso>
  6787. </seealso>
  6788. </element>
  6789. <element name="TThread.FStackSize"> <!-- Variable -->
  6790. <short></short>
  6791. <descr>
  6792. </descr>
  6793. <seealso>
  6794. </seealso>
  6795. </element>
  6796. <element name="TThread.FCallExitProcess"> <!-- Variable -->
  6797. <short></short>
  6798. <descr>
  6799. </descr>
  6800. <seealso>
  6801. </seealso>
  6802. </element>
  6803. <element name="TThread.Create"> <!-- Constructor -->
  6804. <short>Creates a new thread.</short>
  6805. <descr>
  6806. </descr>
  6807. <seealso>
  6808. </seealso>
  6809. </element>
  6810. <element name="TThread.Destroy"> <!-- Destructor -->
  6811. <short>Destroys the thread object.</short>
  6812. <descr>
  6813. </descr>
  6814. <seealso>
  6815. </seealso>
  6816. </element>
  6817. <element name="TThread.Resume"> <!-- Procedure -->
  6818. <short>Resumes the thread's execution.</short>
  6819. <descr>
  6820. </descr>
  6821. <seealso>
  6822. </seealso>
  6823. </element>
  6824. <element name="TThread.Suspend"> <!-- Procedure -->
  6825. <short>Suspends the thread's execution.</short>
  6826. <descr>
  6827. </descr>
  6828. <seealso>
  6829. </seealso>
  6830. </element>
  6831. <element name="TThread.Terminate"> <!-- Procedure -->
  6832. <short>Signals the thread it should terminate.</short>
  6833. <descr>
  6834. </descr>
  6835. <seealso>
  6836. </seealso>
  6837. </element>
  6838. <element name="TThread.WaitFor"> <!-- Function -->
  6839. <short>Waits for the thread to terminate and returns the exit status.</short>
  6840. <descr>
  6841. </descr>
  6842. <seealso>
  6843. </seealso>
  6844. </element>
  6845. <element name="TThread.FreeOnTerminate"> <!-- Property -->
  6846. <short>Indicates whether the thread should free itself when it stops executing.</short>
  6847. <descr>
  6848. </descr>
  6849. <seealso>
  6850. </seealso>
  6851. </element>
  6852. <element name="TThread.Handle"> <!-- Property -->
  6853. <short>Returns the thread handle.</short>
  6854. <descr>
  6855. </descr>
  6856. <seealso>
  6857. </seealso>
  6858. </element>
  6859. <element name="TThread.Priority"> <!-- Property -->
  6860. <short>Returns the thread priority.</short>
  6861. <descr>
  6862. </descr>
  6863. <seealso>
  6864. </seealso>
  6865. </element>
  6866. <element name="TThread.Suspended"> <!-- Property -->
  6867. <short>Indicates whether the thread is suspended.</short>
  6868. <descr>
  6869. </descr>
  6870. <seealso>
  6871. </seealso>
  6872. </element>
  6873. <element name="TThread.ThreadID"> <!-- Property -->
  6874. <short>Returns the thread ID.</short>
  6875. <descr>
  6876. </descr>
  6877. <seealso>
  6878. </seealso>
  6879. </element>
  6880. <element name="TThread.OnTerminate"> <!-- Property -->
  6881. <short>Event called when the thread terminates.</short>
  6882. <descr>
  6883. </descr>
  6884. <seealso>
  6885. </seealso>
  6886. </element>
  6887. <element name="TOperation"> <!-- Enumeration type -->
  6888. <short>Operation of which a component is notified.</short>
  6889. <descr>
  6890. </descr>
  6891. <seealso>
  6892. </seealso>
  6893. </element>
  6894. <element name="TOperation.opInsert"> <!-- Enumeration value -->
  6895. <short>A new component is being inserted in the child component list.</short>
  6896. <descr>
  6897. </descr>
  6898. <seealso>
  6899. </seealso>
  6900. </element>
  6901. <element name="TOperation.opRemove"> <!-- Enumeration value -->
  6902. <short>A component is being removed from the child component list.</short>
  6903. <descr>
  6904. </descr>
  6905. <seealso>
  6906. </seealso>
  6907. </element>
  6908. <element name="TComponentState"> <!-- Set type -->
  6909. <short>Indicates the state of the component during the streaming process.</short>
  6910. <descr>
  6911. </descr>
  6912. <seealso>
  6913. </seealso>
  6914. </element>
  6915. <element name="TComponentState.csLoading"> <!-- Enumeration value -->
  6916. <short>The component is being loaded from the stream.</short>
  6917. <descr>
  6918. </descr>
  6919. <seealso>
  6920. </seealso>
  6921. </element>
  6922. <element name="TComponentState.csReading"> <!-- Enumeration value -->
  6923. <short>Properties are being read from the stream.</short>
  6924. <descr>
  6925. </descr>
  6926. <seealso>
  6927. </seealso>
  6928. </element>
  6929. <element name="TComponentState.csWriting"> <!-- Enumeration value -->
  6930. <short>Properties are being written to the stream.</short>
  6931. <descr>
  6932. </descr>
  6933. <seealso>
  6934. </seealso>
  6935. </element>
  6936. <element name="TComponentState.csDestroying"> <!-- Enumeration value -->
  6937. <short>The component is being destroyed.</short>
  6938. <descr>
  6939. </descr>
  6940. <seealso>
  6941. </seealso>
  6942. </element>
  6943. <element name="TComponentState.csDesigning"> <!-- Enumeration value -->
  6944. <short>The component is being designed in an IDE.</short>
  6945. <descr>
  6946. </descr>
  6947. <seealso>
  6948. </seealso>
  6949. </element>
  6950. <element name="TComponentState.csAncestor"> <!-- Enumeration value -->
  6951. <short>The component is being streamed as part of a frame (?) </short>
  6952. <descr>
  6953. </descr>
  6954. <seealso>
  6955. </seealso>
  6956. </element>
  6957. <element name="TComponentState.csUpdating"> <!-- Enumeration value -->
  6958. <short>The component is being updated.</short>
  6959. <descr>
  6960. </descr>
  6961. <seealso>
  6962. </seealso>
  6963. </element>
  6964. <element name="TComponentState.csFixups"> <!-- Enumeration value -->
  6965. <short>The component's references to other components are being fixed.</short>
  6966. <descr>
  6967. </descr>
  6968. <seealso>
  6969. </seealso>
  6970. </element>
  6971. <element name="TComponentState.csFreeNotification"> <!-- Enumeration value -->
  6972. <short>Indicates whether the component has freenotifications</short>
  6973. <descr>
  6974. </descr>
  6975. <seealso>
  6976. </seealso>
  6977. </element>
  6978. <element name="TComponentState.csInline"> <!-- Enumeration value -->
  6979. <short>Component is part of a frame (?).</short>
  6980. <descr>
  6981. </descr>
  6982. <seealso>
  6983. </seealso>
  6984. </element>
  6985. <element name="TComponentState.csDesignInstance"> <!-- Enumeration value -->
  6986. <short>??</short>
  6987. <descr>
  6988. </descr>
  6989. <seealso>
  6990. </seealso>
  6991. </element>
  6992. <element name="TComponentStyle"> <!-- Set type -->
  6993. <short>Describes the style of the component.</short>
  6994. <descr>
  6995. </descr>
  6996. <seealso>
  6997. </seealso>
  6998. </element>
  6999. <element name="TComponentStyle.csInheritable"> <!-- Enumeration value -->
  7000. <short>The component can be on inherited forms.</short>
  7001. <descr>
  7002. </descr>
  7003. <seealso>
  7004. </seealso>
  7005. </element>
  7006. <element name="TComponentStyle.csCheckPropAvail"> <!-- Enumeration value -->
  7007. <short>??</short>
  7008. <descr>
  7009. </descr>
  7010. <seealso>
  7011. </seealso>
  7012. </element>
  7013. <element name="TGetChildProc"> <!-- Procedure type -->
  7014. <short>Callback used when obtaining child components.</short>
  7015. <descr>
  7016. </descr>
  7017. <seealso>
  7018. </seealso>
  7019. </element>
  7020. <!--
  7021. *********************************************************************
  7022. TComponent
  7023. *********************************************************************
  7024. -->
  7025. <element name="TComponent"> <!-- Class -->
  7026. <short>Base class for all components that need owner-owned functionality.</short>
  7027. <descr>
  7028. </descr>
  7029. <seealso>
  7030. </seealso>
  7031. </element>
  7032. <element name="TComponent.FComponentStyle"> <!-- Variable -->
  7033. <short>Contains the component's style.</short>
  7034. <descr>
  7035. </descr>
  7036. <seealso>
  7037. </seealso>
  7038. </element>
  7039. <element name="TComponent.ChangeName"> <!-- Procedure -->
  7040. <short>Called when the name of the component is changed.</short>
  7041. <descr>
  7042. </descr>
  7043. <seealso>
  7044. </seealso>
  7045. </element>
  7046. <element name="TComponent.DefineProperties"> <!-- Procedure -->
  7047. <short>Defines fake top,left properties for handling in the IDE.</short>
  7048. <descr>
  7049. </descr>
  7050. <seealso>
  7051. </seealso>
  7052. </element>
  7053. <element name="TComponent.GetChildren"> <!-- Procedure -->
  7054. <short>Must be overridden by descendents to return all child components that must be streamed.</short>
  7055. <descr>
  7056. </descr>
  7057. <seealso>
  7058. </seealso>
  7059. </element>
  7060. <element name="TComponent.GetChildOwner"> <!-- Function -->
  7061. <short>Returns the owner of any children.</short>
  7062. <descr>
  7063. </descr>
  7064. <seealso>
  7065. </seealso>
  7066. </element>
  7067. <element name="TComponent.GetChildParent"> <!-- Function -->
  7068. <short>Returns the parent of any children.</short>
  7069. <descr>
  7070. </descr>
  7071. <seealso>
  7072. </seealso>
  7073. </element>
  7074. <element name="TComponent.GetNamePath"> <!-- Function -->
  7075. <short>Returns the name path of this component.</short>
  7076. <descr>
  7077. </descr>
  7078. <seealso>
  7079. </seealso>
  7080. </element>
  7081. <element name="TComponent.GetOwner"> <!-- Function -->
  7082. <short>Returns the owner of this component.</short>
  7083. <descr>
  7084. </descr>
  7085. <seealso>
  7086. </seealso>
  7087. </element>
  7088. <element name="TComponent.Loaded"> <!-- Procedure -->
  7089. <short>Called when the component has finished loading.</short>
  7090. <descr>
  7091. </descr>
  7092. <seealso>
  7093. </seealso>
  7094. </element>
  7095. <element name="TComponent.Notification"> <!-- Procedure -->
  7096. <short>Called by components that are freed and which received a FreeNotification.</short>
  7097. <descr>
  7098. </descr>
  7099. <seealso>
  7100. </seealso>
  7101. </element>
  7102. <element name="TComponent.ReadState"> <!-- Procedure -->
  7103. <short>Read the component's state from a stream.</short>
  7104. <descr>
  7105. </descr>
  7106. <seealso>
  7107. </seealso>
  7108. </element>
  7109. <element name="TComponent.SetAncestor"> <!-- Procedure -->
  7110. <short>Sets the <var>csAncestor</var> state of the component.</short>
  7111. <descr>
  7112. </descr>
  7113. <seealso>
  7114. </seealso>
  7115. </element>
  7116. <element name="TComponent.SetDesigning"> <!-- Procedure -->
  7117. <short>Sets the <var>csDesigning</var> state of the component.</short>
  7118. <descr>
  7119. </descr>
  7120. <seealso>
  7121. </seealso>
  7122. </element>
  7123. <element name="TComponent.SetName"> <!-- Procedure -->
  7124. <short>Write handler for <link id="TComponent.Name">Name</link> property.</short>
  7125. <descr>
  7126. </descr>
  7127. <seealso>
  7128. </seealso>
  7129. </element>
  7130. <element name="TComponent.SetChildOrder"> <!-- Procedure -->
  7131. <short>Determines the order in which children are streamed/created.</short>
  7132. <descr>
  7133. </descr>
  7134. <seealso>
  7135. </seealso>
  7136. </element>
  7137. <element name="TComponent.SetParentComponent"> <!-- Procedure -->
  7138. <short>Set the parent component.</short>
  7139. <descr>
  7140. </descr>
  7141. <seealso>
  7142. </seealso>
  7143. </element>
  7144. <element name="TComponent.Updating"> <!-- Procedure -->
  7145. <short>Sets the state to <var>csUpdating</var></short>
  7146. <descr>
  7147. </descr>
  7148. <seealso>
  7149. </seealso>
  7150. </element>
  7151. <element name="TComponent.Updated"> <!-- Procedure -->
  7152. <short>Ends the <var>csUpdating</var> state.</short>
  7153. <descr>
  7154. </descr>
  7155. <seealso>
  7156. </seealso>
  7157. </element>
  7158. <element name="TComponent.UpdateRegistry"> <!-- Procedure -->
  7159. <short>For compatibilty only.</short>
  7160. <descr>
  7161. </descr>
  7162. <seealso>
  7163. </seealso>
  7164. </element>
  7165. <element name="TComponent.ValidateRename"> <!-- Procedure -->
  7166. <short>Called when a name change must be validated</short>
  7167. <descr>
  7168. </descr>
  7169. <seealso>
  7170. </seealso>
  7171. </element>
  7172. <element name="TComponent.ValidateContainer"> <!-- Procedure -->
  7173. <short>??</short>
  7174. <descr>
  7175. </descr>
  7176. <seealso>
  7177. </seealso>
  7178. </element>
  7179. <element name="TComponent.ValidateInsert"> <!-- Procedure -->
  7180. <short>Called when an insert must be validated.</short>
  7181. <descr>
  7182. </descr>
  7183. <seealso>
  7184. </seealso>
  7185. </element>
  7186. <element name="TComponent.WriteState"> <!-- Procedure -->
  7187. <short>Writes the component to a stream.</short>
  7188. <descr>
  7189. </descr>
  7190. <seealso>
  7191. </seealso>
  7192. </element>
  7193. <element name="TComponent.Create"> <!-- Constructor -->
  7194. <short>Creates a new instance of the component.</short>
  7195. <descr>
  7196. </descr>
  7197. <seealso>
  7198. </seealso>
  7199. </element>
  7200. <element name="TComponent.Destroy"> <!-- Destructor -->
  7201. <short>Destroys the instance of the component.</short>
  7202. <descr>
  7203. </descr>
  7204. <seealso>
  7205. </seealso>
  7206. </element>
  7207. <element name="TComponent.DestroyComponents"> <!-- Procedure -->
  7208. <short>Destroy child components.</short>
  7209. <descr>
  7210. </descr>
  7211. <seealso>
  7212. </seealso>
  7213. </element>
  7214. <element name="TComponent.Destroying"> <!-- Procedure -->
  7215. <short>Called when the component is being destroyed</short>
  7216. <descr>
  7217. </descr>
  7218. <seealso>
  7219. </seealso>
  7220. </element>
  7221. <element name="TComponent.FindComponent"> <!-- Function -->
  7222. <short>Finds and returns the named component in the owned components.</short>
  7223. <descr>
  7224. </descr>
  7225. <seealso>
  7226. </seealso>
  7227. </element>
  7228. <element name="TComponent.FreeNotification"> <!-- Procedure -->
  7229. <short>Ask the component to notify called when it is being destroyed.</short>
  7230. <descr>
  7231. </descr>
  7232. <seealso>
  7233. </seealso>
  7234. </element>
  7235. <element name="TComponent.FreeOnRelease"> <!-- Procedure -->
  7236. <short>Part of the <var>IVCLComObject</var> interface.</short>
  7237. <descr>
  7238. </descr>
  7239. <seealso>
  7240. </seealso>
  7241. </element>
  7242. <element name="TComponent.GetParentComponent"> <!-- Function -->
  7243. <short>Returns the parent component.</short>
  7244. <descr>
  7245. </descr>
  7246. <seealso>
  7247. </seealso>
  7248. </element>
  7249. <element name="TComponent.HasParent"> <!-- Function -->
  7250. <short>Does the component have a parent ?</short>
  7251. <descr>
  7252. </descr>
  7253. <seealso>
  7254. </seealso>
  7255. </element>
  7256. <element name="TComponent.InsertComponent"> <!-- Procedure -->
  7257. <short>Insert the given component in the list of owned components.</short>
  7258. <descr>
  7259. </descr>
  7260. <seealso>
  7261. </seealso>
  7262. </element>
  7263. <element name="TComponent.RemoveComponent"> <!-- Procedure -->
  7264. <short>Remove the given component from the list of owned components.</short>
  7265. <descr>
  7266. </descr>
  7267. <seealso>
  7268. </seealso>
  7269. </element>
  7270. <element name="TComponent.SafeCallException"> <!-- Function -->
  7271. <short>Part of the <var>IVCLComObject</var> Interface.</short>
  7272. <descr>
  7273. </descr>
  7274. <seealso>
  7275. </seealso>
  7276. </element>
  7277. <element name="TComponent.Components"> <!-- Property -->
  7278. <short>Indexed list (zero-based) of all owned components.</short>
  7279. <descr>
  7280. </descr>
  7281. <seealso>
  7282. </seealso>
  7283. </element>
  7284. <element name="TComponent.ComponentCount"> <!-- Property -->
  7285. <short>Count of owned components</short>
  7286. <descr>
  7287. </descr>
  7288. <seealso>
  7289. </seealso>
  7290. </element>
  7291. <element name="TComponent.ComponentIndex"> <!-- Property -->
  7292. <short>Index of component in it's owner's list.</short>
  7293. <descr>
  7294. </descr>
  7295. <seealso>
  7296. </seealso>
  7297. </element>
  7298. <element name="TComponent.ComponentState"> <!-- Property -->
  7299. <short>Current component's state.</short>
  7300. <descr>
  7301. </descr>
  7302. <seealso>
  7303. </seealso>
  7304. </element>
  7305. <element name="TComponent.ComponentStyle"> <!-- Property -->
  7306. <short>Current component's style.</short>
  7307. <descr>
  7308. </descr>
  7309. <seealso>
  7310. </seealso>
  7311. </element>
  7312. <element name="TComponent.DesignInfo"> <!-- Property -->
  7313. <short>Information for IDE designer.</short>
  7314. <descr>
  7315. </descr>
  7316. <seealso>
  7317. </seealso>
  7318. </element>
  7319. <element name="TComponent.Owner"> <!-- Property -->
  7320. <short>Owner of this component.</short>
  7321. <descr>
  7322. </descr>
  7323. <seealso>
  7324. </seealso>
  7325. </element>
  7326. <element name="TComponent.VCLComObject"> <!-- Property -->
  7327. <short>Not implemented.</short>
  7328. <descr>
  7329. </descr>
  7330. <seealso>
  7331. </seealso>
  7332. </element>
  7333. <element name="TComponent.Name"> <!-- Property -->
  7334. <short>Name of the component.</short>
  7335. <descr>
  7336. </descr>
  7337. <seealso>
  7338. </seealso>
  7339. </element>
  7340. <element name="TComponent.Tag"> <!-- Property -->
  7341. <short>Tag value of the component.</short>
  7342. <descr>
  7343. </descr>
  7344. <seealso>
  7345. </seealso>
  7346. </element>
  7347. <element name="TActiveXRegType"> <!-- Enumeration type -->
  7348. <short>Used when registering ActveX component types.</short>
  7349. <descr>
  7350. </descr>
  7351. <seealso>
  7352. </seealso>
  7353. </element>
  7354. <element name="TActiveXRegType.axrComponentOnly"> <!-- Enumeration value -->
  7355. <short></short>
  7356. <descr>
  7357. </descr>
  7358. <seealso>
  7359. </seealso>
  7360. </element>
  7361. <element name="TActiveXRegType.axrIncludeDescendants"> <!-- Enumeration value -->
  7362. <short></short>
  7363. <descr>
  7364. </descr>
  7365. <seealso>
  7366. </seealso>
  7367. </element>
  7368. <element name="RegisterComponentsProc"> <!-- Variable -->
  7369. <short>Callback procedure used when handling component registration.</short>
  7370. <descr>
  7371. </descr>
  7372. <seealso>
  7373. </seealso>
  7374. </element>
  7375. <element name="RegisterNoIconProc"> <!-- Variable -->
  7376. <short>>Callback procedure used when handling iconless component
  7377. registration.</short>
  7378. <descr>
  7379. </descr>
  7380. <seealso>
  7381. </seealso>
  7382. </element>
  7383. <element name="Point"> <!-- Function -->
  7384. <short>Returns a <var>TPoint</var> record with the given coordinates.</short>
  7385. <descr>
  7386. </descr>
  7387. <seealso>
  7388. </seealso>
  7389. </element>
  7390. <element name="SmallPoint"> <!-- Function -->
  7391. <short>Returns a <var>TSmallPoint</var> record with the given coordinates.</short>
  7392. <descr>
  7393. </descr>
  7394. <seealso>
  7395. </seealso>
  7396. </element>
  7397. <element name="Rect"> <!-- Function -->
  7398. <short>Returns a <var>TRect</var> record with the given coordinates.</short>
  7399. <descr>
  7400. </descr>
  7401. <seealso>
  7402. </seealso>
  7403. </element>
  7404. <element name="Bounds"> <!-- Function -->
  7405. <short>Returns a <var>TRect</var> structure with the bounding rect of the
  7406. given location and size.</short>
  7407. <descr>
  7408. </descr>
  7409. <seealso>
  7410. </seealso>
  7411. </element>
  7412. <element name="RegisterClass"> <!-- Procedure -->
  7413. <short>Registers a class with the streaming system.</short>
  7414. <descr>
  7415. </descr>
  7416. <seealso>
  7417. </seealso>
  7418. </element>
  7419. <element name="RegisterClasses"> <!-- Procedure -->
  7420. <short>Registers multiple classes with the streaming system.</short>
  7421. <descr>
  7422. </descr>
  7423. <seealso>
  7424. </seealso>
  7425. </element>
  7426. <element name="RegisterClassAlias"> <!-- Procedure -->
  7427. <short>Registers a class alias with the streaming system.</short>
  7428. <descr>
  7429. </descr>
  7430. <seealso>
  7431. </seealso>
  7432. </element>
  7433. <element name="UnRegisterClass"> <!-- Procedure -->
  7434. <short>Unregisters a class from the streaming system.</short>
  7435. <descr>
  7436. </descr>
  7437. <seealso>
  7438. </seealso>
  7439. </element>
  7440. <element name="UnRegisterClasses"> <!-- Procedure -->
  7441. <short>Unregisters multiple classes from the streaming system.</short>
  7442. <descr>
  7443. </descr>
  7444. <seealso>
  7445. </seealso>
  7446. </element>
  7447. <element name="UnRegisterModuleClasses"> <!-- Procedure -->
  7448. <short></short>
  7449. <descr>
  7450. </descr>
  7451. <seealso>
  7452. </seealso>
  7453. </element>
  7454. <element name="FindClass"> <!-- Function -->
  7455. <short>Returns the class pointer of a class with given name.</short>
  7456. <descr>
  7457. </descr>
  7458. <seealso>
  7459. </seealso>
  7460. </element>
  7461. <element name="GetClass"> <!-- Function -->
  7462. <short>Returns the class pointer of a class with given name.</short>
  7463. <descr>
  7464. </descr>
  7465. <seealso>
  7466. </seealso>
  7467. </element>
  7468. <element name="RegisterComponents"> <!-- Procedure -->
  7469. <short>Registers components for the component palette.</short>
  7470. <descr>
  7471. </descr>
  7472. <seealso>
  7473. </seealso>
  7474. </element>
  7475. <element name="RegisterNoIcon"> <!-- Procedure -->
  7476. <short>Registers components that have no icon on component palette.</short>
  7477. <descr>
  7478. </descr>
  7479. <seealso>
  7480. </seealso>
  7481. </element>
  7482. <element name="RegisterNonActiveX"> <!-- Procedure -->
  7483. <short>Register non-activex component.</short>
  7484. <descr>
  7485. </descr>
  7486. <seealso>
  7487. </seealso>
  7488. </element>
  7489. <element name="TIdentMapEntry"> <!-- Record type -->
  7490. <short>Record used when associating names with integer values.</short>
  7491. <descr>
  7492. </descr>
  7493. <seealso>
  7494. </seealso>
  7495. </element>
  7496. <element name="TIdentMapEntry.Value"> <!-- Variable -->
  7497. <short>Integer value</short>
  7498. <descr>
  7499. </descr>
  7500. <seealso>
  7501. </seealso>
  7502. </element>
  7503. <element name="TIdentMapEntry.Name"> <!-- Variable -->
  7504. <short>Name of the integer value.</short>
  7505. <descr>
  7506. </descr>
  7507. <seealso>
  7508. </seealso>
  7509. </element>
  7510. <element name="TIdentToInt"> <!-- Function type -->
  7511. <short>Callback for converting identifiers to integers.</short>
  7512. <descr>
  7513. </descr>
  7514. <seealso>
  7515. </seealso>
  7516. </element>
  7517. <element name="TIntToIdent"> <!-- Function type -->
  7518. <short>Callback for converting integers to identifiers.</short>
  7519. <descr>
  7520. </descr>
  7521. <seealso>
  7522. </seealso>
  7523. </element>
  7524. <element name="TFindGlobalComponent"> <!-- Function type -->
  7525. <short>Callback type to search for a component.</short>
  7526. <descr>
  7527. </descr>
  7528. <seealso>
  7529. </seealso>
  7530. </element>
  7531. <element name="MainThreadID"> <!-- Variable -->
  7532. <short>ID of main thread. Unused at this point.</short>
  7533. <descr>
  7534. </descr>
  7535. <seealso>
  7536. </seealso>
  7537. </element>
  7538. <element name="FindGlobalComponent"> <!-- Variable -->
  7539. <short>Callback used when a component must be found.</short>
  7540. <descr>
  7541. </descr>
  7542. <seealso>
  7543. </seealso>
  7544. </element>
  7545. <element name="RegisterIntegerConsts"> <!-- Procedure -->
  7546. <short>Registers some integer-to-identifier mappings.</short>
  7547. <descr>
  7548. </descr>
  7549. <seealso>
  7550. </seealso>
  7551. </element>
  7552. <element name="IdentToInt"> <!-- Function -->
  7553. <short>Returns the integer value that corresponds with the identifier.</short>
  7554. <descr>
  7555. </descr>
  7556. <seealso>
  7557. </seealso>
  7558. </element>
  7559. <element name="IntToIdent"> <!-- Function -->
  7560. <short></short>
  7561. <descr>
  7562. </descr>
  7563. <seealso>
  7564. </seealso>
  7565. </element>
  7566. <element name="InitInheritedComponent"> <!-- Function -->
  7567. <short></short>
  7568. <descr>
  7569. </descr>
  7570. <seealso>
  7571. </seealso>
  7572. </element>
  7573. <element name="InitComponentRes"> <!-- Function -->
  7574. <short></short>
  7575. <descr>
  7576. </descr>
  7577. <seealso>
  7578. </seealso>
  7579. </element>
  7580. <element name="ReadComponentRes"> <!-- Function -->
  7581. <short></short>
  7582. <descr>
  7583. </descr>
  7584. <seealso>
  7585. </seealso>
  7586. </element>
  7587. <element name="ReadComponentResEx"> <!-- Function -->
  7588. <short></short>
  7589. <descr>
  7590. </descr>
  7591. <seealso>
  7592. </seealso>
  7593. </element>
  7594. <element name="ReadComponentResFile"> <!-- Function -->
  7595. <short></short>
  7596. <descr>
  7597. </descr>
  7598. <seealso>
  7599. </seealso>
  7600. </element>
  7601. <element name="WriteComponentResFile"> <!-- Procedure -->
  7602. <short></short>
  7603. <descr>
  7604. </descr>
  7605. <seealso>
  7606. </seealso>
  7607. </element>
  7608. <element name="GlobalFixupReferences"> <!-- Procedure -->
  7609. <short></short>
  7610. <descr>
  7611. </descr>
  7612. <seealso>
  7613. </seealso>
  7614. </element>
  7615. <element name="GetFixupReferenceNames"> <!-- Procedure -->
  7616. <short></short>
  7617. <descr>
  7618. </descr>
  7619. <seealso>
  7620. </seealso>
  7621. </element>
  7622. <element name="GetFixupInstanceNames"> <!-- Procedure -->
  7623. <short></short>
  7624. <descr>
  7625. </descr>
  7626. <seealso>
  7627. </seealso>
  7628. </element>
  7629. <element name="RedirectFixupReferences"> <!-- Procedure -->
  7630. <short></short>
  7631. <descr>
  7632. </descr>
  7633. <seealso>
  7634. </seealso>
  7635. </element>
  7636. <element name="RemoveFixupReferences"> <!-- Procedure -->
  7637. <short></short>
  7638. <descr>
  7639. </descr>
  7640. <seealso>
  7641. </seealso>
  7642. </element>
  7643. <element name="RemoveFixups"> <!-- Procedure -->
  7644. <short></short>
  7645. <descr>
  7646. </descr>
  7647. <seealso>
  7648. </seealso>
  7649. </element>
  7650. <element name="FindNestedComponent"> <!-- Function -->
  7651. <short></short>
  7652. <descr>
  7653. </descr>
  7654. <seealso>
  7655. </seealso>
  7656. </element>
  7657. <element name="BeginGlobalLoading"> <!-- Procedure -->
  7658. <short></short>
  7659. <descr>
  7660. </descr>
  7661. <seealso>
  7662. </seealso>
  7663. </element>
  7664. <element name="NotifyGlobalLoading"> <!-- Procedure -->
  7665. <short></short>
  7666. <descr>
  7667. </descr>
  7668. <seealso>
  7669. </seealso>
  7670. </element>
  7671. <element name="EndGlobalLoading"> <!-- Procedure -->
  7672. <short></short>
  7673. <descr>
  7674. </descr>
  7675. <seealso>
  7676. </seealso>
  7677. </element>
  7678. <element name="CollectionsEqual"> <!-- Function -->
  7679. <short></short>
  7680. <descr>
  7681. </descr>
  7682. <seealso>
  7683. </seealso>
  7684. </element>
  7685. <element name="ObjectBinaryToText"> <!-- Procedure -->
  7686. <short></short>
  7687. <descr>
  7688. </descr>
  7689. <seealso>
  7690. </seealso>
  7691. </element>
  7692. <element name="ObjectTextToBinary"> <!-- Procedure -->
  7693. <short></short>
  7694. <descr>
  7695. </descr>
  7696. <seealso>
  7697. </seealso>
  7698. </element>
  7699. <element name="ObjectResourceToText"> <!-- Procedure -->
  7700. <short></short>
  7701. <descr>
  7702. </descr>
  7703. <seealso>
  7704. </seealso>
  7705. </element>
  7706. <element name="ObjectTextToResource"> <!-- Procedure -->
  7707. <short></short>
  7708. <descr>
  7709. </descr>
  7710. <seealso>
  7711. </seealso>
  7712. </element>
  7713. <element name="LineStart"> <!-- Function -->
  7714. <short></short>
  7715. <descr>
  7716. </descr>
  7717. <seealso>
  7718. </seealso>
  7719. </element>
  7720. <!-- Template for copy&paste:
  7721. <element name="">
  7722. <short>
  7723. </short>
  7724. <descr>
  7725. </descr>
  7726. </element>
  7727. -->
  7728. </module>
  7729. </fpdoc-descriptions>