InfoComponents.cpp 1.66 KB
Newer Older
1
2
3
4
#include <base/InfoComponents.hpp>
using namespace XPlug;
XPlug::StaticInfoComponent::StaticInfoComponent()
{
5
6
7
8
9
10
  this->pluginName = "";
  this->pluginUri = "";
  this->pluginDescription = "";
  this->pluginCopyright = "";
  this->creatorName = "";
  this->creatorURL = "";
11
  this->id = 0;
12
}
13
14
15
16
17
XPlug::StaticInfoComponent::StaticInfoComponent(std::string _pluginName,
                                                std::string _pluginUri,
                                                std::string _pluginDescription,
                                                std::string _pluginCopyright,
                                                std::string _creatorName,
18
19
                                                std::string _creatorURL,
                                                int64_t _id)
20
21
22
23
24
25
26
{
  this->pluginName = _pluginName;
  this->pluginUri = _pluginUri;
  this->pluginDescription = _pluginDescription;
  this->pluginCopyright = _pluginCopyright;
  this->creatorName = _creatorName;
  this->creatorURL = _creatorURL;
27
  this->id = _id;
28
}
29
30
std::string_view
XPlug::StaticInfoComponent::getPluginName()
31
{
32
  return this->pluginName;
33
}
34
35
std::string_view
XPlug::StaticInfoComponent::getPluginURI()
36
{
37
  return this->pluginUri;
38
}
39
40
std::string_view
XPlug::StaticInfoComponent::getPluginDescription()
41
{
42
  return this->pluginDescription;
43
}
44
45
std::string_view
XPlug::StaticInfoComponent::getPluginCopyright()
46
{
47
  return this->pluginCopyright;
48
}
49
50
std::string_view
XPlug::StaticInfoComponent::getCreatorName()
51
{
52
  return this->creatorName;
53
}
54
55
std::string_view
XPlug::StaticInfoComponent::getCreatorURL()
56
{
57
  return this->creatorURL;
58
59
60
61
62
63
64
}

int64_t
XPlug::StaticInfoComponent::getID()
{
  return this->id;
}