Cube GUI Plugin User Guide  (CubeGUI 4.9, revision 6e5e012c)
How to develop a Cube GUI Plugin, road map and examples
/****************************************************************************
** CUBE http://www.scalasca.org/ **
*****************************************************************************
** Copyright (c) 2024 **
** Forschungszentrum Juelich GmbH, Juelich Supercomputing Centre **
** **
** This software may be modified and distributed under the terms of **
** a BSD-style license. See the COPYING file in the package base **
** directory for details. **
****************************************************************************/
#include <vector>
#include "CubeServerPlugin.h"
namespace cube
{
class CubeProxy;
}
class ServerPluginExample : public cube::CubeServerPlugin
{
public:
/* used by the client to identify the server plugin */
virtual const char*
name() const override;
/* used by the server api to send data to the plugin and receive an answer, which is send to the client plugin */
std::vector<unsigned char>
send( const std::vector<unsigned char>& dataFromClient,
cube::CubeProxy* cube = 0 ) override;
};
// the class factories which are required to create a plugin
extern "C" cube::CubeServerPlugin * create()
{
return new ServerPluginExample();
}
extern "C" void
destroy( cube::CubeServerPlugin* plugin )
{
delete plugin;
}

Cube GUI    Copyright © 1998 Forschungszentrum Jülich GmbH, Jülich Supercomputing Centre
Copyright © 2009–2015 German Research School for Simulation Sciences GmbH, Laboratory for Parallel Programming