From 2fbdf974338bde8576efdae40a819a76b2391033 Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Sun, 5 Nov 2023 11:22:55 +0000 Subject: Initial import of the open source release --- tools/iDSK/src/ViewFile.cpp | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 tools/iDSK/src/ViewFile.cpp (limited to 'tools/iDSK/src/ViewFile.cpp') diff --git a/tools/iDSK/src/ViewFile.cpp b/tools/iDSK/src/ViewFile.cpp new file mode 100644 index 0000000..733bba6 --- /dev/null +++ b/tools/iDSK/src/ViewFile.cpp @@ -0,0 +1,44 @@ +#include +using namespace std; +#include "GestDsk.h" +#include "Outils.h" +#include "Basic.h" +#include "Desass.h" +#include "Dams.h" +#include "endianPPC.h" +#include "ViewFile.h" +#include "Ascii.h" + +string ViewDams() +{ + cerr << "Taille du fichier : " << TailleFic << endl; + Dams(BufFile, TailleFic, Listing); + return Listing; + //cout << Listing << endl; +} + +string ViewDesass() +{ + cerr << "Taille du fichier : " << TailleFic << endl; + Desass(BufFile, Listing, TailleFic, AdresseCharg); + return Listing; + //cout << Listing << endl; +} + +string ViewBasic(bool AddCrLf) +{ + bool IsBasic = true; + //cout << "Entre Ici\n"; + cerr << "Taille du fichier : " << TailleFic << endl; + Basic(BufFile, Listing, IsBasic, AddCrLf); + //cout << Listing << endl; + return Listing; +} + +string ViewAscii() +{ + cerr << "Taille du fichier : " << TailleFic << endl; + Ascii(BufFile, Listing, TailleFic); + //cout << Listing << endl; + return Listing; +} -- cgit v1.2.3