2022-04-06 07:22:24 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QString>
|
|
|
|
|
|
|
|
#include "Library.h"
|
|
|
|
|
|
|
|
class Agent;
|
|
|
|
|
|
|
|
typedef std::shared_ptr<Agent> AgentPtr;
|
|
|
|
|
|
|
|
class Agent {
|
2023-08-02 17:35:35 +01:00
|
|
|
public:
|
|
|
|
Agent(LibraryPtr library, const QString& argument)
|
2022-04-06 07:22:24 +01:00
|
|
|
{
|
|
|
|
m_library = library;
|
|
|
|
m_argument = argument;
|
|
|
|
}
|
|
|
|
|
2023-08-02 17:35:35 +01:00
|
|
|
public: /* methods */
|
|
|
|
LibraryPtr library() { return m_library; }
|
|
|
|
QString argument() { return m_argument; }
|
2022-04-06 07:22:24 +01:00
|
|
|
|
2023-08-02 17:35:35 +01:00
|
|
|
protected: /* data */
|
2022-04-06 07:22:24 +01:00
|
|
|
/// The library pointing to the jar this Java agent is contained within
|
|
|
|
LibraryPtr m_library;
|
|
|
|
|
|
|
|
/// The argument to the Java agent, passed after an = if present
|
|
|
|
QString m_argument;
|
|
|
|
};
|