From: <ro...@us...> - 2008-10-15 19:51:37
|
Revision: 2014 http://nscldaq.svn.sourceforge.net/nscldaq/?rev=2014&view=rev Author: ron-fox Date: 2008-10-15 19:51:28 +0000 (Wed, 15 Oct 2008) Log Message: ----------- Change class name -> CTCLAuthorizer. Modified Paths: -------------- trunk/nextgen/sbs/readout/CTCLAuthorizer.cpp trunk/nextgen/sbs/readout/CTCLAuthorizer.h Modified: trunk/nextgen/sbs/readout/CTCLAuthorizer.cpp =================================================================== --- trunk/nextgen/sbs/readout/CTCLAuthorizer.cpp 2008-10-15 19:49:50 UTC (rev 2013) +++ trunk/nextgen/sbs/readout/CTCLAuthorizer.cpp 2008-10-15 19:51:28 UTC (rev 2014) @@ -14,7 +14,7 @@ East Lansing, MI 48824-1321 */ -static const char* Copyright = "(C) Copyright Michigan State University 2002, All rights reserved";// Class: CTclAuthorizer +static const char* Copyright = "(C) Copyright Michigan State University 2002, All rights reserved";// Class: CTCLAuthorizer //////////////////////////.cpp file///////////////////////////////////////////////////// #include <config.h> @@ -40,7 +40,7 @@ static char* pCopyrightNotice = "(C) Copyright 1999 NSCL, All rights reserved TclAuthorizer.cpp \n"; -// Functions for class CTclAuthorizer +// Functions for class CTCLAuthorizer static const std::string NameVariable("ServerHostNames"); static const std::string IPVariable("ServerHostIps"); @@ -49,11 +49,11 @@ ////////////////////////////////////////////////////////////////////////////// // // Function: -// CTclAuthorizer (Tcl_Interp* pInterp) +// CTCLAuthorizer (Tcl_Interp* pInterp) // Operation Type: // Constructor. // -CTclAuthorizer::CTclAuthorizer(CTCLInterpreter* pInterp) : +CTCLAuthorizer::CTCLAuthorizer(CTCLInterpreter* pInterp) : CTCLProcessor("serverauth", pInterp), m_pInterpreter(pInterp) @@ -69,13 +69,13 @@ // int nArgs, char* pArgs[]) // Operation Type: // Behavioral override. -int CTclAuthorizer::operator()(CTCLInterpreter& rInterp, CTCLResult& rResult, +int CTCLAuthorizer::operator()(CTCLInterpreter& rInterp, CTCLResult& rResult, int nArgs, char* pArgs[]) { int retval = Process(rInterp, nArgs, pArgs); return retval; } -int CTclAuthorizer::Process(CTCLInterpreter& rInterp, +int CTCLAuthorizer::Process(CTCLInterpreter& rInterp, int nArgs, char* pArgs[]) { // Processes the serverauth command. @@ -117,7 +117,7 @@ else { return Usage(rInterp); } - rInterp.setResult(std::string("Bug in CTclAuthorizer::operator() decode section")); + rInterp.setResult(std::string("Bug in CTCLAuthorizer::operator() decode section")); return TCL_ERROR; } @@ -127,7 +127,7 @@ // AddHost(const string& HostOrIp) // Operation Type: // -Bool_t CTclAuthorizer::AddHost( const std::string& HostOrIp) +Bool_t CTCLAuthorizer::AddHost( const std::string& HostOrIp) { // Adds a specified host to the access lists. // The parameter is first analyzed as a host name. @@ -180,7 +180,7 @@ // RemoveHost(const string& NameOrIP) // Operation Type: // -Bool_t CTclAuthorizer::RemoveHost(const std::string& NameOrIp) +Bool_t CTCLAuthorizer::RemoveHost(const std::string& NameOrIp) { // An attempt is made to locate the host in // the name list. If it is found it and the @@ -230,7 +230,7 @@ // ListHosts() // Operation Type: // -std::string CTclAuthorizer::ListHosts() +std::string CTCLAuthorizer::ListHosts() { // Returns a TCL formatted list whose elements are two entry // lists containing {hostname ipaddress} @@ -271,7 +271,7 @@ // Authenticate(const string& rNameOrIp) // Operation Type: // -Bool_t CTclAuthorizer::Authenticate(const std::string& rNameOrIp) +Bool_t CTCLAuthorizer::Authenticate(const std::string& rNameOrIp) { // The parameter is converted to canonical ip form // and searched for in the ip list. @@ -288,7 +288,7 @@ // HostToIp(string& rName) // Operation Type: // -Bool_t CTclAuthorizer::HostToIp(std::string& rName) +Bool_t CTCLAuthorizer::HostToIp(std::string& rName) { // Converts a string to IP address in 'canonical dotted' form // Cannonical dotted form is: %03d.%03d.%03d.%03d @@ -334,7 +334,7 @@ // GetIndex(const string& rHostOrIp) // Operation Type: // -Int_t CTclAuthorizer::GetIndex(const std::string& rHostOrIp) +Int_t CTCLAuthorizer::GetIndex(const std::string& rHostOrIp) { // Returns the index of the entry corresponding // to an input IP name or Address or -1 if no match. @@ -364,7 +364,7 @@ // Utility: // Bool_t -CTclAuthorizer::ConvertHost(const std::string& rInName, +CTCLAuthorizer::ConvertHost(const std::string& rInName, std::string& rOutname, std::string& rCanonicalIP) { @@ -387,7 +387,7 @@ // Utility // int -CTclAuthorizer::Usage(CTCLInterpreter& interp) +CTCLAuthorizer::Usage(CTCLInterpreter& interp) { // Fills the result string with command usage information. // returns TCL_ERROR making calls like Modified: trunk/nextgen/sbs/readout/CTCLAuthorizer.h =================================================================== --- trunk/nextgen/sbs/readout/CTCLAuthorizer.h 2008-10-15 19:49:50 UTC (rev 2013) +++ trunk/nextgen/sbs/readout/CTCLAuthorizer.h 2008-10-15 19:51:28 UTC (rev 2014) @@ -15,8 +15,8 @@ */ -#ifndef __TCLAUTHORIZER_H //Required for current class -#define __TCLAUTHORIZER_H +#ifndef __CTCLAUTHORIZER_H //Required for current class +#define __CTCLAUTHORIZER_H #ifndef __DAQTYPES_H #include <daqdatatypes.h> @@ -51,7 +51,7 @@ #include <TCLResult.h> //Required for include files #endif -class CTclAuthorizer : public CTCLProcessor +class CTCLAuthorizer : public CTCLProcessor { CTCLInterpreter* m_pInterpreter; CTCLVariable* m_pHostNames; //List of allowed hostnames. @@ -63,8 +63,8 @@ // Constructors and other cannonical operations: - CTclAuthorizer (CTCLInterpreter* pInterp); - ~ CTclAuthorizer ( ) // Destructor + CTCLAuthorizer (CTCLInterpreter* pInterp); + ~ CTCLAuthorizer ( ) // Destructor { delete m_pHostNames; delete m_pHostIps; @@ -73,9 +73,9 @@ //Copy constructor private: - CTclAuthorizer (const CTclAuthorizer& aCTclAuthorizer ) ; - CTclAuthorizer& operator= (const CTclAuthorizer& aCTclAuthorizer); - int operator== (const CTclAuthorizer& aCTclAuthorizer) const; + CTCLAuthorizer (const CTCLAuthorizer& aCTCLAuthorizer ) ; + CTCLAuthorizer& operator= (const CTCLAuthorizer& aCTCLAuthorizer); + int operator== (const CTCLAuthorizer& aCTCLAuthorizer) const; public: // Selectors: This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |