CCCC - C and C++ Code Counter  9999-git
CCCC Development version (post-3.1.4)
Classes | Macros | Functions | Variables
ccccmain.cc File Reference
#include "cccc.h"
#include "cccc_ver.h"
#include <fstream>
#include <list>
#include <iterator>
#include <sys/stat.h>
#include "cccc_itm.h"
#include "cccc_opt.h"
#include "cccc_met.h"
#include "cccc_db.h"
#include "cccc_utl.h"
#include "cccc_htm.h"
#include "cccc_xml.h"
Include dependency graph for ccccmain.cc:

Go to the source code of this file.

Classes

class  Main
 

Macros

#define NEW_PAGE   "\f\n"
 

Functions

int main (int argc, char **argv)
 

Variables

CCCC_Projectprj =NULL
 
int DebugMask =0
 
int dont_free =0
 
char * skip_identifiers [SKIP_IDENTIFIERS_ARRAY_SIZE]
 
string current_filename
 
string current_rule
 
string parse_language
 
Mainapp =NULL
 

Macro Definition Documentation

#define NEW_PAGE   "\f\n"

Definition at line 47 of file ccccmain.cc.

Function Documentation

int main ( int  argc,
char **  argv 
)

Definition at line 712 of file ccccmain.cc.

713 {
714  app=new Main;
715  prj=new CCCC_Project;
716 
717  // process command line
718  app->HandleArgs(argc, argv);
719 
720  // If we are still running, acknowledge those who helped
721  app->PrintCredits(cerr);
722 
723  cerr << "Parsing" << endl;
725  app->ParseFiles();
727 
728  if(app->filesParsed()>0)
729  {
730  prj->reindex();
731 #ifdef _WIN32
732  _mkdir(app->outdir.c_str());
733 #else
734  mkdir(app->outdir.c_str(),0777);
735 #endif
736  app->DumpDatabase();
737 
738  // generate html output
739  app->GenerateHtml();
740  app->GenerateXml();
741  }
742 
743  app->DescribeOutput();
744  delete app;
745  delete prj;
746 
747  return 0;
748 }
void GenerateHtml()
Definition: ccccmain.cc:481
CCCC_Project * prj
Definition: ccccmain.cc:49
void GenerateXml()
Definition: ccccmain.cc:489
string outdir
Definition: ccccmain.cc:79
int ParseFiles()
Definition: ccccmain.cc:336
void reindex()
Definition: cccc_prj.cc:151
static void set_active_project(CCCC_Project *prj)
Definition: cccc_rec.cc:29
Main * app
Definition: ccccmain.cc:120
Definition: ccccmain.cc:71
int DumpDatabase()
Definition: ccccmain.cc:464
void PrintCredits(ostream &os)
Definition: ccccmain.cc:602
void HandleArgs(int argc, char **argv)
Definition: ccccmain.cc:129
void DescribeOutput()
Definition: ccccmain.cc:642
int filesParsed()
Definition: ccccmain.cc:707

Here is the call graph for this function:

Variable Documentation

Main* app =NULL

Definition at line 120 of file ccccmain.cc.

string current_filename

Definition at line 67 of file ccccmain.cc.

string current_rule

Definition at line 67 of file ccccmain.cc.

int DebugMask =0

Definition at line 50 of file ccccmain.cc.

int dont_free =0

Definition at line 51 of file ccccmain.cc.

string parse_language

Definition at line 67 of file ccccmain.cc.

CCCC_Project* prj =NULL

Definition at line 49 of file ccccmain.cc.

char* skip_identifiers[SKIP_IDENTIFIERS_ARRAY_SIZE]

Definition at line 53 of file ccccmain.cc.