Remove dynamic exceptions
[anna.git] / example / diameter / pcapDecoder / main.cpp
index cdada35..97474e8 100644 (file)
@@ -49,20 +49,20 @@ public:
     }
   }
 
-  void setSourceIP(const std::string &srcIP) throw() {
+  void setSourceIP(const std::string &srcIP) {
     _sourceIP = srcIP;
   }
-  void setDestinationIP(const std::string &dstIP) throw() {
+  void setDestinationIP(const std::string &dstIP) {
     _destinationIP = dstIP;
   }
-  void setTimestamp(time_t ts) throw() {
+  void setTimestamp(time_t ts) {
     _timestamp = ts;
   }
-  void setTimestampU(int tsu) throw() {
+  void setTimestampU(int tsu) {
     _timestampU = tsu;
   }
   // Returns true if completed:
-  bool appendData(const char *data, size_t size) throw(RuntimeException) {
+  bool appendData(const char *data, size_t size) noexcept(false) {
     LOGDEBUG(
       Logger::debug(anna::functions::asString("Appending %d bytes", size), ANNA_FILE_LOCATION));
     _data.append(data, size);
@@ -79,7 +79,7 @@ public:
     return true;
   }
 
-  void reset() throw() {
+  void reset() {
     _sourceIP = "";
     _destinationIP = "";
     _timestamp = 0;
@@ -88,22 +88,22 @@ public:
     _diameterLength = -1; // not calculated yet
   }
 
-  const std::string &getSourceIP() const throw() {
+  const std::string &getSourceIP() const {
     return _sourceIP;
   }
-  const std::string &getDestinationIP() const throw() {
+  const std::string &getDestinationIP() const {
     return _destinationIP;
   }
-  time_t getTimestamp() const throw() {
+  time_t getTimestamp() const {
     return _timestamp;
   }
-  int getTimestampU() const throw() {
+  int getTimestampU() const {
     return _timestampU;
   }
-  const std::string &getData() const throw() {
+  const std::string &getData() const {
     return _data;
   }
-  std::string getDataAsHex() const throw() {
+  std::string getDataAsHex() const {
     return anna::functions::asHexString(
              anna::DataBlock(_data.c_str(), _data.size()));
   }
@@ -253,7 +253,7 @@ void my_callback(u_char *useless, const struct pcap_pkthdr* pkthdr,
   count++;
 }
 
-bool getDataBlockFromHexFile(const std::string &pathfile, anna::DataBlock &db) throw() {
+bool getDataBlockFromHexFile(const std::string &pathfile, anna::DataBlock &db) {
   // Get hex string
   static char buffer[8192];
   std::ifstream infile(pathfile.c_str(), std::ifstream::in);