CS 240 Utilities

The CS 240 Utilities is a collection of C++ classes that you will need to complete the CS 240 programming projects. This page provides an overview of the classes that are available with links to pages that provide more detailed documentation.

NOTE: To use these classes, you must #include the appropriate header files in your code, and also compile and link in the appropriate .cpp files. For example, to use the StringUtil class, you must #include "StringUtil.h" and compile and link in StringUtil.cpp. The easiest approach is to just compile and link in all of the .cpp's.

Purpose Classes Files
String Utilities StringUtil StringUtil.h
StringUtil.cpp
Exception Handling CS240Exception
InvalidArgumentException
InvalidURLException
IllegalStateException
IOException
NetworkException
FileException
CS240Exception.h
Unit Testing None UnitTest.h
File Operations FileSystem FileSystem.h
FileSystem.cpp
Command Execution CommandRunner CommandRunner.h
CommandRunner.cpp
Web Access InputStream
URLConnection
InputStream.h
FileInputStream.h
HTTPInputStream.h
URLConnection.h
FileInputStream.cpp
HTTPInputStream.cpp
URLConnection.cpp


Ken Rodham