Commit 7a870610 authored by miller86's avatar miller86
Browse files

changing Init namespace to VisItInit

git-svn-id: http://visit.ilight.com/svn/visit/trunk/src@5378 18c085ea-50e0-402c-830e-de6fd14e8384
parent 1a64e508
......@@ -58,8 +58,8 @@
#include <ImproperUseException.h>
#include <DebugStream.h>
#include <Init.h>
#define ScalRen ((!strcmp(Init::GetComponentName(), "engine")) ? 1 : 0)
#include <VisItInit.h>
#define ScalRen ((!strcmp(VisItInit::GetComponentName(), "engine")) ? 1 : 0)
// ****************************************************************************
// Constructor: avtSurfaceAndWireframeRenderer
......
......@@ -46,7 +46,7 @@
#include <ConfiguratingSet.h>
#include <Colors.h>
#include <ExprGrammar.h>
#include <Init.h>
#include <VisItInit.h>
#include <InvalidExpressionException.h>
#include <ParseException.h>
#include <vector>
......@@ -607,7 +607,7 @@ ExprParser::Parse(const std::string &s)
if (errorMessageTarget == EMT_COMPONENT)
{
Init::ComponentIssueError(error);
VisItInit::ComponentIssueError(error);
}
else if (errorMessageTarget == EMT_CONSOLE)
{
......
......@@ -78,8 +78,8 @@ CPPFLAGS=-I. @CPPFLAGS@
##
## Files...
##
SRC=DebugStream.C Init.C VisItException.C TimingsManager.C PTY.C StackTimer.C
HDR=DebugStream.h Init.h VisItException.h TimingsManager.h PTY.h StackTimer.h
SRC=DebugStream.C VisItInit.C VisItException.C TimingsManager.C PTY.C StackTimer.C
HDR=DebugStream.h VisItInit.h VisItException.h TimingsManager.h PTY.h StackTimer.h
OBJ=$(SRC:.C=.o)
LIB=libmisc
......
......@@ -42,7 +42,7 @@
#include <VisItException.h>
#include <DebugStream.h>
#include <Init.h>
#include <VisItInit.h>
// ****************************************************************************
// Method: VisItException constructor
......@@ -89,7 +89,7 @@ VisItException::VisItException(const std::string &m)
filename = "Unknown";
std::string mtmp = std::string(m,0,16);
if (mtmp.find(':') == std::string::npos)
msg = std::string(Init::GetComponentName()) + ": " + m;
msg = std::string(VisItInit::GetComponentName()) + ": " + m;
else
{
if (mtmp.find("avtprep:") == 0 ||
......@@ -101,7 +101,7 @@ VisItException::VisItException(const std::string &m)
mtmp.find("viewer:") == 0)
msg = m;
else
msg = std::string(Init::GetComponentName()) + ": " + m;
msg = std::string(VisItInit::GetComponentName()) + ": " + m;
}
type = "VisItException";
line = -1;
......
......@@ -40,7 +40,7 @@
// Init.C //
// ************************************************************************* //
#include <Init.h>
#include <VisItInit.h>
#include <stdio.h>
#include <stdlib.h>
......@@ -128,7 +128,7 @@ NewHandler(void)
}
// ****************************************************************************
// Function: Init::Initialize
// Function: VisItInit::Initialize
//
// Purpose:
// Parse any common commandline arguments (e.g. "-debug N") and do
......@@ -208,7 +208,7 @@ NewHandler(void)
// ****************************************************************************
void
Init::Initialize(int &argc, char *argv[], int r, int n, bool strip, bool sigs)
VisItInit::Initialize(int &argc, char *argv[], int r, int n, bool strip, bool sigs)
{
// Return if Initialize has already been called.
if(initializeCalled)
......@@ -357,14 +357,14 @@ Init::Initialize(int &argc, char *argv[], int r, int n, bool strip, bool sigs)
}
// ****************************************************************************
// Function: Init::SetComponentName
// Function: VisItInit::SetComponentName
//
// Purpose: Sets the name of the component
//
// ****************************************************************************
void
Init::SetComponentName(const char *cname)
VisItInit::SetComponentName(const char *cname)
{
size_t len;
......@@ -377,7 +377,7 @@ Init::SetComponentName(const char *cname)
}
// ****************************************************************************
// Function: Init::GetComponentName
// Function: VisItInit::GetComponentName
//
// Purpose: Gets the name of the component. Defaults to name of the
// executable of it was not set.
......@@ -385,19 +385,19 @@ Init::SetComponentName(const char *cname)
// ****************************************************************************
const char *
Init::GetComponentName(void)
VisItInit::GetComponentName(void)
{
return (const char *) componentName;
}
// ****************************************************************************
// Function: Init::ComponentNameToID
// Function: VisItInit::ComponentNameToID
//
// Purpose: Return integer index of component name in list of all components
//
// ****************************************************************************
const int
Init::ComponentNameToID(const char *compName)
VisItInit::ComponentNameToID(const char *compName)
{
int n = sizeof(allComponentNames) / sizeof(allComponentNames[0]);
for (int i = 0; i < n; i++)
......@@ -409,13 +409,13 @@ Init::ComponentNameToID(const char *compName)
}
// ****************************************************************************
// Function: Init::ComponentNameToID
// Function: VisItInit::ComponentNameToID
//
// Purpose: Return name of component with given index in list of all components
//
// ****************************************************************************
const char*
Init::ComponentIDToName(const int id)
VisItInit::ComponentIDToName(const int id)
{
int n = sizeof(allComponentNames) / sizeof(allComponentNames[0]);
......@@ -426,35 +426,35 @@ Init::ComponentIDToName(const int id)
}
// ****************************************************************************
// Function: Init::IsComponent
// Function: VisItInit::IsComponent
//
// Purpose: Tests name of component against name passed as argument
//
// ****************************************************************************
bool
Init::IsComponent(const char *compName)
VisItInit::IsComponent(const char *compName)
{
if (strcmp(compName, Init::GetComponentName()) == 0)
if (strcmp(compName, VisItInit::GetComponentName()) == 0)
return true;
else
return false;
}
// ****************************************************************************
// Function: Init::GetExecutableName
// Function: VisItInit::GetExecutableName
//
// Purpose: Gets the name of the executable
//
// ****************************************************************************
const char *
Init::GetExecutableName(void)
VisItInit::GetExecutableName(void)
{
return (const char *) executableName;
}
// ****************************************************************************
// Function: Init::ComponentRegisterErrorFunction
// Function: VisItInit::ComponentRegisterErrorFunction
//
// Purpose:
// Registers an error function.
......@@ -465,7 +465,7 @@ Init::GetExecutableName(void)
// ****************************************************************************
void
Init::ComponentRegisterErrorFunction(ErrorFunction ef, void *args)
VisItInit::ComponentRegisterErrorFunction(ErrorFunction ef, void *args)
{
errorFunctionArgs = args;
errorFunction = ef;
......@@ -473,7 +473,7 @@ Init::ComponentRegisterErrorFunction(ErrorFunction ef, void *args)
// ****************************************************************************
// Function: Init::ComponentIssueError
// Function: VisItInit::ComponentIssueError
//
// Purpose:
// Issues an error message on that component.
......@@ -484,7 +484,7 @@ Init::ComponentRegisterErrorFunction(ErrorFunction ef, void *args)
// ****************************************************************************
void
Init::ComponentIssueError(const char *msg)
VisItInit::ComponentIssueError(const char *msg)
{
debug1 << "Error issued: " << msg << endl;
if (errorFunction != NULL)
......@@ -500,7 +500,7 @@ Init::ComponentIssueError(const char *msg)
// ****************************************************************************
// Method: Init::Finalize
// Method: VisItInit::Finalize
//
// Purpose:
// Calls cleanup functions before the application exits.
......@@ -525,7 +525,7 @@ Init::ComponentIssueError(const char *msg)
// ****************************************************************************
void
Init::Finalize(void)
VisItInit::Finalize(void)
{
// Return if Finalize has already been called.
if(finalizeCalled)
......
......@@ -37,7 +37,7 @@
*****************************************************************************/
// ************************************************************************* //
// Init.h //
// VisItInit.h //
// ************************************************************************* //
#ifndef INIT_H
......
......@@ -49,7 +49,7 @@
#include <ImproperUseException.h>
#include <InvalidDBTypeException.h>
#include <InvalidFilesException.h>
#include <Init.h>
#include <VisItInit.h>
#include <StringHelpers.h>
#include <avtDatabase.h>
......@@ -395,7 +395,7 @@ avtZipWrapperFileFormatInterface::Initialize(int procNum, int procCount,
char procNumStr[32];
SNPRINTF(procNumStr, sizeof(procNumStr), "_%04d", procNum);
tmpDir = tmpDir + "/visitzw_" + userName + "_" +
string(Init::GetComponentName()) +
string(VisItInit::GetComponentName()) +
(procCount > 1 ? string(procNumStr) : "");
debug5 << "ZipWrapper is using \"" << tmpDir << "\" as the temporary directory" << endl;
......@@ -588,7 +588,7 @@ avtZipWrapperFileFormatInterface::~avtZipWrapperFileFormatInterface()
// if this is the last instance we have, finalize the class too
if (objList.size() == 0)
{
debug5 << "Calling finalize on \"" << Init::GetComponentName() << "\"" << endl;
debug5 << "Calling finalize on \"" << VisItInit::GetComponentName() << "\"" << endl;
avtZipWrapperFileFormatInterface::Finalize();
}
}
......
......@@ -71,7 +71,7 @@
# endif
#endif
#include <IncompatibleVersionException.h>
#include <Init.h>
#include <VisItInit.h>
#include <InitVTK.h>
#include <LoadBalancer.h>
#include <LostConnectionException.h>
......@@ -386,12 +386,12 @@ Engine::Initialize(int *argc, char **argv[], bool sigs)
//
// Initialize error logging
//
Init::SetComponentName("engine");
Init::Initialize(*argc, *argv, PAR_Rank(), PAR_Size(), true, sigs);
VisItInit::SetComponentName("engine");
VisItInit::Initialize(*argc, *argv, PAR_Rank(), PAR_Size(), true, sigs);
#else
xfer = new Xfer;
Init::SetComponentName("engine");
Init::Initialize(*argc, *argv, 0,1, true, sigs);
VisItInit::SetComponentName("engine");
VisItInit::Initialize(*argc, *argv, 0,1, true, sigs);
#endif
//
......@@ -463,7 +463,7 @@ Engine::Finalize(void)
// Now null it out; in case the destructor actually *does* get called.
this->renderingDisplay = NULL;
Init::Finalize();
VisItInit::Finalize();
}
// ****************************************************************************
......@@ -1489,7 +1489,7 @@ Engine::ProcessCommandLine(int argc, char **argv)
// Made the engine an object.
//
// Mark C. Miller, Wed Jul 7 11:42:09 PDT 2004
// Made it PAR_Exit() in parallel and call Init::Finalize()
// Made it PAR_Exit() in parallel and call VisItInit::Finalize()
//
// ****************************************************************************
......@@ -1514,7 +1514,7 @@ Engine::AlarmHandler(int signal)
}
}
Init::Finalize();
VisItInit::Finalize();
#ifdef PARALLEL
PAR_Exit();
#endif
......
......@@ -39,7 +39,7 @@
#include <visitstream.h>
#include <VisItException.h>
#include <QvisGUIApplication.h>
#include <Init.h>
#include <VisItInit.h>
// ****************************************************************************
// Function: main
......@@ -91,8 +91,8 @@ main(int argc, char **argv)
TRY
{
// Initialize error logging.
Init::SetComponentName("gui");
Init::Initialize(argc, argv, 0, 1, false);
VisItInit::SetComponentName("gui");
VisItInit::Initialize(argc, argv, 0, 1, false);
TRY
{
......@@ -116,6 +116,6 @@ main(int argc, char **argv)
}
ENDTRY
Init::Finalize();
VisItInit::Finalize();
return retval;
}
......@@ -76,8 +76,8 @@ SILO_LIB=@SILO_LIB@
EXODUS_FLAGS=@EXODUS_FLAGS@
EXODUS_LIBS=@EXODUS_LIBS@
HDF4_FLAGS=@HDF4_FLAGS@
HDF4_LIBS=@HDF4_LIBS@
HDF4_INCLUDE=@HDF4_INCLUDE@
HDF4_LIB=@HDF4_LIB@
HDF5_INCLUDE=@HDF5_INCLUDE@
HDF5_LIB=@HDF5_LIB@
......
......@@ -39,6 +39,9 @@
/* Define if you have the GLEW library. */
#undef HAVE_LIBGLEW
/* Define if you have hdf4. */
#undef HAVE_LIBHDF4
/* Define if you have hdf5. */
#undef HAVE_LIBHDF5
......
../../common/siloobj/BoundaryList.h
\ No newline at end of file
../../common/siloobj_vtk_db/Database_VTK.h
\ No newline at end of file
../../common/siloobj/Field.h
\ No newline at end of file
../../common/siloobj_vtk_db/Field_VTK.h
\ No newline at end of file
../../common/misc/Init.h
\ No newline at end of file
../../common/siloobj/IntervalTree.h
\ No newline at end of file
../../common/siloobj_vtk_db/IntervalTree_VTK.h
\ No newline at end of file
../../common/siloobj/Material.h
\ No newline at end of file
../../common/siloobj/Mesh.h
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment