Ignore:
Timestamp:
Feb 27, 2010, 10:48:45 AM (15 years ago)
Author:
george
Message:
  • Přidáno: Volba -d pro zobrazení dat DBC souboru.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/dbc_export/DBCExport.pas

    r337 r338  
    2222    NewDBCFileName: string;
    2323    ColumnTypeDefinition: string;
     24    DisplayData: Boolean;
    2425    constructor Create(TheOwner: TComponent); override;
    2526    destructor Destroy; override;
     
    5051  if HasOption('c', 'coltypedef') then begin
    5152    ColumnTypeDefinition := GetOptionValue('c', 'coltypedef');
     53  end;
     54  if HasOption('d', 'display') then begin
     55    DisplayData := True;
    5256  end;
    5357
     
    9599  WriteLn('  -f --file        Source DBC file name');
    96100  WriteLn('  -n --newfile     New created DBC file name');
    97   WriteLn('  -c --coltypedef  DBC column type definition string');
    98   WriteLn('                     u - uint32, s - string');
     101  WriteLn('  -c --coltypedef  DBC column type definition string (u - uint32, s - string)');
     102  WriteLn('  -d --display     Display DBC data');
    99103end;
    100104
    101105procedure TDBCExport.ShowDBC;
    102106var
    103   //X, Y: Integer;
    104   //Text: string;
     107  X, Y: Integer;
     108  Text: string;
    105109  I: Integer;
    106110begin
     
    115119          LoadColumnStrings(I - 1);
    116120
    117       (*for Y := 0 to Length(Cells) - 1 do begin
     121      // Display DBC data
     122      if DisplayData then
     123      for Y := 0 to Length(Cells) - 1 do begin
    118124        Text := '';
    119125        for X := 0 to Length(Cells[Y]) - 1 do
     
    122128        WriteLn(Text);
    123129      end;
    124       *)
     130
    125131      WriteLn('Save');
    126132      SaveToFile(NewDBCFileName);
Note: See TracChangeset for help on using the changeset viewer.