Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
third-party
visit
Commits
0c3bfefc
Commit
0c3bfefc
authored
Mar 31, 2007
by
hrchilds
Browse files
Update from October 9, 2003
git-svn-id:
http://visit.ilight.com/svn/visit/trunk/src@95
18c085ea-50e0-402c-830e-de6fd14e8384
parent
c2febb1b
Changes
74
Hide whitespace changes
Inline
Side-by-side
bin/visit
View file @
0c3bfefc
...
...
@@ -264,6 +264,11 @@ $0 = shift @ARGV;
# Brad Whitlock, Fri Oct 3 12:59:49 PDT 2003
# I made the -s argument become -scriptfile when -movie is specified.
#
# Jeremy Meredith, Thu Oct 9 13:12:51 PDT 2003
# Added ability to guess remote client host name from SSH_CLIENT,
# SSH2_CLIENT, or SSH_CONNECTION environment variables.
# Added ia64 linux machine type.
#
###############################################################################
...
...
@@ -344,6 +349,11 @@ USAGE: visit [arguments]
-foreground <color> Foreground color for GUI
-nowin Run without viewer windows
Advanced arguments:
-guesshost Try to guess the client host name from one of
the SSH_CLIENT, SSH2_CLIENT, or SSH_CONNECTION
environment variables.
Plugin arguments:
-publicpluginsonly Disable all plugins but the default ones
...
...
@@ -488,9 +498,36 @@ while (scalar(@ARGV) > 0) {
push @visitargs,
"-totalview"
,
$debug_totalview
;
}
}
elsif
(
$arg
eq
"-guesshost"
)
{
$guesshost
=
1
;
}
else
{
push @visitargs,
$arg
;
}
}
if
(
$guesshost
)
{
if
(
$ENV
{
SSH_CLIENT
})
{
(
$remotehost
)
=
split
/
\s
/,
$ENV
{
SSH_CLIENT
}
;
$remotehost_set
=
1
;
}
elsif
(
$ENV
{
SSH2_CLIENT
})
{
(
$remotehost
)
=
split
/
\s
/,
$ENV
{
SSH2_CLIENT
}
;
$remotehost_set
=
1
;
}
elsif
(
$ENV
{
SSH_CONNECTION
})
{
(
$remotehost
)
=
split
/
\s
/,
$ENV
{
SSH_CONNECTION
}
;
$remotehost_set
=
1
;
}
else
{
print STDERR
"Error: -guesshost was specified, but it was
\n
"
.
"unable to parse the SSH_CLIENT/CONNECTION
\n
"
.
"environment variable to get a valid host name
\n
"
;
exit
1
;
}
}
# ----
# TEMPORARY HACK:
# for versions prior to 1.1.4, we need to pass the version info
...
...
@@ -675,6 +712,9 @@ for ($os) {
if
(
$mach
=
~ /alpha/
)
{
$archdir
=
"linux-alpha"
;
}
elsif
(
$mach
=
~ /ia64/
)
{
$archdir
=
"linux-ia64"
;
}
else
{
$archdir
=
"linux-intel"
;
}
...
...
clearcase_bin/visit-bin-dist
View file @
0c3bfefc
...
...
@@ -133,6 +133,9 @@
# Eric Brugger, Tue Sep 23 15:36:07 PDT 2003
# Added a missing endif.
#
# Jeremy Meredith, Thu Oct 9 15:44:43 PDT 2003
# Added ia64 linux machine name.
#
#-----------------------------------------------------------------------
set DataFiles = "TRUE"
...
...
@@ -365,7 +368,7 @@ endif
mkdir distribution/visit/$Version
ln -s $Version distribution/visit/current
set platforms="hp-hpux-pa sgi-irix6-mips2 sun4-sunos5-sparc ibm-aix-pwr dec-osf1-alpha linux-intel linux-alpha intel-tflops-ppro"
set platforms="hp-hpux-pa sgi-irix6-mips2 sun4-sunos5-sparc ibm-aix-pwr dec-osf1-alpha linux-intel
linux-ia64
linux-alpha intel-tflops-ppro"
foreach platform ($platforms)
mkdir distribution/visit/$Version/$platform
mkdir distribution/visit/$Version/$platform/bin
...
...
@@ -451,6 +454,9 @@ switch ($os)
case i686:
set visitbindir = linux-intel
breaksw
case ia64:
set visitbindir = linux-ia64
breaksw
case alpha:
set visitbindir = linux-alpha
breaksw
...
...
common/comm/ExistingRemoteProcess.C
View file @
0c3bfefc
...
...
@@ -71,11 +71,21 @@ ExistingRemoteProcess::~ExistingRemoteProcess()
// I made all of the command line options be passed to the callback
// function so launching processes can be done with more flexibility.
//
// Jeremy Meredith, Thu Oct 9 14:04:18 PDT 2003
// Added ability to manually specify a client host name or to have it
// parsed from the SSH_CLIENT (or related) environment variables. Added
// ability to specify an SSH port.
//
// ****************************************************************************
bool
ExistingRemoteProcess
::
Open
(
const
std
::
string
&
rHost
,
int
numRead
,
int
numWrite
,
bool
createAsThoughLocal
)
ExistingRemoteProcess
::
Open
(
const
std
::
string
&
rHost
,
HostProfile
::
ClientHostDetermination
chd
,
const
std
::
string
&
clientHostName
,
bool
manualSSHPort
,
int
sshPort
,
int
numRead
,
int
numWrite
,
bool
createAsThoughLocal
)
{
// Start making the connections and start listening.
if
(
!
StartMakingConnection
(
rHost
,
numRead
,
numWrite
))
...
...
@@ -83,7 +93,9 @@ ExistingRemoteProcess::Open(const std::string &rHost, int numRead, int numWrite,
// Add all of the relevant command line arguments to a vector of strings.
stringVector
commandLine
;
CreateCommandLine
(
commandLine
,
rHost
,
numRead
,
numWrite
,
CreateCommandLine
(
commandLine
,
rHost
,
chd
,
clientHostName
,
manualSSHPort
,
sshPort
,
numRead
,
numWrite
,
createAsThoughLocal
);
//
...
...
common/comm/ExistingRemoteProcess.h
View file @
0c3bfefc
...
...
@@ -22,6 +22,11 @@
// the argument list used to create the process to be the local form
// even though the process may be launched on a remote machine.
//
// Jeremy Meredith, Thu Oct 9 14:04:08 PDT 2003
// Added ability to manually specify a client host name or to have it
// parsed from the SSH_CLIENT (or related) environment variables. Added
// ability to specify an SSH port.
//
// ****************************************************************************
class
COMM_API
ExistingRemoteProcess
:
public
RemoteProcess
...
...
@@ -29,7 +34,12 @@ class COMM_API ExistingRemoteProcess : public RemoteProcess
public:
ExistingRemoteProcess
(
const
std
::
string
&
rProgram
);
virtual
~
ExistingRemoteProcess
();
virtual
bool
Open
(
const
std
::
string
&
rHost
,
int
numRead
,
int
numWrite
,
virtual
bool
Open
(
const
std
::
string
&
rHost
,
HostProfile
::
ClientHostDetermination
chd
,
const
std
::
string
&
clientHostName
,
bool
manualSSHPort
,
int
sshPort
,
int
numRead
,
int
numWrite
,
bool
createAsThoughLocal
=
false
);
void
SetConnectCallback
(
ConnectCallback
*
cb
);
void
SetConnectCallbackData
(
void
*
data
);
...
...
common/comm/RemoteProcess.C
View file @
0c3bfefc
...
...
@@ -30,6 +30,7 @@
#include <CouldNotConnectException.h>
#include <DebugStream.h>
#include <snprintf.h>
#include <map>
#ifdef HAVE_THREADS
...
...
@@ -938,11 +939,21 @@ RemoteProcess::MultiThreadedAcceptSocket()
// I moved the code that creates the command line into CreateCommandLine
// instead of having it inside of the methods to launch processes.
//
// Jeremy Meredith, Thu Oct 9 14:02:22 PDT 2003
// Added ability to manually specify a client host name or to have it
// parsed from the SSH_CLIENT (or related) environment variables. Added
// ability to specify an SSH port.
//
// ****************************************************************************
bool
RemoteProcess
::
Open
(
const
std
::
string
&
rHost
,
int
numRead
,
int
numWrite
,
bool
createAsThoughLocal
)
RemoteProcess
::
Open
(
const
std
::
string
&
rHost
,
HostProfile
::
ClientHostDetermination
chd
,
const
std
::
string
&
clientHostName
,
bool
manualSSHPort
,
int
sshPort
,
int
numRead
,
int
numWrite
,
bool
createAsThoughLocal
)
{
// Start making the connections and start listening.
if
(
!
StartMakingConnection
(
rHost
,
numRead
,
numWrite
))
...
...
@@ -950,7 +961,9 @@ RemoteProcess::Open(const std::string &rHost, int numRead, int numWrite,
// Add all of the relevant command line arguments to a vector of strings.
stringVector
commandLine
;
CreateCommandLine
(
commandLine
,
rHost
,
numRead
,
numWrite
,
CreateCommandLine
(
commandLine
,
rHost
,
chd
,
clientHostName
,
manualSSHPort
,
sshPort
,
numRead
,
numWrite
,
createAsThoughLocal
);
//
...
...
@@ -1409,11 +1422,20 @@ RemoteProcess::SecureShellArgs() const
// Brad Whitlock, Tue Jul 29 10:51:42 PDT 2003
// I removed -nread and -nwrite from the command line.
//
// Jeremy Meredith, Thu Oct 9 14:02:47 PDT 2003
// Added ability to manually specify a client host name or to have it
// parsed from the SSH_CLIENT (or related) environment variables. Added
// ability to specify an SSH port.
//
// ****************************************************************************
void
RemoteProcess
::
CreateCommandLine
(
stringVector
&
args
,
const
std
::
string
&
rHost
,
int
numRead
,
int
numWrite
,
bool
local
)
const
HostProfile
::
ClientHostDetermination
chd
,
const
std
::
string
&
clientHostName
,
bool
manualSSHPort
,
int
sshPort
,
int
numRead
,
int
numWrite
,
bool
local
)
const
{
//
// If the host is not local, then add some ssh arguments to the
...
...
@@ -1442,6 +1464,14 @@ RemoteProcess::CreateCommandLine(stringVector &args, const std::string &rHost,
if
(
sshArgs
)
args
.
push_back
(
sshArgs
);
if
(
manualSSHPort
)
{
char
portStr
[
256
];
SNPRINTF
(
portStr
,
256
,
"%d"
,
sshPort
);
args
.
push_back
(
"-p"
);
args
.
push_back
(
portStr
);
}
// Set the username.
if
(
remoteUserName
!=
std
::
string
(
"notset"
))
{
...
...
@@ -1474,8 +1504,20 @@ RemoteProcess::CreateCommandLine(stringVector &args, const std::string &rHost,
//
// Add the local hostname and the ports we'll be talking on.
//
args
.
push_back
(
"-host"
);
args
.
push_back
(
localHost
.
c_str
());
switch
(
chd
)
{
case
HostProfile
:
:
MachineName
:
args
.
push_back
(
"-host"
);
args
.
push_back
(
localHost
.
c_str
());
break
;
case
HostProfile
:
:
ManuallySpecified
:
args
.
push_back
(
"-host"
);
args
.
push_back
(
clientHostName
);
break
;
case
HostProfile
:
:
ParsedFromSSHCLIENT
:
args
.
push_back
(
"-guesshost"
);
break
;
}
args
.
push_back
(
"-port"
);
char
tmp
[
20
];
...
...
common/comm/RemoteProcess.h
View file @
0c3bfefc
...
...
@@ -8,6 +8,7 @@
#include <netinet/in.h>
#endif
#include <vectortypes.h>
#include <HostProfile.h>
class
Connection
;
...
...
@@ -66,6 +67,11 @@ class Connection;
// Jeremy Meredith, Thu Jul 3 14:49:23 PDT 2003
// Added ability to disable ptys.
//
// Jeremy Meredith, Thu Oct 9 13:56:56 PDT 2003
// Added ability to manually specify a client host name or to have it
// parsed from the SSH_CLIENT (or related) environment variables. Added
// ability to specify an SSH port.
//
// ****************************************************************************
class
COMM_API
RemoteProcess
...
...
@@ -73,7 +79,12 @@ class COMM_API RemoteProcess
public:
RemoteProcess
(
const
std
::
string
&
rProgram
);
virtual
~
RemoteProcess
();
virtual
bool
Open
(
const
std
::
string
&
rHost
,
int
numRead
,
int
numWrite
,
virtual
bool
Open
(
const
std
::
string
&
rHost
,
HostProfile
::
ClientHostDetermination
chd
,
const
std
::
string
&
clientHostName
,
bool
manualSSHPort
,
int
sshPort
,
int
numRead
,
int
numWrite
,
bool
createAsThoughLocal
=
false
);
void
WaitForTermination
();
void
AddArgument
(
const
std
::
string
&
arg
);
...
...
@@ -96,6 +107,10 @@ protected:
bool
CallProgressCallback
(
int
stage
);
bool
HostIsLocal
(
const
std
::
string
&
rHost
)
const
;
void
CreateCommandLine
(
stringVector
&
args
,
const
std
::
string
&
rHost
,
HostProfile
::
ClientHostDetermination
chd
,
const
std
::
string
&
clientHostName
,
bool
manualSSHPort
,
int
sshPort
,
int
numRead
,
int
numWrite
,
bool
local
)
const
;
protected:
int
listenPortNum
;
...
...
common/proxybase/RemoteProxyBase.C
View file @
0c3bfefc
...
...
@@ -62,13 +62,21 @@ RemoteProxyBase::~RemoteProxyBase()
// Creation: Fri May 2 14:57:06 PST 2003
//
// Modifications:
//
// Jeremy Meredith, Thu Oct 9 14:04:45 PDT 2003
// Added ability to manually specify a client host name or to have it
// parsed from the SSH_CLIENT (or related) environment variables. Added
// ability to specify an SSH port.
//
// ****************************************************************************
void
RemoteProxyBase
::
Create
(
const
std
::
string
&
hostName
,
ConnectCallback
*
connectCallback
,
void
*
data
,
bool
createAsThoughLocal
)
HostProfile
::
ClientHostDetermination
chd
,
const
std
::
string
&
clientHostName
,
bool
manualSSHPort
,
int
sshPort
,
ConnectCallback
*
connectCallback
,
void
*
data
,
bool
createAsThoughLocal
)
{
// Create a remote process object for the remote component.
if
(
connectCallback
==
NULL
)
...
...
@@ -96,7 +104,9 @@ RemoteProxyBase::Create(const std::string &hostName,
//
// Open the remote component.
//
component
->
Open
(
hostName
,
nRead
,
nWrite
,
createAsThoughLocal
);
component
->
Open
(
hostName
,
chd
,
clientHostName
,
manualSSHPort
,
sshPort
,
nRead
,
nWrite
,
createAsThoughLocal
);
//
// Hook up the sockets to the xfer object.
...
...
common/proxybase/RemoteProxyBase.h
View file @
0c3bfefc
...
...
@@ -4,6 +4,7 @@
#include <Xfer.h>
#include <QuitRPC.h>
#include <ConnectCallback.h>
#include <HostProfile.h>
#include <string>
// Forward declaration.
...
...
@@ -25,6 +26,11 @@ class RemoteProcess;
// Added parallel functions that were only needed for the engine but
// that are helpful to have in the base class.
//
// Jeremy Meredith, Thu Oct 9 14:04:37 PDT 2003
// Added ability to manually specify a client host name or to have it
// parsed from the SSH_CLIENT (or related) environment variables. Added
// ability to specify an SSH port.
//
// ****************************************************************************
class
PROXYBASE_API
RemoteProxyBase
...
...
@@ -37,7 +43,12 @@ public:
void
SetProgressCallback
(
bool
(
*
cb
)(
void
*
,
int
),
void
*
data
);
void
AddArgument
(
const
std
::
string
&
arg
);
void
Create
(
const
std
::
string
&
hostName
,
ConnectCallback
*
connectCallback
=
0
,
void
Create
(
const
std
::
string
&
hostName
,
HostProfile
::
ClientHostDetermination
chd
,
const
std
::
string
&
clientHostName
,
bool
manualSSHPort
,
int
sshPort
,
ConnectCallback
*
connectCallback
=
0
,
void
*
data
=
0
,
bool
createAsThoughLocal
=
false
);
void
Close
();
...
...
common/state/AnnotationAttributes.C
View file @
0c3bfefc
...
...
@@ -199,7 +199,7 @@ AnnotationAttributes::BackgroundMode_FromString(const std::string &s, Annotation
// Note: Autogenerated by xml2atts.
//
// Programmer: xml2atts
// Creation:
Wed Jul 23
1
1
:2
9:28
P
D
T 2003
// Creation:
Thu Oct 9
1
3
:2
7:00
P
S
T 2003
//
// Modifications:
//
...
...
@@ -284,7 +284,7 @@ AnnotationAttributes::AnnotationAttributes() : AttributeSubject("bbbbbbbbddddddd
// Note: Autogenerated by xml2atts.
//
// Programmer: xml2atts
// Creation:
Wed Jul 23
1
1
:2
9:28
P
D
T 2003
// Creation:
Thu Oct 9
1
3
:2
7:00
P
S
T 2003
//
// Modifications:
//
...
...
@@ -373,7 +373,7 @@ AnnotationAttributes::AnnotationAttributes(const AnnotationAttributes &obj) : At
// Note: Autogenerated by xml2atts.
//
// Programmer: xml2atts
// Creation:
Wed Jul 23
1
1
:2
9:28
P
D
T 2003
// Creation:
Thu Oct 9
1
3
:2
7:00
P
S
T 2003
//
// Modifications:
//
...
...
@@ -393,7 +393,7 @@ AnnotationAttributes::~AnnotationAttributes()
// Note: Autogenerated by xml2atts.
//
// Programmer: xml2atts
// Creation:
Wed Jul 23
1
1
:2
9:28
P
D
T 2003
// Creation:
Thu Oct 9
1
3
:2
7:00
P
S
T 2003
//
// Modifications:
//
...
...
@@ -483,7 +483,7 @@ AnnotationAttributes::operator = (const AnnotationAttributes &obj)
// Note: Autogenerated by xml2atts.
//
// Programmer: xml2atts
// Creation:
Wed Jul 23
1
1
:2
9:28
P
D
T 2003
// Creation:
Thu Oct 9
1
3
:2
7:00
P
S
T 2003
//
// Modifications:
//
...
...
@@ -572,7 +572,7 @@ AnnotationAttributes::operator == (const AnnotationAttributes &obj) const
// Note: Autogenerated by xml2atts.
//
// Programmer: xml2atts
// Creation:
Wed Jul 23
1
1
:2
9:28
P
D
T 2003
// Creation:
Thu Oct 9
1
3
:2
7:00
P
S
T 2003
//
// Modifications:
//
...
...
@@ -593,7 +593,7 @@ AnnotationAttributes::operator != (const AnnotationAttributes &obj) const
// Note: Autogenerated by xml2atts.
//
// Programmer: xml2atts
// Creation:
Wed Jul 23
1
1
:2
9:28
P
D
T 2003
// Creation:
Thu Oct 9
1
3
:2
7:00
P
S
T 2003
//
// Modifications:
//
...
...
@@ -614,7 +614,7 @@ AnnotationAttributes::TypeName() const
// Note: Autogenerated by xml2atts.
//
// Programmer: xml2atts
// Creation:
Wed Jul 23
1
1
:2
9:28
P
D
T 2003
// Creation:
Thu Oct 9
1
3
:2
7:00
P
S
T 2003
//
// Modifications:
//
...
...
@@ -642,7 +642,7 @@ AnnotationAttributes::CopyAttributes(const AttributeGroup *atts)
// Note: Autogenerated by xml2atts.
//
// Programmer: xml2atts
// Creation:
Wed Jul 23
1
1
:2
9:28
P
D
T 2003
// Creation:
Thu Oct 9
1
3
:2
7:00
P
S
T 2003
//
// Modifications:
//
...
...
@@ -668,7 +668,7 @@ AnnotationAttributes::CreateCompatible(const std::string &tname) const
// Note: Autogenerated by xml2atts.
//
// Programmer: xml2atts
// Creation:
Wed Jul 23
1
1
:2
9:28
P
D
T 2003
// Creation:
Thu Oct 9
1
3
:2
7:00
P
S
T 2003
//
// Modifications:
//
...
...
@@ -695,7 +695,7 @@ AnnotationAttributes::NewInstance(bool copy) const
// Note: Autogenerated by xml2atts.
//
// Programmer: xml2atts
// Creation:
Wed Jul 23
1
1
:2
9:28
P
D
T 2003
// Creation:
Thu Oct 9
1
3
:2
7:00
P
S
T 2003
//
// Modifications:
//
...
...
@@ -787,7 +787,7 @@ AnnotationAttributes::SelectAll()
// Note: Autogenerated by xml2atts.
//
// Programmer: xml2atts
// Creation:
Wed Jul 23
1
1
:2
9:28
P
D
T 2003
// Creation:
Thu Oct 9
1
3
:2
7:00
P
S
T 2003
//
// Modifications:
//
...
...
@@ -1158,60 +1158,44 @@ AnnotationAttributes::CreateNode(DataNode *parentNode, bool forceAdd)
node
->
AddNode
(
new
DataNode
(
"bboxFlag"
,
bboxFlag
));
}
if
(
!
FieldsEqual
(
59
,
&
defaultObject
))
{
DataNode
*
backgroundColorNode
=
new
DataNode
(
"backgroundColor"
);
if
(
backgroundColor
.
CreateNode
(
backgroundColorNode
,
fals
e
))
if
(
backgroundColor
.
CreateNode
(
backgroundColorNode
,
tru
e
))
{
addToParent
=
true
;
node
->
AddNode
(
backgroundColorNode
);
}
else
delete
backgroundColorNode
;
}
if
(
!
FieldsEqual
(
60
,
&
defaultObject
))
{
DataNode
*
foregroundColorNode
=
new
DataNode
(
"foregroundColor"
);
if
(
foregroundColor
.
CreateNode
(
foregroundColorNode
,
fals
e
))
if
(
foregroundColor
.
CreateNode
(
foregroundColorNode
,
tru
e
))
{
addToParent
=
true
;
node
->
AddNode
(
foregroundColorNode
);
}
else
delete
foregroundColorNode
;
}
if
(
!
FieldsEqual
(
61
,
&
defaultObject
))
{
addToParent
=
true
;
node
->
AddNode
(
new
DataNode
(
"gradientBackgroundStyle"
,
GradientStyle_ToString
(
gradientBackgroundStyle
)));
}
if
(
!
FieldsEqual
(
62
,
&
defaultObject
))
{
DataNode
*
gradientColor1Node
=
new
DataNode
(
"gradientColor1"
);
if
(
gradientColor1
.
CreateNode
(
gradientColor1Node
,
fals
e
))
if
(
gradientColor1
.
CreateNode
(
gradientColor1Node
,
tru
e
))
{
addToParent
=
true
;
node
->
AddNode
(
gradientColor1Node
);
}
else
delete
gradientColor1Node
;
}
if
(
!
FieldsEqual
(
63
,
&
defaultObject
))
{
DataNode
*
gradientColor2Node
=
new
DataNode
(
"gradientColor2"
);
if
(
gradientColor2
.
CreateNode
(
gradientColor2Node
,
fals
e
))
if
(
gradientColor2
.
CreateNode
(
gradientColor2Node
,
tru
e
))
{
addToParent
=
true
;
node
->
AddNode
(
gradientColor2Node
);
}
else
delete
gradientColor2Node
;
}
if
(
!
FieldsEqual
(
64
,
&
defaultObject
))
{
addToParent
=
true
;
...
...
@@ -1255,7 +1239,7 @@ AnnotationAttributes::CreateNode(DataNode *parentNode, bool forceAdd)
// Note: Autogenerated by xml2atts.
//
// Programmer: xml2atts
// Creation:
Wed Jul 23
1
1
:2
9:28
P
D
T 2003
// Creation:
Thu Oct 9
1
3
:2
7:00
P
S
T 2003
//
// Modifications:
//
...
...
@@ -1264,6 +1248,7 @@ AnnotationAttributes::CreateNode(DataNode *parentNode, bool forceAdd)
void
AnnotationAttributes
::
SetFromNode
(
DataNode
*
parentNode
)
{
int
i
;
if
(
parentNode
==
0
)
return
;
...
...
@@ -2451,7 +2436,7 @@ AnnotationAttributes::SelectGradientColor2()
// Note: Autogenerated by xml2atts.
//
// Programmer: xml2atts
// Creation:
Wed Jul 23
1
1
:2
9:28
P
D
T 2003
// Creation:
Thu Oct 9
1
3
:2
7:00
P
S
T 2003
//
// Modifications:
//
...
...
@@ -2543,7 +2528,7 @@ AnnotationAttributes::GetFieldName(int index) const
// Note: Autogenerated by xml2atts.
//
// Programmer: xml2atts
// Creation:
Wed Jul 23
1
1
:2
9:28
P
D
T 2003
// Creation:
Thu Oct 9
1
3
:2
7:00
P
S
T 2003
//
// Modifications:
//
...
...
@@ -2635,7 +2620,7 @@ AnnotationAttributes::GetFieldType(int index) const
// Note: Autogenerated by xml2atts.
//
// Programmer: xml2atts
// Creation:
Wed Jul 23
1
1
:2
9:28
P
D
T 2003
// Creation:
Thu Oct 9
1
3
:2
7:00
P
S
T 2003
//
// Modifications:
//
...
...
@@ -2727,7 +2712,7 @@ AnnotationAttributes::GetFieldTypeName(int index) const
// Note: Autogenerated by xml2atts.
//
// Programmer: xml2atts
// Creation:
Wed Jul 23
1
1
:2
9:28
P
D
T 2003
// Creation:
Thu Oct 9
1
3
:2
7:00
P
S
T 2003
//
// Modifications:
//
...
...
common/state/AnnotationAttributes.h
View file @
0c3bfefc
...
...
@@ -14,7 +14,7 @@
// Notes: Autogenerated by xml2atts.
//
// Programmer: xml2atts
// Creation:
Wed Jul 23
1
1
:2
9:28
P
D
T 2003
// Creation:
Thu Oct 9
1
3
:2
7:00
P
S
T 2003
//
// Modifications:
//
...
...
common/state/HostProfile.C
View file @
0c3bfefc
...
...
@@ -2,6 +2,44 @@
#include <DataNode.h>
#include <Utility.h>
//
// Enum conversion methods for HostProfile::ClientHostDetermination
//
static
const
char
*
ClientHostDetermination_strings
[]
=
{
"MachineName"
,
"ManuallySpecified"
,
"ParsedFromSSHCLIENT"
};
std
::
string
HostProfile
::
ClientHostDetermination_ToString
(
HostProfile
::
ClientHostDetermination
t
)
{
int
index
=
int
(
t
);
if
(
index
<
0
||
index
>=
3
)
index
=
0
;
return
ClientHostDetermination_strings
[
index
];
}
std
::
string
HostProfile
::
ClientHostDetermination_ToString
(
int
t
)
{
int
index
=
(
t
<
0
||
t
>=
3
)
?
0
:
t
;
return
ClientHostDetermination_strings
[
index
];
}
bool