MCPcopy Create free account
hub / github.com/eProsima/Fast-DDS-Gen / Solution

Class Solution

src/main/java/com/eprosima/fastdds/solution/Solution.java:21–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19import java.util.ArrayList;
20
21public class Solution extends com.eprosima.solution.Solution
22{
23 public Solution(fastddsgen.LANGUAGE language, String example, String version, boolean serverside, boolean clientside)
24 {
25 super();
26
27 m_publisherside = serverside;
28 m_subscriberside = clientside;
29 m_version = version;
30 m_example = example;
31 m_language = language;
32 }
33
34 public boolean getPublisherside()
35 {
36 return m_publisherside;
37 }
38
39 public boolean getSubscriberside()
40 {
41 return m_subscriberside;
42 }
43
44 @Override
45 public ArrayList<String> getLibraries()
46 {
47 ArrayList<String> libraries = super.getLibraries();
48 ArrayList<String> ret = new ArrayList<String>();
49
50 for(int count = 0; count < libraries.size(); ++count)
51 {
52 if(m_example.contains("Win") && libraries.get(count).startsWith("fastdds"))
53 ret.add(libraries.get(count) + "-" + m_version);
54 else
55 ret.add(libraries.get(count));
56 }
57
58 return ret;
59 }
60
61 public ArrayList<String> getLibrariesDebug()
62 {
63 ArrayList<String> libraries = super.getLibraries();
64 ArrayList<String> ret = new ArrayList<String>();
65
66 for(int count = 0; count < libraries.size(); ++count)
67 {
68 if(m_example.contains("Win") && libraries.get(count).startsWith("fastdds"))
69 ret.add(libraries.get(count) + "d-" + m_version);
70 else
71 ret.add(libraries.get(count) + "d");
72 }
73
74 return ret;
75 }
76
77 public ArrayList<String> getLibrariesStatic()
78 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected