----------------------------------------------------------------------------
| 2004 | |
| 2005 | //---------------------------------------------------------------------------- |
| 2006 | vtkClientServerStream::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. |
no test coverage detected