tools/Master.h
changeset 1099 eb8d16507d88
parent 1079 ef1266652c4d
child 1101 f8d13814af03
--- a/tools/Master.h	Mon Jul 07 07:38:10 2008 +0000
+++ b/tools/Master.h	Mon Jul 07 07:55:41 2008 +0000
@@ -42,17 +42,24 @@
 
         void setIndex(unsigned int);
 
+        enum Verbosity {
+            Quiet,
+            Normal,
+            Verbose
+        };
+        void setVerbosity(Verbosity);
+
         void writeAlias(int, bool, const vector<string> &);
-        void showConfigs(bool);
+        void showConfigs();
         void outputData(int);
         void setDebug(const vector<string> &);
         void showDomains(int);
         void showMaster();
-        void listPdos(int, bool = false);
-        void listSdos(int, bool = false);
+        void listPdos(int);
+        void listSdos(int);
         void sdoDownload(int, const string &, const vector<string> &);
         void sdoUpload(int, const string &, const vector<string> &);
-        void showSlaves(int, bool);
+        void showSlaves(int);
         void siiRead(int);
         void siiWrite(int, bool, const vector<string> &);
         void requestStates(int, const vector<string> &);
@@ -64,12 +71,12 @@
         void close();
 
         void writeSlaveAlias(uint16_t, uint16_t);
-        void showConfigs();
+        void showDetailedConfigs();
         void listConfigs();
         void outputDomainData(unsigned int);
         void showDomain(unsigned int);
-        void listSlavePdos(uint16_t, bool = false, bool = false);
-        void listSlaveSdos(uint16_t, bool = false, bool = false);
+        void listSlavePdos(uint16_t, bool = false);
+        void listSlaveSdos(uint16_t, bool = false);
         void listSlaves(int);
         void showSlave(uint16_t);
         void generateSlaveXml(uint16_t);
@@ -102,6 +109,7 @@
         enum {DefaultBufferSize = 1024};
 
         unsigned int index;
+        Verbosity verbosity;
         int fd;
 };