Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

HistoDisplay.cxx File Reference

#include <sys/types.h>
#include <sys/unistd.h>
#include <unistd.h>
#include "TVirtualX.h"
#include <TROOT.h>
#include <TStyle.h>
#include <TApplication.h>
#include <TGClient.h>
#include <TString.h>
#include <TRegexp.h>
#include <TGMenu.h>
#include <TG3DLine.h>
#include <TRootHelpDialog.h>
#include <HelpText.h>
#include <TGTextView.h>
#include <TGLabel.h>
#include <TGTextEntry.h>
#include <TGLayout.h>
#include <TGButton.h>
#include <TFile.h>
#include <TMapFile.h>
#include <TList.h>
#include <TCollection.h>
#include <TKey.h>
#include <TObject.h>
#include <TH1.h>
#include <TClass.h>
#include <TGListTree.h>
#include <TGWindow.h>
#include <TGCanvas.h>
#include <TCanvas.h>
#include <TTimer.h>
#include <TSystem.h>
#include <TVirtualPad.h>
#include <TGFileDialog.h>
#include <TGMsgBox.h>
#include <TGFrame.h>
#include <TGStatusBar.h>
#include <string.h>
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <cmath>
#include <cstring>
#include <TUrl.h>
#include <TFrame.h>
#include <TGTextEditDialogs.h>
#include <fstream>
#include <ctype.h>
#include "HistoDisplay.h"
#include "HistoDisplayHelpText.h"
#include "HistoDisplayPhoto.h"
#include "ConsumerList.h"
#include <TSocket.h>
#include <TMessage.h>
#include <strstream>
#include "TConsumerInfo.h"
#include "CObject.h"
#include "CHistogram.h"
#include "ServerProtocol.h"

Go to the source code of this file.

Enumerations

enum  HistoDisplayMessageTypes {
  kM_MENU_FILE_NEWGUI, kM_MENU_FILE_NEWCANVAS, kM_MENU_FILE_NEWSLIDE, kM_MENU_FILE_CLOSE,
  kM_MENU_FILE_EXIT, kM_MENU_LISTTREE_SORTTREE, kM_MENU_LISTTREE_SORTFOLDER, kM_MENU_LISTTREE_DELETE,
  kM_MENU_LISTTREE_CLEAR, kM_MENU_LISTTREE_REFRESH, kM_MENU_CONNECT_STATUS, kM_MENU_HELP_GUI,
  kM_MENU_HELP_ROOT, kM_MENU_HELP_CANVAS, kM_PICTBUTTON, kM_RABUTTON_MFILE,
  kM_RABUTTON_RFILE, kM_RABUTTON_SOCKET, kM_BUTTON_FILENAME, kM_BUTTON_CHOOSEFILE,
  kM_BUTTON_CLEARFILENAME, kM_BUTTON_PAUSE, kM_BUTTON_CLEAR, kM_BUTTON_PRINT,
  kM_BUTTON_RESTART, kM_BUTTON_ZERO, kM_BUTTON_UNZERO, kM_BUTTON_CONTENT,
  kM_BUTTON_STOP, kM_BUTTON_CANVAS, kM_CHBUTTON_AUTOUPDATE, kM_CHBUTTON_SLIDEUPDATE,
  kM_TEXTENTRY_FILENAME, kM_TEXTENTRY_MONITORNAME, kM_TEXTENTRY_FREQUENCY
}

Functions

char * getword (char *str, const char commentchar)
char * strdelete (char *str, const char *del)
char * strstrn (const char *s, const char *k)

Variables

const char * kSlideShowFolder = "slide"
const char * kWarningFolder = "warning"
const char * kErrorFolder = "error"
const char * kWarningErrorCanvasName = "WarningErrorCanvas"
const char * kWarningErrorCanvasTitle = "Warning/Error Canvas"


Enumeration Type Documentation

enum HistoDisplayMessageTypes
 

