Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

CompressMan.cpp File Reference

#include "CompressMan.hpp"

Go to the source code of this file.

Functions

char * FindEndOfParamString (char *str, char *endptr)

Variables

CompressMan compressman
UserCompressorFactoryconstantcompressfactoryptr


Function Documentation

char* FindEndOfParamString char *    str,
char *    endptr
 

Definition at line 69 of file CompressMan.cpp.

00073 {
00074    int   parenthesiscount=0;
00075    char  *startptr=str;
00076    char  *saveptr;
00077 
00078    while(str<endptr)
00079    {
00080       switch(*str)
00081       {
00082       case '"':
00083          saveptr=str;
00084          str++;
00085          while(str<endptr)
00086          {
00087             if(*str=='\\')
00088             {
00089                str++;
00090                continue;
00091             }
00092             if(*str=='"')
00093                break;
00094             str++;
00095          }
00096          if(str==endptr)
00097          {
00098             Error("Could not find closing '\"' in string '");
00099             ErrorCont(saveptr,endptr-saveptr);
00100             ErrorCont("'");
00101             Exit();
00102          }
00103          break;
00104 
00105       case '(':
00106          parenthesiscount++;
00107          break;
00108 
00109       case ')':
00110          if(parenthesiscount==0) // We found the closing bracket ?
00111             return str;
00112          parenthesiscount--;
00113          break;
00114       }
00115       str++;
00116    }
00117    Error("Could not find closing parenthesis for parameter '");
00118    ErrorCont(startptr,endptr-startptr);
00119    ErrorCont("'");
00120    Exit();
00121    return NULL;
00122 }


Variable Documentation

CompressMan compressman
 

Definition at line 39 of file CompressMan.cpp.

UserCompressorFactory* constantcompressfactoryptr
 

Definition at line 126 of file CompressMan.cpp.


Generated on Sat Oct 13 16:08:47 2001 for XMILL by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001