~ubuntu-branches/debian/jessie/suphp/jessie

« back to all changes in this revision

Viewing changes to src/CommandLine.hpp

  • Committer: Bazaar Package Importer
  • Author(s): Emmanuel Lacour
  • Date: 2009-08-03 15:15:38 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20090803151538-431r96du70316dpk
Tags: 0.7.1-1
* New upstream release (closes: #528379, #520182) 
* debian/NEWS: add information about AddHandler -> AddType change introduced
  in 0.6.2-2 (closes: #517805)
* debian/conf/suphp.conf, debian/patches/01_debian.dpatch: switch from
  application/x-httpd-php to application/x-httpd-suphp to allow
  simultaneous use of mod_suphp and mod_php (closes: #519005, #514725)

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
     */
38
38
    class CommandLine {
39
39
    private:
40
 
        std::vector<std::string> arguments;
41
 
        
 
40
        std::vector<std::string> arguments;
 
41
        
42
42
    public:
43
 
        /**
44
 
         * Constructer
45
 
         */
46
 
        CommandLine();
47
 
        
48
 
        /**
49
 
         * Return number of arguments
50
 
         */
51
 
        int count() const;
52
 
 
53
 
        /**
54
 
         * Returns (copy of) argument at at position
55
 
         */
56
 
        std::string getArgument(int pos) const throw (OutOfRangeException);
57
 
 
58
 
        /**
59
 
         * Set argument at position
60
 
         */
61
 
        void setArgument(int pos, std::string arg);
62
 
 
63
 
        /**
64
 
         * Add argument at the end of commandline
65
 
         */
66
 
        void putArgument(std::string arg);
67
 
        
68
 
        /**
69
 
         * Returns reference to string at index
70
 
         */
71
 
        std::string& operator[](int index) throw (OutOfRangeException);
72
 
 
73
 
        /**
74
 
         * Returns number of elements
75
 
         */
76
 
        int size() const;
 
43
        /**
 
44
         * Constructer
 
45
         */
 
46
        CommandLine();
 
47
        
 
48
        /**
 
49
         * Return number of arguments
 
50
         */
 
51
        int count() const;
 
52
 
 
53
        /**
 
54
         * Returns (copy of) argument at at position
 
55
         */
 
56
        std::string getArgument(int pos) const throw (OutOfRangeException);
 
57
 
 
58
        /**
 
59
         * Set argument at position
 
60
         */
 
61
        void setArgument(int pos, std::string arg);
 
62
 
 
63
        /**
 
64
         * Add argument at the end of commandline
 
65
         */
 
66
        void putArgument(std::string arg);
 
67
        
 
68
        /**
 
69
         * Returns reference to string at index
 
70
         */
 
71
        std::string& operator[](int index) throw (OutOfRangeException);
 
72
 
 
73
        /**
 
74
         * Returns number of elements
 
75
         */
 
76
        int size() const;
77
77
    };
78
78
};
79
79