unit ULNDObju;
{ Generated by MakeComp 1.02 from ULNDTYPE.PAS. Don't modify manually !!! }
interface
uses Classes, UlanType, ULRecTyp, ULObju, 
  ULDType,
  ULNDType;

type
  TULNDObj = class(TULObj)
  protected
    function GetDeviceName: TDeviceName;
    procedure SetDeviceName(ADeviceName: TDeviceName);
    function GetMinRecLen: TULRecLen; override;
  public
    constructor Create(AOwner:TULObj);
    function GetULRecDesc: PULRecDesc; override;
  published
    property DeviceName: TDeviceName
      read GetDeviceName write SetDeviceName;
  end;

const
  ULNDFldDescs: array[0..0] of TULFldDesc = (
    (
     Caption: '';
     Hint: '';
     EditWidth: 0;
     BrowseWidth: 0;
     Flags: 17;
     UserCoef: 0.00;
     NumDec: 0;
     ValuesSourceRecID: ULDID
    )
  );
  ULNDRecDesc: TULRecDesc = (
    Caption: 'Channel device';
    ChildRecIDsStr: '';
    ChildRecIDs: nil;
    ChildRecIDCount: 0;
    FldCount: 1;
    Flds: @ULNDFldDescs;
    Flags: rfHasRecName + rfEnabled + rfVisible;
    SortExp: '';
    EditFieldList: '';
    BrowseFieldList: ''
   );

implementation

{TULNDObj}
function TULNDObj.GetMinRecLen: TULRecLen;
begin
  GetMinRecLen := sizeof(TULNDRec);
end;

constructor TULNDObj.Create(AOwner: TULObj);
begin
  inherited Create(TComponent(AOwner), ULNDID);
end;

function TULNDObj.GetULRecDesc: PULRecDesc;
begin
  Result := @ULNDRecDesc;
end;

procedure TULNDObj.SetDeviceName(ADeviceName: TDeviceName);
begin
  if PULNDRec(Rec)^.DeviceName <> ADeviceName then begin
    PULNDRec(Rec)^.DeviceName := ADeviceName;
    DoChange;
  end;
end;

function TULNDObj.GetDeviceName: TDeviceName;
begin
  GetDeviceName := PULNDRec(Rec)^.DeviceName;
end;

{/TULNDObj}

end.
