Changeset 96c1461 in nscp for service/plugin_list.hpp


Ignore:
Timestamp:
11/27/11 22:04:35 (18 months ago)
Author:
Michael Medin <michael@…>
Branches:
master, 0.4.0, 0.4.1, 0.4.2
Children:
9853bc3
Parents:
16198e3
Message:
  • Major refactoring in the command line interface
  • Added support for alias to many common module (command line) so: nscp eventlog (is the same as nscp client --module CheckEventLog)
  • Fixed issue with CheckEventLog message rendering and eventid
  • Refactored all Client modules to all support command line, commands and submissions.
  • Added uniform handling of "everything" to all Client plugins
  • Fixed SyslogClient to work "as advertised" (ie. all hardcoded stuff is removed)
  • Fixed utf8 issue with text strings (now have a working concept which needs to be implementd "all over the place")
  • Many issues and fixes related to clients.
  • Fixed so CheckEvent? log (insert) works much better (added new options)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • service/plugin_list.hpp

    ra44cb15 r96c1461  
    101101    std::wstring to_wstring() { 
    102102      std::wstring ret; 
    103       BOOST_FOREACH(std::wstring str, list()) { 
     103      std::list<std::wstring> lst = list(); 
     104      BOOST_FOREACH(std::wstring str, lst) { 
    104105        if (!ret.empty()) ret += _T(", "); 
    105106        ret += str; 
     
    109110    std::string to_string() { 
    110111      std::string ret; 
    111       BOOST_FOREACH(std::wstring str, list()) { 
     112      std::list<std::wstring> lst = list(); 
     113      BOOST_FOREACH(std::wstring str, lst) { 
    112114        if (!ret.empty()) ret += ", "; 
    113115        ret += utf8::cvt<std::string>(str); 
    114116      } 
    115       return ret + parent::to_string(); 
     117      return "plugins: {" + ret + "}, " + parent::to_string(); 
    116118    } 
    117119 
     
    189191      std::wstring lc = make_key(channel); 
    190192      if (!have_plugin(plugin_id)) { 
    191         writeLock.release(); 
     193        writeLock.unlock(); 
    192194        throw plugins_list_exception("Failed to find plugin: " + ::to_string(plugin_id) + ", Plugins: " + to_string()); 
    193195      } 
Note: See TracChangeset for help on using the changeset viewer.