Enumeration values:
kM_MENU_FILE_NEWGUI 
kM_MENU_FILE_NEWCANVAS 
kM_MENU_FILE_NEWSLIDE 
kM_MENU_FILE_CLOSE 
kM_MENU_FILE_EXIT 
kM_MENU_LISTTREE_SORTTREE 
kM_MENU_LISTTREE_SORTFOLDER 
kM_MENU_LISTTREE_DELETE 
kM_MENU_LISTTREE_CLEAR 
kM_MENU_LISTTREE_REFRESH 
kM_MENU_CONNECT_STATUS 
kM_MENU_HELP_GUI 
kM_MENU_HELP_ROOT 
kM_MENU_HELP_CANVAS 
kM_PICTBUTTON 
kM_RABUTTON_MFILE 
kM_RABUTTON_RFILE 
kM_RABUTTON_SOCKET 
kM_BUTTON_FILENAME 
kM_BUTTON_CHOOSEFILE 
kM_BUTTON_CLEARFILENAME 
kM_BUTTON_PAUSE 
kM_BUTTON_CLEAR 
kM_BUTTON_PRINT 
kM_BUTTON_RESTART 
kM_BUTTON_ZERO 
kM_BUTTON_UNZERO 
kM_BUTTON_CONTENT 
kM_BUTTON_STOP 
kM_BUTTON_CANVAS 
kM_CHBUTTON_AUTOUPDATE 
kM_CHBUTTON_SLIDEUPDATE 
kM_TEXTENTRY_FILENAME 
kM_TEXTENTRY_MONITORNAME 
kM_TEXTENTRY_FREQUENCY 

Definition at line 321 of file HistoDisplay.cxx.

00321                               {
00322   kM_MENU_FILE_NEWGUI,
00323   kM_MENU_FILE_NEWCANVAS,
00324   kM_MENU_FILE_NEWSLIDE,
00325   kM_MENU_FILE_CLOSE,
00326   kM_MENU_FILE_EXIT,
00327   kM_MENU_LISTTREE_SORTTREE,
00328   kM_MENU_LISTTREE_SORTFOLDER,
00329   kM_MENU_LISTTREE_DELETE,
00330   kM_MENU_LISTTREE_CLEAR,
00331   kM_MENU_LISTTREE_REFRESH,
00332   /*
00333   kM_MENU_CONNECT_MON1,
00334   kM_MENU_CONNECT_MON2,
00335   kM_MENU_CONNECT_MON3,
00336   kM_MENU_CONNECT_MON4,
00337   kM_MENU_CONNECT_MON5,
00338   */
00339   kM_MENU_CONNECT_STATUS,
00340   kM_MENU_HELP_GUI,
00341   kM_MENU_HELP_ROOT,
00342   kM_MENU_HELP_CANVAS,
00343   kM_PICTBUTTON,
00344   kM_RABUTTON_MFILE,
00345   kM_RABUTTON_RFILE,
00346   kM_RABUTTON_SOCKET,
00347   kM_BUTTON_FILENAME,
00348   kM_BUTTON_CHOOSEFILE,
00349   kM_BUTTON_CLEARFILENAME,
00350   //kM_BUTTON_START,
00351   kM_BUTTON_PAUSE,
00352   kM_BUTTON_CLEAR,
00353   kM_BUTTON_PRINT,
00354   kM_BUTTON_RESTART,
00355   kM_BUTTON_ZERO,
00356   kM_BUTTON_UNZERO,
00357   kM_BUTTON_CONTENT,
00358   kM_BUTTON_STOP,
00359   kM_BUTTON_CANVAS,
00360   //kM_BUTTON_EXIT,
00361   kM_CHBUTTON_AUTOUPDATE,
00362   kM_CHBUTTON_SLIDEUPDATE,
00363   kM_TEXTENTRY_FILENAME,
00364   kM_TEXTENTRY_MONITORNAME,
00365   kM_TEXTENTRY_FREQUENCY
00366 };


Function Documentation

char* getword char *  str,
const char  commentchar
 

