LAPTOP-SNT8I5JK\Boounion
2025-01-07 22137ea1df173a3c58a641eb9cd12999258faf18
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#include "stdafx.h"
#include "PLC.h"
 
 
CPLC::CPLC()
{
}
 
CPLC::CPLC(const char* pszName, const char* pszIp, const unsigned int port)
{
    m_strName = pszName;
    m_strIp = pszIp;
    m_nPort = port;
}
 
CPLC::~CPLC()
{
}
 
std::string& CPLC::getName()
{
    return m_strName;
}
 
std::string& CPLC::getIp()
{
    return m_strIp;
}
 
unsigned int CPLC::getPort()
{
    return m_nPort;
}