diff options
Diffstat (limited to 'TAO/performance-tests/Demux/CodeGen/client.cpp')
-rw-r--r-- | TAO/performance-tests/Demux/CodeGen/client.cpp | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/TAO/performance-tests/Demux/CodeGen/client.cpp b/TAO/performance-tests/Demux/CodeGen/client.cpp deleted file mode 100644 index 31ba40da66c..00000000000 --- a/TAO/performance-tests/Demux/CodeGen/client.cpp +++ /dev/null @@ -1,42 +0,0 @@ -// $Id$ - -#include "tao.h" - -ACE_RCSID(CodeGen, client, "$Id$") - -// Generate the client side include file "client.i". This file has a table of -// function pointers to the the different operations of the -// interface. Depending on the strategy chosen, we make appropriate calls - -long GenClientCode(ACE_Unbounded_Queue<ACE_CString> &arr, int limit) -{ - fstream client_incl; - int i; - ACE_CString *str; - - client_incl.open("client.i", ios::out); - - for(i=0; i < limit; i++){ - if (arr.get(str, i) == -1) - { - return -1; - } - client_incl << "void " << str->rep() << "(tao_demux_ptr obj)" << endl; - client_incl << "{" << endl; - client_incl << "\tCORBA_Environment env;" << endl << endl; - client_incl << "\tobj->" << str->rep() << "(env);" << endl; - client_incl << "}" << endl; - } - client_incl << endl; - client_incl << "static const method_db mtbl[] = {" << endl; - for (i=0; i < limit; i++){ - if (arr.get(str, i) == -1) - { - return -1; - } - client_incl << "\t" << str->rep() << "," << endl; - } - client_incl << "};" << endl << endl; - client_incl.close(); -} - |