Definition at line 1803 of file HistoDisplay.cxx.

Referenced by HistoDisplay::MakeConsumerInfo().

01804 {
01805   //cout << " In getword " << endl;
01806 
01807   char *word = 0;
01808 
01809   if ( str && ( strlen( str ) > 0 ) ) {
01810     char *begin = str;
01811     while( isspace( *begin ) && ( *begin != '\0' ) ) begin++;
01812 
01813     //if ( *begin != '\0' ) {
01814     if ( ( *begin != '\0' ) &&
01815          ( *begin != commentchar ) ) {
01816 
01817       char *end = begin;
01818 
01819       //while( !isspace( *end ) ) end++;
01820 
01821       while( !isspace( *end ) ) {
01822         char *tmp = 0;
01823         if ( ( *end == '\"' ) && 
01824              ( tmp = const_cast<char*>(strchr( end + 1 , '\"' )) )  ) end = tmp;
01825         else end++;
01826       }
01827 
01828       char tmpchr = *end;
01829       *end = '\0';
01830  
01831       word = new char[ strlen( begin ) + 1 ];
01832       strcpy( word , begin );
01833 
01834       *end = tmpchr;
01835 
01836     } //if ( *begin != '\0' )
01837 
01838   } // if ( str && ( strlen( str ) > 0 ) )
01839 
01840   return word;
01841 
01842 }

char* strdelete char *  str,
const char *  del
 

Definition at line 1845 of file HistoDisplay.cxx.

Referenced by HistoDisplay::MakeConsumerInfo().

01846 {
01847   //cout << " In strdelete " << endl;
01848 
01849   char *newword = 0;
01850 
01851   char *pos = 0;
01852   if ( ( pos = const_cast<char*>(strstr( str, del )) ) ) {
01853     newword = new char[ strlen( str ) - strlen( del ) + 1 ];
01854     if ( newword ) {
01855       char tmp = *pos;
01856       *pos = '\0';
01857 
01858       strcpy( newword, str );
01859 
01860       *pos = tmp;
01861 
01862       strcat( newword, pos + strlen( del ) );
01863 
01864     }//if ( newword )
01865   } //if ( pos = strstr( str, del ) )
01866 
01867   return newword;
01868 
01869 }

char* strstrn const char *  s,
const char *  k
 

Definition at line 1873 of file HistoDisplay.cxx.

References s().

Referenced by HistoDisplay::ProcessMessage(), and HistoDisplay::SearchWarningErrorFolder().

01874 {
01875   const char *pk = k;
01876   const char *ps = 0;
01877 
01878   while ( *s != '\0' ) {
01879     if ( tolower( *s ) == tolower( *pk ) ) {
01880       if ( pk == k ) ps = s;
01881       pk++;
01882       if ( *pk == '\0' ) break;
01883     } //if ( tolower( *ps ) == tolower( *pk ) )
01884     else {
01885       pk = k;
01886       ps = 0;
01887     } //else //if ( tolower( *ps ) == tolower( *pk ) )
01888     s++;
01889   } //while ( *s != '\0' ) 
01890 
01891   return  (char*) ps;
01892 
01893 }


Variable Documentation

const char* kErrorFolder = "error"
 

Definition at line 383 of file HistoDisplay.cxx.

const char* kSlideShowFolder = "slide"
 

Definition at line 380 of file HistoDisplay.cxx.

const char* kWarningErrorCanvasName = "WarningErrorCanvas"
 

Definition at line 384 of file HistoDisplay.cxx.

Referenced by HistoDisplay::SearchWarningErrorFolder().

const char* kWarningErrorCanvasTitle = "Warning/Error Canvas"
 

Definition at line 385 of file HistoDisplay.cxx.

Referenced by HistoDisplay::SearchWarningErrorFolder().

const char* kWarningFolder = "warning"
 

Definition at line 382 of file HistoDisplay.cxx.


Generated on Mon Feb 15 11:07:59 2010 for loon by  doxygen 1.3.9.1