text
stringlengths
14
6.51M
unit Iocp.ReadWriteLocker; { 用原子操作加临界区实现的读写锁,性能比Delphi自带的高很多 ZY 2011.1.4 测试代码: var L: TIocpReadWriteLocker; L2: TMultiReadExclusiveWriteSynchronizer; t: DWORD; i: Integer; begin L := TIocpReadWriteLocker.Create; t := GetTickCount; for i := 1 to 10000000 do begin L.ReadLock; L.WriteLock; ...
{ Pascal Validation Suite Version 5.7 } { } { (C) Copyright 1982, British Standards Institution } { } { TEST 6.8.3.10-5, FILE=CONF189, CLA...
unit eeCpuMonitor; interface {$INCLUDE Defines.inc} type TCpuMonitor = class private type PTimerData = ^TTimerData; TTimerData = record StartTime : Int64; ProcessTime : double; // time in milliseconds. ProcessLoad : double; // 0..100% of max load. SampleFrames, Sampl...
unit Produto; interface uses DAO.RTTI, DAO.RTTI.Types; type [Table('PRODUTO')] TProduto = class private FValor: Currency; FDescricao: String; FID: Integer; procedure SetDescricao(const Value: String); procedure SetValor(const Value: Currency); public [PKey, FieldType(t...
unit CoderUnit; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, Mask, sMaskEdit, sCustomComboEdit, sTooledit, sSkinManager, sButton, sAlphaListBox, sMemo, sEdit, sCheckBox; type TCoderForm = class(TForm) SiteDir: TsDirectoryEdit; ...
uses System; type Numbers = variant One: Byte; Two: Integer; Three: String; end; let n := Numbers.Three('three'); if n is Numbers.Three three then begin WriteLn('Three is ' + three); end;
{*************************************************************************} { Curvy Controls : panel, combobox, edit, memo control component } { for Delphi & C++Builder } { } { written by TMS...
//*************************************************************** // This source is written by John Kouraklis. // © 2016, John Kouraklis // Email : j_kour@hotmail.com // // The MIT License (MIT) // // Copyright (c) 2016 John Kouraklis // // Permission is hereby granted, free of charge, to any person // obtain...
unit eePluginGui; interface {$INCLUDE Defines.inc} uses Lucidity.GuiStandard, LucidityGui.KnobHandler, LucidityGui.MenuButtonHandler, Lucidity.Interfaces, VamLib.ZeroObject, uXYPadsFrame, uSequencerFrame, uModSystemFrame, Lucidity.SampleMap, eeEnumHelper, Lucidity.Enums, VamV...
(**************************************************************************) (* *) (* Module: Unit 'MethodCallback' Copyright (c) 1998 *) (* *) (* Versi...
{****************************************************************************** Base classes for SQLFactory.   Parent classes for all classes that are part of the SQLFactory library. @author Jeff Chaney @author Guardian Industries, Inc., Auburn Hills, MI @author Last Changed By: $Author: jchaney $ $Dat...
unit MetaDarkStyleDSGNOptionsFrame; {$mode ObjFPC}{$H+} interface uses Classes, SysUtils, Forms, Controls, StdCtrls, IDEOptionsIntf,IDEOptEditorIntf, MetaDarkStyleDSGNOptions,uDarkStyleSchemes; resourceString RSDarkStyleDSGNOptionsFrame='Dark style'; type { TDarkStyleDSGNOptionsFrame } TDarkStyleDSG...
unit B2.MovingAverageFilter; interface uses B2.DelayBuffer; type // TMovingAverageFilter is described in "Streamlining Digital Signal Processing" page 284 (Section 26.1) TMovingAverageFilter = class private DelayBuffer : TDelayBuffer; function GetBufferSize: integer; procedure SetBuf...
unit TestDialog; // TODO:HIGH delete this test dialog. it's no longer needed. interface uses InWindowDialog, InWindowDialog.Prototypes, Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.StdCtrls, Vcl.ExtCtrls, Vcl.XPMan, VamButton, V...
unit MySQLAccessor; interface uses Data.SqlExpr, Data.DB, Data.DBXCommon, Data.DBXMySQL; type TMySQLAccessor = class private FHostName: String; FUserName: String; FPassword: String; FDatabase: String; Conn: TSQLConnection; public property HostName: String read FHostName; property Use...
unit VisualThemesGUI; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls; type TVisualThemesFrm = class(TForm) SaveAndExitBtn: TButton; StylesCmb: TComboBox; Label1: TLabel; Def...
{ Pascal Validation Suite Version 5.7 } { } { (C) Copyright 1982, British Standards Institution } { } { TEST 6.7.1-17, FILE=DEV167, CL...
{ Pascal Validation Suite Version 5.7 } { } { (C) Copyright 1982, British Standards Institution } { } { PRETEST 6.6.5.3-14, FILE=ERR39...
unit SEHR.DashBoard; {$DEFINE TEST} interface uses Winapi.Windows, System.SysUtils, System.Classes, System.Generics.Collections, System.Threading, System.Types, IdHttp, IdSSLOpenSSL, Vcl.Graphics, Vcl.Controls, Vcl.ExtCtrls, Vcl.Menus, Vcl.Forms, SEHR.JsonDataObjects, SEHR.APIClient, ...
unit ippcore; interface uses ippdefs; {LINE 43} type IppAffinityType=( ippAffinityCompactFineCore, (* KMP_AFFINITY=granularity=fine,compact,n,offset, where n - level *) ippAffinityCompactFineHT, (* KMP_AFFINITY=granularity=fine,compact,0,offset *) ippAffinityAllEnabled, (* KMP_AFFINITY=respect *...
unit frmClosingDate; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, // Auto Generate frmUni, Menus, cxLookAndFeelPainters, dxSkinsCore, dxSkinBlack, dxSkinBlue, dxSkinCaramel, dxSkinCoffee, dxSkinDarkSide, dxSkinGlassOceans, dxSkiniMaginary, ...
unit Conexao.Model.Interf; interface uses ormbr.Factory.Interfaces; type TTIpoConexao = (dbFirebird, dbSQLite, dbMongoDB, dbMySQL); IConexaoModel = interface ['{3335887F-1F8E-45B8-831B-8F224BC00BE5}'] function Conexao: IDBConnection; end; implementation end.
unit HashAlgorithm1; {$mode objfpc}{$H+} interface uses Classes, SysUtils, Hashable, FileHandler; type THashAlgorithm1 = class (TInterfacedObject, IHashable) function MakeHash (path: string):string; private function Invert(N:integer; word: string): string; end; implementation function THashAlgo...
{ Pascal Validation Suite Version 5.7 } { } { (C) Copyright 1982, British Standards Institution } { } { TEST 6.5.4-4, FILE=DEV110, CLA...
{ Pascal Validation Suite Version 5.7 } { } { (C) Copyright 1982, British Standards Institution } { } { TEST 6.8.3.5-7, FILE=DEV212, C...
unit ufrmRttiExplorerMain; interface uses System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants, FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs, FMX.StdCtrls, FMX.Edit, FMX.Layouts, FMX.ListBox, FMX.Controls.Presentation, System.Rtti, System.TypInfo; type TfrmRttiMai...
unit PlginEmailedit; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, Vcl.Buttons, IdMessage, IdEMailAddress; type TFormEditSendemail = class(TForm) Button1: TButton; Button2: TButton; tbSubject: TEdit; Label2: TLabel; Label3: ...
unit main; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, Direct3D9, ShellApi, Registry, Mask; const PROG_VER='1.2.0'; type TForm1 = class(TForm) Label_Resolution: TLabel; Label_AA: TLabel; Label_ShaderWarn: TL...
unit UfrmPessoaCategoria; interface uses Data.DB, System.SysUtils, Vcl.ComCtrls, Vcl.ExtCtrls, Datasnap.DBClient, Datasnap.DSConnect, Vcl.Grids, Vcl.DBGrids, Vcl.Controls, Vcl.StdCtrls, Vcl.Mask, Vcl.DBCtrls, Vcl.Imaging.jpeg, Vcl.Buttons, Vcl.Graphics, System.Classes, Vcl.Forms; type TFrmPessoaCatego...
unit uToolTipItem; interface uses SysUtils, Classes; type TToolTipItem = class(TObject) private FToken: string; FText: string; public constructor Create (token: string; text: string); overload; property Token: string read FToken write FToken; property Text: string read FText...
program main; {$mode objfpc}{$H+} uses Sysutils; const FILE_NAME_IN = './input.txt'; FILE_NAME_OUT = './output.txt'; AMOUNT = 3; DELIMITER = ';'; var input: file of char; output: TextFile; symbol: char; counter: integer = 0; sWord: string = ''; begin // Откликаемся... writeln('Reading the co...
{ Pascal Validation Suite Version 5.7 } { } { (C) Copyright 1982, British Standards Institution } { } { PRETEST 6.6.6.3-3, FILE=ERR54P...
unit uSurveilVio; interface uses SysUtils, Classes, uGlobal, uCommon, IdCustomHTTPServer, uRmService, DateUtils, uRmInf, Windows, imageenview, Vcl.Imaging.jpeg, Graphics, QBAES, System.Generics.Collections, ADODB, System.NetEncoding; type TSurveil = Record sxh: String; hphm: String; hpzl: String;...
unit Rdx.CudaDriverTypes; interface type {** * CUDA error types *} {$MinEnumSize 4} // Збільште розмір для сумісності C++. TcudaError = ( { * The API call returned with no errors. In the case of query calls, this * also means that the operation being queried is complete (see * ::cudaEventQuery()...
unit uFrame; interface uses uComponente, uBotao, uLabel, uMemo; type TFrame = class(TComponente) private FX: integer; FY: integer; FComponenteCount: integer; FAltura: integer; FLargura: integer; procedure resizeComponents; procedure setAltura(const Value: integer); procedure se...
{ I think this MidiEventList class is too complicated to maintain because it uses a array of pointers and an array of midi events. One of the design dificulties is that the list must not create records/objects during normal operation, but only when the maximum size of the list changes. Any operations that...
unit eeKeyboardHookConfig; interface uses Windows; function GetHandleForKeyHook(aHostName: string; aHostVersion: integer; aEditorWindow: hwnd; aConfigFileName: string; Out ConfigID:string; Out UseKeyHook:boolean):hwnd; implementation uses SysUtils, Classes, Contnrs, VamLib.Win.Shell, ...
unit swe1; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, SvcMgr, Dialogs, ExtCtrls, Registry, ActiveX; type TsSWE1 = class(TService) // Timer utilizado para controlar a execução do processo periodicamente... tmrSWE: TTimer; procedure ServiceAfterInstall(Sender: TService);...
program Matrices_de_Jacobi; {$n+} uses crt,matjacobi; { inclut la gestion de l'écran et l'unité Matrices } type real=extended; const epsilon=1e-12; procedure Jacobi(a:matrice;var b:vecteur;var vect_prop:matrice;var it:word); { trouve la norme sup. en dehors de la diagonale } procedure norme(var m:matric...
{******************************************************************************* Title: T2Ti ERP Description: VO do movimento. The MIT License Copyright: Copyright (C) 2010 T2Ti.COM Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "...
unit uGlobal; interface uses uLogger, uSQLHelper, System.Generics.Collections, Classes; type TConfig = Record DBServer: String; DBPort: Integer; DBUser: String; DBPwd: String; DBName: String; DBNamePass: string; QTZDB: String; QTZRM: String; end; THikConfig = Record K08Se...
{ Pascal Validation Suite Version 5.7 } { } { (C) Copyright 1982, British Standards Institution } { } { TEST 6.4.3.2-9, FILE=DEV072, C...
unit eeAudioBufferUtils; interface uses Math, VamLib.MoreTypes; procedure NormaliseBuffer(Input : PSingle; const SampleFrames : integer; const TargetLevel : single); procedure RemoveDcOffset(Input : PSingle; const SampleFrames : integer); function FindMinValue(Input : PSingle; const SampleFrames : ...
unit eeCustomSample; interface type TSampleDataFormat = (dfFloat, dfInt); PSampleProperties = ^TSampleProperties; TSampleProperties = record IsValid :boolean; //Is the sample data loaded correctly. ChannelCount :integer; SampleFrames :integer; SampleRate :integer; Sou...
{ Pascal Validation Suite Version 5.7 } { } { (C) Copyright 1982, British Standards Institution } { } { TEST 6.6.2-10, FILE=DEV122, CL...
{ Pascal Validation Suite Version 5.7 } { } { (C) Copyright 1982, British Standards Institution } { } { PRETEST 6.6.5.3-9, FILE=ERR35P...
unit Iocp.FileServer; //{$define __DBG_VANI_FILE__} interface uses Windows, Messages, SysUtils, Classes, IoUtils, Iocp.VariantPacket, Iocp.VariantSocket, Iocp.FileConst, Iocp.Logger, Iocp.Utils; type TServerTransorttingEvent = procedure(Sender: TObject; Client: TIocpVariantServerConnection; const FileName: st...
unit uReadTxt; {*************************************************************************} {* *} {* Author: Alcindo Schleder *} {* Copyright: © 2006 by Alcindo Schleder. All rights reserved. ...
unit main; { /* [---------------------------------------------------------- Program: ViewTxt Function: Browse by folders and shows text files. Language: Pascal - Lazarus Author: CarlosRobertoMacedonio - crmacedo@gmail.com Created: Updated: 31/Out/2017 ----------------------------------------------------------...
{******************************************************************************* Title: T2Ti ERP Description: VO dos detalhes da NF2. The MIT License Copyright: Copyright (C) 2010 T2Ti.COM Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files...
{ Pascal Validation Suite Version 5.7 } { } { (C) Copyright 1982, British Standards Institution } { } { PRETEST 6.6.5.3-13, FILE=ERR38...
unit Form; {На вершине иерархии расположен класс — стек, элементами которого являются данные типа Pointer. Наследники данного класса — стез из целых чисел и стек из строк. Реализовать указанную иерархию объектов и решить следующую задачу: даны два стека с некоторыми элементами — числами или строками (по выбору пользов...
{ Pascal Validation Suite Version 5.7 } { } { (C) Copyright 1982, British Standards Institution } { } { TEST 6.8.3.10-3, FILE=CONF187, CLA...
unit Code; {$i Compiler.inc} interface uses BeRoUtils,BeRoStream,Globals,Error,Symbols,Tree,PointerList,CRC32; type TCode=class private Options:TOptions; procedure GenerateCodeBlock(ContextSymbol:PSymbol;TreeNode:TTreeNode); procedure GenerateCode(ContextSymbol:PSymbol;TreeNode...
unit delphi_yajl; interface uses SysUtils, Windows, Classes, yajl_common, yajl_parse; type PJSONRec = ^TJSONRec; TJSONRec = record Parent: PJSONRec; Children: array of PJSONRec; ChildrenCount: Integer; Key: UTF8String; Value: UTF8String; end...
unit WindUtl; interface uses Classes, Contnrs, Windows; Type TOWindowInfo = Class FHandle: THandle; FWindowName: String; FClassName: String; FWindowText: String; bChildWindow: Boolean; FParentWindow: String; Constructor Create(Handle: THandle; const WindowName, ClassName, W...
{ Pascal Validation Suite Version 5.7 } { } { (C) Copyright 1982, British Standards Institution } { } { TEST 6.6.3.7.1-12, FILE=LEV1F2...
unit Form.Demo; interface {$IF CompilerVersion > 29} {$LEGACYIFEND ON} {$IFEND} uses SysUtils, Classes, Types, Windows, Messages, {$IF CompilerVersion > 29} ImageList, {$IFEND} Graphics, Controls, Forms, Dialogs, StdCtrls, ExtCtrls, Menus, Buttons, ImgList, ...
unit xxmGeckoStreams; interface uses nsXPCOM, SysUtils, Classes, xxmParUtils; type //TODO: nsIInputStream impl for channel output? TxxmGeckoUploadStream=class(TStream) private FUploadStream:nsIInputStream; FData:TStream; FDataPos,FDataSize:Int64; FDataFile:AnsiString; protecte...
unit clsUser; interface uses classes,SysUtils; type TclsUser=Class(TObject) private PID:String; PName:String; PDesc:String; PType:integer; PExternal:integer; PAID:String; Pbuilder:string; PbDate:string; Previser:string; PrDate:string; PUserGroup:TStringList; pro...
{ Pascal Validation Suite Version 5.7 } { } { (C) Copyright 1982, British Standards Institution } { } { TEST 6.3-1, FILE=CONF032, CLASS=CO...
unit unitCodeSoft6; interface uses classes,sysutils,unitCodeSoftSample,unitLog,LabelManager2_TLB,dialogs; type TCodeSoft6=class(TCodeSoftSample) private m_tsParameter : tstrings; m_CS6 : TCS_6; protected { 處理visible事宜 } procedure setVisible(f_bVisible : Boolean); override; function getVisib...
{==============================================================================| | Project : Delphree - Synapse | 002.007.001 | |==============================================================================| | Content: support procedures and functions ...
{ ******************************************************************************* * * * LGPL with linking exception (like Lazarus). See the file license.md, * * included in this distribution, for details about the copyright. ...
unit uTEditHelper; interface uses System.SysUtils, Vcl.StdCtrls; type TEditHelper = class Helper for TEdit public function IsNumber(var Key: Char): Boolean; function IsNumberOrComma(var Key: Char): Boolean; end; implementation { TEditHelper } function TEditHelper.IsNumber(var Key: Char): Boolean...
unit VamWinControl; interface uses VamLib.MultiEvent, VamGuiControlInterfaces, WinApi.Messages, WinApi.Windows, VamLayoutWizard, Classes, Types, Controls, Graphics, RedFoxWinControl, VamVisibleControl; type //TVamWinControl = class(TRedFoxWinControl, IAccessible, IVamVisibleControl, IVamLayoutWizard) T...
(* ----------------------------------------------------------------------------- The contents of this file are subject to the Mozilla Public License Version 1.1 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.mozilla.org/MP...
unit FilterCore.MoogLadder; interface // This moog ladder filter's implementation is based on // Oscillator and Filter Algortithms for Virtual Analog Synthesis // by Antti Huovilainen and Vesa Valimaki // Publised in Computer Music Journal. year and issue ??? // // NOTE: Possible music paper. Tanh alternatives and //...
unit AggRadioBoxControl; //////////////////////////////////////////////////////////////////////////////// // // // Anti-Grain Geometry (modernized Pascal fork, aka 'AggPasMod') // // Maintained by Christian-W. Budde (Christ...
{ Pascal Validation Suite Version 5.7 } { } { (C) Copyright 1982, British Standards Institution } { } { TEST 6.7.2.5-1, FILE=CONF160, CLAS...
unit unitDataBase; interface uses classes, sysutils, SConnect, DB, dbclient, unitCSPrintData, forms, dialogs; const cSNTitle = 'SN_'; cCSNTitle = 'CSN_'; cBoxTitle = 'BOX_'; cCartonTitle = 'CARTON_'; cBoxCount = 'BOX_COUNT'; cCartonCount = 'CARTON_COUNT'; cPalletCount = 'PALLET_COUNT'; cBoxTotal = 'B...
{ Pascal Validation Suite Version 5.7 } { } { (C) Copyright 1982, British Standards Institution } { } { TEST 6.4.3.2-10, FILE=CONF054, CLA...
unit IocpServerMain; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, ExtCtrls, IoUtils, SyncObjs, Iocp.Utils, Iocp.TcpSocket, Iocp.PacketSocket, Iocp.Logger, uGlobalVars; type TTestIocpServer = class(TIocpPacketServer) private FSuccessCnt, FC...
var amount, number: integer; begin read(number); amount := 0; while number <> 0 do begin if (number mod 5 = 0) or (number mod 9 = 0) then amount += 1; read(number); end; write(amount); end.
{ MIT License Copyright (c) 2017 Jamie Geddes Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, di...
unit CTClient; interface uses CTObject; // Procs function Ping: integer; cdecl; external 'CrossTalkMiddle.dll' name 'Controller_Ping'; procedure GetResultString( aResult: PCTChar ) cdecl; external 'CrossTalkMiddle.dll' name 'Controller_GetResultString'; function MethodCall( ...
{==============================================================================| | Project : Delphree - Synapse | 001.000.000 | |==============================================================================| | Content: POP3 client ...
unit TokenU; interface function DateTimeToUnix(ConvDate: TDateTime): Longint; // Структура хранения токенов type TokenStore = record Code: string; Token: string; Refresh_Token: string; socket_token: string; TokenExpire: integer; end; var ...
{$I Directives.inc} unit UFrmMAJ; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, ExtCtrls, StdCtrls, ComCtrls, ShellApi, UDownloadThread {$IFDEF EnableXPMan}, XPMan{$ENDIF}; type { Les différents états de la fiche (les étapes de l'assistant si...
{ Pascal Validation Suite Version 5.7 } { } { (C) Copyright 1982, British Standards Institution } { } { TEST 6.7.2.2-2, FILE=CONF152, CLAS...
unit Entidade.Cliente; interface uses SimpleAttributes, Data.DB, SimpleEntity; type [Tabela('CLIENTE')] TCliente = class(TSimpleEntity) private FCodigo: Integer; FNome: string; FDocumento: string; FEndereco: string; FSexo: string; FDataNascimento: TDate; FDataCadastro: TDate; ...
{ Pascal Validation Suite Version 5.7 } { } { (C) Copyright 1982, British Standards Institution } { } { TEST 6.6.3.1-9, FILE=CONF105, CLAS...
{ Pascal Validation Suite Version 5.7 } { } { (C) Copyright 1982, British Standards Institution } { } { TEST 6.9-1, FILE=CONF192, CLASS=CO...
unit NGINX.FCGIRecord; /// <summary> /// A FastCGI Record. /// </summary> /// <remarks> /// See section 3.3 of the FastCGI Specification for details. /// </remarks> /// interface uses System.SysUtils, System.Classes, NGINX.FCGIConstants, IdIOHandler, IdGlobal, System.Generics.Collections, System.StrUtils; type ...
unit Birbs; interface uses ColorBehavior, BeakBehavior; type TBirbs = class public FColorBehavior : TColorBehavior; FBeakBehavior :TBeakBehavior; procedure Color; procedure Beak; constructor CreateColor(ColorBehavior : TColorBehavior); constructor CreateBeak(BeakBehavior :...
unit Financiamento.Model; interface uses System.Generics.Collections, System.Classes, System.Sysutils; type TFinanciamento = class(TPersistent) private FSaldoDevedor: String; FPagamento: String; FValorJuros: String; FAmortizacao: String; FParcela: Integer; public procedure SetValo...
unit Test.AudioPlugin.ProcessController; interface uses WatchTower, AudioPlugin.ProcessController, PlugHost.MultiChannelAudioBuffer, AudioPlugin.RunTimeInfo, Mocks.AudioPlugin, VamVst2.VstEventBuffer; type TProcessControllerTest = class(TWatchTowerTest) private Plug : TMockAudioPlugin; Proces...
{ Напишите программу, которая в последовательности целых чисел определяет их сумму и подсчитывает разность количества положительных и отрицательных чисел последовательности. Программа получает на вход целые числа, количество введённых чисел неизвестно, последовательность чисел заканчивается числом 0 (0 — признак окон...
{* * Copyright 2013 Artur Mkrtchyan * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
Type TFieldName = Array[0..7] of Char; TOVLName = Array[0..3] of Char; const (* cHeaderNames: Array[0..132] of String = ( '', '', '', '', '', '', '', '', '', '', // 0-9 '', '', '', '', '', '', '', '', '', '', // 10-19 '...
unit unit_TOptionManager; {$mode objfpc}{$H+}{$M+} interface uses Classes, SysUtils; type TOptionManager = Class(TObject) {} private { .Add "Nickname", "" .Add "Email", "" .Add "Password", "" .Add "LastServer", "" .Add ...
unit wnf_linux; {$mode objfpc}{$H+} interface uses Classes, SysUtils, Process, FileUtil; procedure wnf_playsound(filename : string; faktor_lautstaerke : real); procedure wnf_playsound_beep; procedure wnfkdekonsole(cmd:string); function wnfAnwenderdaten:string; function wnfIniFileName(aApplicationName:string):stri...
unit ItemModel; interface uses ItemModel.Interf; type TItem = class(TInterfacedObject, IItem, IPrototype<IItem>) private FCodigo: string; FDescricao: string; public constructor Create; destructor Destroy; override; class function New: IItem; function Codigo(AValue: string): IItem; ove...
unit uMain; interface uses PythonEngine, WrapDelphi; function PyInit_DemoModule: PPyObject; cdecl; var gEngine : TPythonEngine; gModule : TPythonModule; implementation function delphi_sum(self, args : PPyObject) : PPyObject; cdecl; var a, b: double; begin with gEngine do begin ...
UNIT URectangle; INTERFACE USES UShape, MLObj; TYPE Rectangle = ^RectangleObj; RectangleObj = OBJECT(ShapeObj) CONSTRUCTOR Init(x, y, width, height: INTEGER); PROCEDURE Draw; VIRTUAL; PROCEDURE MoveBy(dx, dy: INTEGER); VIRTUAL; // FUNCTION GetX: INTEGER; (VIRTUAL;) ... ...
{ ****************************************************************** Poisson distribution ****************************************************************** } unit upoidist; interface uses uConstants, umachar; function PPoisson(Mu: Float; K: Integer): Float; { Probability of Poisson distrib. } ...
{==============================================================================| | Project : Delphree - Synapse | 001.001.001 | |==============================================================================| | Content: SMTP client ...
{ Pascal Validation Suite Version 5.7 } { } { (C) Copyright 1982, British Standards Institution } { } { TEST 6.2.1-6, FILE=DEV034, CLA...
{******************************************************************} { } { PC/SC Interface component } { Helps you access a cardreader through Microsofts SmartCard API } { ...
unit RGBtoHSI; interface uses Math; type (* Stores colors in rgb color model + alpha component *) tRGBA = record r: byte; g: byte; b: byte; a: byte; end; (* Stores colors in hsi color model *) tHSI = record // hue h: Single; // saturation s: Single; // intensity i...