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

Method GetArgumentType

Remoting/ClientServerStream/vtkClientServerStream.cxx:2006–2020  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

2004
2005//----------------------------------------------------------------------------
2006vtkClientServerStream::Types vtkClientServerStream::GetArgumentType(int message, int argument) const
2007{
2008 // Get a pointer to the type/value pair in the stream.
2009 if (const unsigned char* data = this->GetValue(message, 1 + argument))
2010 {
2011 // Get the type of the value in the stream and convert it.
2012 vtkTypeUInt32 type;
2013 memcpy(&type, data, sizeof(type));
2014 if (type < vtkClientServerStream::End)
2015 {
2016 return static_cast<vtkClientServerStream::Types>(type);
2017 }
2018 }
2019 return vtkClientServerStream::End;
2020}
2021
2022//----------------------------------------------------------------------------
2023// Map from the vtkClientServerStream::Types enumeration to strings.

Callers 7

PrintArgumentInternalMethod · 0.95
ArgumentToStringMethod · 0.95
ArgumentValueToStringMethod · 0.95
ExpandMessageMethod · 0.80
ConvertCSArgsToPyTupleFunction · 0.80

Calls 1

GetValueMethod · 0.95

Tested by

no test coverage detected