aboutsummaryrefslogtreecommitdiff
path: root/cvs/cvsweb.cgi/code/nelns/agent_service/Attic/io_interface.cpp?rev=1.1&content-type=text
diff options
context:
space:
mode:
authorneodarz <neodarz@neodarz.net>2018-08-11 20:21:34 +0200
committerneodarz <neodarz@neodarz.net>2018-08-11 20:21:34 +0200
commit0ea5fc66924303d1bf73ba283a383e2aadee02f2 (patch)
tree2568e71a7ccc44ec23b8bb3f0ff97fb6bf2ed709 /cvs/cvsweb.cgi/code/nelns/agent_service/Attic/io_interface.cpp?rev=1.1&content-type=text
downloadnevrax-website-self-hostable-0ea5fc66924303d1bf73ba283a383e2aadee02f2.tar.xz
nevrax-website-self-hostable-0ea5fc66924303d1bf73ba283a383e2aadee02f2.zip
Initial commit
Diffstat (limited to 'cvs/cvsweb.cgi/code/nelns/agent_service/Attic/io_interface.cpp?rev=1.1&content-type=text')
-rw-r--r--cvs/cvsweb.cgi/code/nelns/agent_service/Attic/io_interface.cpp?rev=1.1&content-type=text/x-cvsweb-markup&hideattic=0/index.html67
1 files changed, 67 insertions, 0 deletions
diff --git a/cvs/cvsweb.cgi/code/nelns/agent_service/Attic/io_interface.cpp?rev=1.1&content-type=text/x-cvsweb-markup&hideattic=0/index.html b/cvs/cvsweb.cgi/code/nelns/agent_service/Attic/io_interface.cpp?rev=1.1&content-type=text/x-cvsweb-markup&hideattic=0/index.html
new file mode 100644
index 00000000..917b0dda
--- /dev/null
+++ b/cvs/cvsweb.cgi/code/nelns/agent_service/Attic/io_interface.cpp?rev=1.1&content-type=text/x-cvsweb-markup&hideattic=0/index.html
@@ -0,0 +1,67 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><HTML>
+<HEAD><style> A { color:black }</style>
+<!-- hennerik CVSweb $Revision: 1.93 $ -->
+<TITLE>code/nelns/agent_service/io_interface.cpp - view - 1.1</TITLE></HEAD>
+<BODY BGCOLOR="#eeeeee">
+<table width="100%" border=0 cellspacing=0 cellpadding=1 bgcolor="#aaaaaa"><tr valign=bottom><td><a href="io_interface.cpp?hideattic=0"><IMG SRC="http://www.nevrax.org/inc/img/picto-up.gif" ALT="[BACK]" BORDER="0" WIDTH="14" HEIGHT="13"></a> <b>Return to <A HREF="io_interface.cpp?hideattic=0">io_interface.cpp</A>
+ CVS log</b> <IMG SRC="http://www.nevrax.org/inc/img/picto-news.gif" ALT="[TXT]" BORDER="0" WIDTH="13" HEIGHT="15"></td><td align=right><IMG SRC="http://www.nevrax.org/inc/img/picto-dir.gif" ALT="[DIR]" BORDER="0" WIDTH="15" HEIGHT="13"> <b>Up to <a href="/cvs/cvsweb.cgi/?hideattic=0">Nevrax</a> / <a href="/cvs/cvsweb.cgi/code/?hideattic=0">code</a> / <a href="/cvs/cvsweb.cgi/code/nelns/?hideattic=0">nelns</a> / <a href="/cvs/cvsweb.cgi/code/nelns/agent_service/?hideattic=0">agent_service</a></b></td></tr></table><HR noshade><table width="100%"><tr><td bgcolor="#ffffff">File: <a href="/cvs/cvsweb.cgi/?hideattic=0">Nevrax</a> / <a href="/cvs/cvsweb.cgi/code/?hideattic=0">code</a> / <a href="/cvs/cvsweb.cgi/code/nelns/?hideattic=0">nelns</a> / <a href="/cvs/cvsweb.cgi/code/nelns/agent_service/?hideattic=0">agent_service</a> / <a href="/cvs/cvsweb.cgi/code/nelns/agent_service/Attic/?hideattic=0">Attic</a> / <a href="/cvs/cvsweb.cgi/code/nelns/agent_service/Attic/io_interface.cpp?hideattic=0">io_interface.cpp</a>&nbsp;(<A HREF="/cvs/cvsweb.cgi/~checkout~/code/nelns/agent_service/Attic/io_interface.cpp?rev=1.1&amp;hideattic=0" target="cvs_checkout" onClick="window.open('/cvs/cvsweb.cgi/~checkout~/code/nelns/agent_service/Attic/io_interface.cpp?rev=1.1','cvs_checkout','resizeable,scrollbars');"><b>download</b></A>)<BR>
+Revision <B>1.1</B>, <i>Wed Apr 18 13:54:25 2001 UTC</i> (15 months, 1 week ago) by <i>valignat</i>
+<BR>Branch: <b>MAIN</b>
+<PRE>
+RENAMED code/server to code/nelns.
+</PRE>
+</td></tr></table><HR noshade><PRE>#include &quot;nel/ai/agent/agent.h&quot;
+#include &quot;io_interface.h&quot;
+#include &lt;stdio.h&gt;
+#include &lt;stdarg.h&gt;
+
+namespace SRV
+{
+ &nbsp; &nbsp; &nbsp; &nbsp;extern std::fstream logStream;
+ &nbsp; &nbsp; &nbsp; &nbsp;extern bool logFileState;
+
+ &nbsp; &nbsp; &nbsp; &nbsp;static char LaseErrorCodeOrdreInterprete[32*1024];
+ &nbsp; &nbsp; &nbsp; &nbsp;void IOTrace::Echo(char *str, ...)
+ &nbsp; &nbsp; &nbsp; &nbsp;{
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;char &nbsp; &nbsp; &nbsp; &nbsp;temp[32*1024]; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;va_list argument;
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;va_start (argument, str); &nbsp; &nbsp; &nbsp; &nbsp;
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;vsprintf(temp, str, argument); &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;strcpy(LaseErrorCodeOrdreInterprete,temp);
+
+#ifdef NL_DEBUG &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;printf(&quot;%s&quot;,LaseErrorCodeOrdreInterprete); &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if(logFileState &amp;&amp; logStream.is_open())
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;logStream &lt;&lt; LaseErrorCodeOrdreInterprete;
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;logStream.flush();
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}
+#else
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;printf(&quot;%s&quot;,LaseErrorCodeOrdreInterprete);
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if(logFileState &amp;&amp; logStream.is_open())
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;logStream &lt;&lt; LaseErrorCodeOrdreInterprete;
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;logStream.flush();
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}
+#endif
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
+ &nbsp; &nbsp; &nbsp; &nbsp;}
+ &nbsp; &nbsp; &nbsp; &nbsp;
+ &nbsp; &nbsp; &nbsp; &nbsp;const std::string IOTrace::InPut()
+ &nbsp; &nbsp; &nbsp; &nbsp;{
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;std::string str;
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;/*char toto[4096];
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;str = gets(toto);*/
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cin &gt;&gt; str;
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;return str;
+ &nbsp; &nbsp; &nbsp; &nbsp;}
+
+ &nbsp; &nbsp; &nbsp; &nbsp;const NLAIC::CIdentType &amp;IOTrace::getType() const
+ &nbsp; &nbsp; &nbsp; &nbsp;{ &nbsp; &nbsp; &nbsp; &nbsp;
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;static const NLAIC::CIdentType idIOWinInterface(&quot;IOWinInterface&quot;, &nbsp; &nbsp; &nbsp; &nbsp;NLAIC::CSelfClassFactory(*this),
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;NLAIC::CTypeOfObject(NLAIC::CTypeOfObject::tObject),NLAIC::CTypeOfOperator(0));
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;return idIOWinInterface;
+ &nbsp; &nbsp; &nbsp; &nbsp;}
+}
+</PRE> \ No newline at end of file