/usr/include/urg/FindComPorts.h is in liburg0-dev 0.8.12-1ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 | #ifndef QRK_FIND_COM_PORTS_H
#define QRK_FIND_COM_PORTS_H
/*!
\file
\brief COM �|�[�g�ꗗ�̎擾
\author Satofumi KAMIMURA
$Id: FindComPorts.h 1811 2010-04-30 16:12:05Z satofumi $
\attention ����m�F�� Windows XP �̂݁B���ł͖�����
*/
#include <string>
#include <vector>
#include <memory>
namespace qrk
{
/*!
\brief �V���A���|�[�g�̒T�����s��
Windows �ł́A���W�X�g���������� COM �ꗗ���擾���ĕԂ��B\n
Linux, MacOS �ł́A�^����ꂽ�p�^�[���Ɉ�v����t�@�C�������擾���ĕԂ��B
*/
class FindComPorts
{
public:
FindComPorts(void);
~FindComPorts(void);
/*!
\brief �o�^�ς݂̃x�[�X���̃N���A
*/
void clearBaseNames(void);
/*!
\brief �T���ŗp����|�[�g�̃x�[�X����lj�����
\param[in] base_name �|�[�g�̃x�[�X��
*/
void addBaseName(const char* base_name);
/*!
\brief �o�^�ς݂̃|�[�g�̃x�[�X����Ԃ�
Linux �����ŗp����
\return �|�[�g�̃x�[�X��
*/
std::vector<std::string> baseNames(void);
void addDriverName(const char* driver_name);
/*!
\brief COM �|�[�g�ꗗ�̎擾
\param[out] ports ���o�����|�[�g
\param[in] all_ports addDriverName() �Ŏw�肵���|�[�g�̂ݎ擾����Ƃ� false
\retval COM �ꗗ���i�[���ꂽ string �z��
*/
size_t find(std::vector<std::string>& ports, bool all_ports = true);
size_t find(std::vector<std::string>& ports,
std::vector<std::string>& driver_names, bool all_ports = true);
private:
FindComPorts(const FindComPorts& rhs);
FindComPorts& operator = (const FindComPorts& rhs);
struct pImpl;
std::auto_ptr<pImpl> pimpl;
};
}
#endif /* !QRK_FIND_COM_PORTS_H */
|