* Added 'argument.?' commands that passing of arguments to commands

created with 'system.method.insert'.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@1077 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2008-11-09 12:56:10 +00:00
parent ca9d0b1773
commit 5166253190
9 changed files with 123 additions and 0 deletions
+9
View File
@@ -132,9 +132,18 @@ public:
Command() {}
virtual ~Command() {}
static torrent::Object* argument(unsigned int index) { return m_arguments + index; }
protected:
Command(const Command&);
void operator = (const Command&);
// For use by functions that need to use placeholders to arguments
// within commands. E.d. callable command strings where one of the
// arguments within the command needs to be supplied by the caller.
static const unsigned int max_arguments = 10;
static torrent::Object m_arguments[max_arguments];
};
template <typename T1 = void, typename T2 = void>