Baldwin Computer Science
It is quite common to develop software for the Internet using PHP, or some similar language. While it would only take me a day or two to learn these languages, I see no advantage to that versus developing a library of classes to handle whatever I come against. This library are those classes.
I have to admit that part of the advantage of using C++ to handle the Internet coding is that I can use my String implementation, which works quite well.
The Internet classes so far are:
- This allow the user to check the version and subversion of the library. It is derived from Library in the Utilities library. See that class for a more complete discussion.
- This class allows the user to display error messages on the browser. Typically it will be used with the Err class in the Utilities library to indicate to the user what the errors are. The formatting is rather basic, so it probably shouldn't be used on Internet sites which are intended to be nice.
- This is a class which displays a page (which the user never sees) that will report back the size of the Internet browser screen. This can be used for formatting text as needed. I will discourage myself from using this class because it messes up the back button on the browser - every time the user hits that back button, this page is displayed, which immediately returns the user to the next page. It might be better to use CSS technology to format the page, the problem there being that most used browsers don't support the CSS standard.
- This class is derived from StructuredInternet below. It adds the ability to call functions in a method similar to that that StructuredInternet uses to select information. I discourage myself from using these classes because they are limiting, and there are better ways usually.
- This class will return the information the CGI program stores in the environment variables and the standard input. This information is stored statically, and the methods to access them are static, but the object can be created dynamically. This works well.
- This is the class which actually outputs an Internet page. The type of the page is specified. The contents are supplied as a string. This class will handle creating the headers that are required, and writing the page to the standard output.
- This allows the possibility of conditional generation of Internet pages. It is derived from TextInterent. I have decided I don't like this approach, and therefore the use of this method will be discouraged in the future.
- This will interpret the mail. All the information is collected from a WEB site, then it is mailed to my e-mail address. This allows me to accept e-mail over the Internet without having my e-mail address known, and the resulting spam. It is intended that this be the only way future pages will be able to send me e-mail.
- This is derived from LogicalInternet, and adds the ability to associate values with names. I have decided I don't like this approach, so it will be discouraged in the future.
©2008, Baldwin Computer Science
About us | Legal | Careers | Contact us |