Rev 1625 | Rev 1647 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 1625 | Rev 1644 | ||
|---|---|---|---|
| Line 34... | Line 34... | ||
| 34 | 34 | ||
| 35 | Storage::Storage(boost::asio::io_service& io_service) : Plugin(io_service) |
35 | Storage::Storage(boost::asio::io_service& io_service) : Plugin(io_service) |
| 36 | { |
36 | { |
| 37 | this->name_ = "storage"; |
37 | this->name_ = "storage"; |
| 38 | 38 | ||
| 39 | this->ExportFunction(" |
39 | this->ExportFunction("StorageExport_GetParameters", Storage::Export_GetParameters); |
| 40 | this->ExportFunction(" |
40 | this->ExportFunction("StorageExport_GetParameter", Storage::Export_GetParameter); |
| 41 | this->ExportFunction(" |
41 | this->ExportFunction("StorageExport_SetParameter", Storage::Export_SetParameter); |
| 42 | } |
42 | } |
| 43 | 43 | ||
| 44 | Storage::~Storage() |
44 | Storage::~Storage() |
| 45 | { |
45 | { |
| 46 | } |
46 | } |
| Line 56... | Line 56... | ||
| 56 | 56 | ||
| 57 | LOG.Debug(std::string(__FUNCTION__) + " called!"); |
57 | LOG.Debug(std::string(__FUNCTION__) + " called!"); |
| 58 | 58 | ||
| 59 | if (args.Length() < 1) |
59 | if (args.Length() < 1) |
| 60 | { |
60 | { |
| 61 | LOG.Error("To few arguments."); |
61 | LOG.Error(std::string(__FUNCTION__) + ": To few arguments."); |
| 62 | } |
62 | } |
| 63 | 63 | ||
| 64 | v8::String::AsciiValue store_name(args[0]); |
64 | v8::String::AsciiValue store_name(args[0]); |
| 65 | 65 | ||
| 66 | storage::Store::ParameterList parameters = storage::Manager::Instance()->GetParameters(*store_name); |
66 | storage::Store::ParameterList parameters = storage::Manager::Instance()->GetParameters(*store_name); |
| Line 81... | Line 81... | ||
| 81 | 81 | ||
| 82 | LOG.Debug(std::string(__FUNCTION__) + " called!"); |
82 | LOG.Debug(std::string(__FUNCTION__) + " called!"); |
| 83 | 83 | ||
| 84 | if (args.Length() < 2) |
84 | if (args.Length() < 2) |
| 85 | { |
85 | { |
| 86 | LOG.Error("To few arguments."); |
86 | LOG.Error(std::string(__FUNCTION__) + ": To few arguments."); |
| 87 | } |
87 | } |
| 88 | 88 | ||
| 89 | v8::String::AsciiValue store_name(args[0]); |
89 | v8::String::AsciiValue store_name(args[0]); |
| 90 | v8::String::AsciiValue parameter_name(args[1]); |
90 | v8::String::AsciiValue parameter_name(args[1]); |
| 91 | 91 | ||
| Line 109... | Line 109... | ||
| 109 | 109 | ||
| 110 | LOG.Debug(std::string(__FUNCTION__) + " called!"); |
110 | LOG.Debug(std::string(__FUNCTION__) + " called!"); |
| 111 | 111 | ||
| 112 | if (args.Length() < 3) |
112 | if (args.Length() < 3) |
| 113 | { |
113 | { |
| 114 | LOG.Error("To few arguments."); |
114 | LOG.Error(std::string(__FUNCTION__) + ": To few arguments."); |
| 115 | } |
115 | } |
| 116 | 116 | ||
| 117 | v8::String::AsciiValue store_name(args[0]); |
117 | v8::String::AsciiValue store_name(args[0]); |
| 118 | v8::String::AsciiValue parameter_name(args[1]); |
118 | v8::String::AsciiValue parameter_name(args[1]); |
| 119 | v8::String::AsciiValue parameter_value(args[2]); |
119 | v8::String::AsciiValue parameter_value(args[2]); |