Logo
~Apps~
~Projects~
~Contact~

IOC Class Reference

Inheritance diagram for IOC:

Inheritance graph
[legend]
Collaboration diagram for IOC:

Collaboration graph
[legend]
List of all members.

Public Member Functions

int read_text (char *s, int *l)
int write_text (char *s, int l)
int read_text (char *s, int *l)
int write_text (char *s, int l)

Detailed Description

Definition at line 13 of file asexec.cpp.


Member Function Documentation

int IOC::read_text char *  s,
int *  l
[inline, virtual]
 

Implements ParserIO.

Definition at line 15 of file aslist.cpp.

00015                                       {
00016                 int i;
00017 
00018                 *l = read(0, s, *l);
00019                 if (*l > -1)
00020                         s[*l] = 0;
00021                 while (strlen(s) && (s[strlen(s) - 1] == 13 || s[strlen(s) - 1] == 10))
00022                         s[strlen(s) - 1] = 0;
00023                 for (i = 0; i < (int)strlen(s); i++)
00024                         if (s[i] >= 'a' && s[i] <= 'z')
00025                                 s[i] -= 32;
00026                 return *l;
00027         }

int IOC::read_text char *  s,
int *  l
[inline, virtual]
 

Implements ParserIO.

Definition at line 16 of file asexec.cpp.

00016                                       {
00017                 int i;
00018 
00019                 *l = read(0, s, *l);
00020                 if (*l > -1)
00021                         s[*l] = 0;
00022                 while (strlen(s) && (s[strlen(s) - 1] == 13 || s[strlen(s) - 1] == 10))
00023                         s[strlen(s) - 1] = 0;
00024                 for (i = 0; i < (int)strlen(s); i++)
00025                         if (s[i] >= 'a' && s[i] <= 'z')
00026                                 s[i] -= 32;
00027                 return *l;
00028         }

int IOC::write_text char *  s,
int  l
[inline, virtual]
 

Implements ParserIO.

Definition at line 28 of file aslist.cpp.

00028                                       {
00029                 s[l] = 0;
00030                 printf("%s",s);
00031                 fflush(stdout);
00032                 return 0;
00033         }

int IOC::write_text char *  s,
int  l
[inline, virtual]
 

Implements ParserIO.

Definition at line 29 of file asexec.cpp.

00029                                       {
00030                 s[l] = 0;
00031                 printf("%s",s);
00032                 fflush(stdout);
00033                 return 0;
00034         }


The documentation for this class was generated from the following files:
Page, code, and content Copyright (C) 2005 by Anders Hedström
Generated on Mon Aug 29 20:21:47 2005 for C++ Sockets by  doxygen 1.4.4