The WebClass Class


WebClass Methods
WebClass()
WebClass(string infile, string outfile)
~WebClass()
void read_file()
void set_access()
void find_methods()
void find_parent()
void get_classname()
void open_ht()
void close_ht()
void write_class()
void write_data()
void write_methods()
void write_source()
void write_stats()
bool is_method(int i)
bool is_attribute(int i)
string s(int i)


WebClass Attributes
Colour colour
string buffer
string ClassName
vector<string> Class
vector<string> Methods
vector<string> Data
CFfile IO
bool border
bool pub
bool pri
bool pro
int cdef




Statistics
2 Constructors
0 Static methods
0 Constant methods
0 Virtual methods
0 Pure virtual methods
16 Other methods

18 Methods total

1 Integer attribute
0 Floating point attributes
4 Boolean attributes
0 Character attributes
0 Arrays of attributes
7 Other attributes

12 Attributes total





Header Source


/* Marta (Make And Render Table Analysis)
 *
 * Copyright (C) 2001 Jeffrey Bakker
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License, included in the file "COPYING" for
 * more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */

#include <string>
#include <vector>
#include <fstream>
#include <iostream>
#include "colour.h"
using namespace std;


class WebClass {

 public:

  WebClass();
  WebClass(string infile, string outfile);
  ~WebClass();

  void read_file();  // read the header file

  void set_access();   // search for pub, private, protected

  void find_methods();
  void find_parent();
  void get_classname();

  void open_ht();    // write opening HTML tags
  void close_ht();   // write closing HTML tags

  void write_class();
  void write_data();
  void write_methods();
  void write_source();
  void write_stats();

  bool is_method(int i);
  bool is_attribute(int i);

  string s(int i);

  Colour colour;

 protected:

  string buffer;
  string ClassName;
  vector<string> Class;
  vector<string> Methods;
  vector<string> Data;

  CFfile IO;

  bool border;
  bool pub;
  bool pri;
  bool pro;

  int cdef;
};