diff options
| author | Paul Buetow <paul@buetow.org> | 2013-04-06 13:14:42 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2013-04-06 13:14:42 +0200 |
| commit | 658bfd183905576ed5f4dbe57a2ee82711b6ac93 (patch) | |
| tree | 08cf25d1a1fb09b643a65c5b237c52bce791f307 /src/cli | |
| parent | 42b79aa5c591dde88e78922a519802f948d9ea60 (diff) | |
tagging ychat-0.7.9.0ychat-0.7.9.0
Diffstat (limited to 'src/cli')
| -rw-r--r-- | src/cli/CVS/Entries | 3 | ||||
| -rw-r--r-- | src/cli/CVS/Repository | 1 | ||||
| -rw-r--r-- | src/cli/CVS/Root | 1 | ||||
| -rwxr-xr-x | src/cli/cli.cpp | 29 | ||||
| -rwxr-xr-x | src/cli/cli.h | 8 |
5 files changed, 8 insertions, 34 deletions
diff --git a/src/cli/CVS/Entries b/src/cli/CVS/Entries new file mode 100644 index 0000000..10c9656 --- /dev/null +++ b/src/cli/CVS/Entries @@ -0,0 +1,3 @@ +/cli.cpp/1.28/Mon Feb 28 18:03:02 2005// +/cli.h/1.13/Mon Feb 21 02:14:23 2005// +D diff --git a/src/cli/CVS/Repository b/src/cli/CVS/Repository new file mode 100644 index 0000000..4d44c85 --- /dev/null +++ b/src/cli/CVS/Repository @@ -0,0 +1 @@ +ychat/src/cli diff --git a/src/cli/CVS/Root b/src/cli/CVS/Root new file mode 100644 index 0000000..745de68 --- /dev/null +++ b/src/cli/CVS/Root @@ -0,0 +1 @@ +:pserver:anonymous@buetow.org:/usr/home/cvs/cvsroot diff --git a/src/cli/cli.cpp b/src/cli/cli.cpp index cc0f5e5..96a0010 100755 --- a/src/cli/cli.cpp +++ b/src/cli/cli.cpp @@ -37,8 +37,6 @@ cli::parse_input( string s_input ) cout << CLIPRMO << " (d)ebug - Starts debug routine (cli.cpp)" << endl; #endif - cout << CLIPRMO << " (du)mp [part] - Prints out a dump of the data structure" << endl; - cout << CLIPRMO << " (Run without part to list all possibilities)" << endl; cout << CLIPRMO << " (e)cho VAR - Prints out configuration value of VAR" << endl; cout << CLIPRMO << " Wildcards can be used too, example: echo http*" << endl; #ifdef NCURSES @@ -80,11 +78,6 @@ cli::parse_input( string s_input ) cout << CLIPRMI; } #endif - else if ( s_input.compare("du") == 0 || s_input.compare("dump") == 0 ) - { - dump d(vectorize(s_param)); - cout << CLIPRMI; - } else if( s_input.compare("echo") == 0 || s_input.compare("e") == 0 ) { string s_val; @@ -141,7 +134,6 @@ cli::parse_input( string s_input ) { cout << CLIPRMO; wrap::MODL->reload_modules(); - cout << MODRELO << endl; cout << CLIPRMI; } //*>> @@ -215,7 +207,6 @@ cli::parse_input( string s_input ) { cout << CLIPRMO; wrap::MODL->unload_modules(); - cout << MODUNLO << endl; cout << CLIPRMI; } //*>> @@ -294,26 +285,6 @@ cli::print_rusage() delete p_rusage; } -vector<string> -cli::vectorize(string s_param) -{ - vector<string> vec_ret; - unsigned i_pos; - - for (i_pos = s_param.find(" "); - i_pos != string::npos; - i_pos = s_param.find(" ")) - { - vec_ret.push_back(s_param.substr(0, i_pos)); - s_param = s_param.substr(i_pos+1); - } - - if (!s_param.empty()) - vec_ret.push_back(s_param); - - return vec_ret; -} - #ifdef DEBUG void cli::debug_routine() diff --git a/src/cli/cli.h b/src/cli/cli.h index 7d51e3f..23e1d1c 100755 --- a/src/cli/cli.h +++ b/src/cli/cli.h @@ -22,8 +22,6 @@ #include "../thrd/thro.h" #endif -#include "../monitor/dump.h" - using namespace std; #ifndef NCURSES @@ -34,9 +32,8 @@ class cli { #endif private: - int parse_input(string s_input); - vector<string> vectorize(string s_param); - + int parse_input(string s_input); + public: cli( ); ~cli( ); @@ -55,6 +52,7 @@ void start(void* p_void); void start(); #endif + }; #endif |
