MCPcopy Create free account
hub / github.com/Kitware/ParaView / GetCommand

Method GetCommand

Remoting/ClientServerStream/vtkClientServerStream.cxx:1975–1989  ·  view source on GitHub ↗

----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

1973
1974//----------------------------------------------------------------------------
1975vtkClientServerStream::Commands vtkClientServerStream::GetCommand(int message) const
1976{
1977 // The first value in a message is always the command.
1978 if (const unsigned char* data = this->GetValue(message, 0))
1979 {
1980 // Retrieve the command value and convert it to the proper type.
1981 vtkTypeUInt32 cmd;
1982 memcpy(&cmd, data, sizeof(cmd));
1983 if (cmd < vtkClientServerStream::EndOfCommands)
1984 {
1985 return static_cast<vtkClientServerStream::Commands>(cmd);
1986 }
1987 }
1988 return vtkClientServerStream::EndOfCommands;
1989}
1990
1991//----------------------------------------------------------------------------
1992int vtkClientServerStream::GetNumberOfArguments(int message) const

Callers 15

PrintMessageMethod · 0.95
MessageToStringMethod · 0.95
PushMethod · 0.45
PushMethod · 0.45
PushMethod · 0.45
PullMethod · 0.45
PullMethod · 0.45
GetSelectionMethod · 0.45
PullMethod · 0.45
PullMethod · 0.45
OnInterpreterErrorMethod · 0.45
ProcessOneMessageMethod · 0.45

Calls 1

GetValueMethod · 0.95

Tested by

no test coverage detected