diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2014-07-23 15:25:44 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2014-07-23 15:25:44 +0200 |
commit | 8286ac511144e4f17d34eac9affb97e50646344a (patch) | |
tree | f1af7320d7b6be6be059216d0ad08ac7b4f73fd0 /libcult/cult/cli/file-arguments.hxx | |
parent | a15cf65c44d5c224169c32ef5495b68c758134b7 (diff) |
Imported Upstream version 4.0.0upstream/4.0.0
Diffstat (limited to 'libcult/cult/cli/file-arguments.hxx')
-rw-r--r-- | libcult/cult/cli/file-arguments.hxx | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/libcult/cult/cli/file-arguments.hxx b/libcult/cult/cli/file-arguments.hxx deleted file mode 100644 index e14f53c..0000000 --- a/libcult/cult/cli/file-arguments.hxx +++ /dev/null @@ -1,59 +0,0 @@ -// file : cult/cli/file-arguments.hxx -// author : Boris Kolpackov <boris@kolpackov.net> -// copyright : Copyright (c) 2005-2010 Boris Kolpackov -// license : GNU GPL v2 + exceptions; see accompanying LICENSE file - -#ifndef CULT_CLI_FILE_ARGUMENTS_HXX -#define CULT_CLI_FILE_ARGUMENTS_HXX - -#include <cult/types.hxx> -#include <cult/containers/vector.hxx> - -#include <cult/cli/exceptions.hxx> -#include <cult/cli/arguments.hxx> - -namespace Cult -{ - namespace CLI - { - class FileArguments: public Arguments - { - public: - virtual - ~FileArguments (); - - FileArguments (Int argc, - Char const* const* argv, - Char const* file_option); - public: - virtual Size - size () const - { - return args_.size (); - } - - virtual Char const* - operator[] (Index i) const - { - if (i >= size ()) - throw Bounds (); - - return args_[i].c_str (); - } - - virtual Void - erase (Index i) - { - if (i >= size ()) - throw Bounds (); - - args_.erase (args_.begin () + i); - } - - private: - Containers::Vector<String> args_; - }; - } -} - -#endif // CULT_CLI_FILE_ARGUMENTS_HXX |