This file is indexed.

/usr/include/urg/Connection.h is in liburg0-dev 0.8.18-2.

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
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
#ifndef QRK_CONNECTION_H
#define QRK_CONNECTION_H

/*!
  \file
  \brief �ʐM�C���^�[�t�F�[�X

  \author Satofumi KAMIMURA

  $Id: Connection.h 1988 2012-05-15 07:04:56Z satofumi $
*/

#include <cstddef>


namespace qrk
{
    enum {
        ReceiveTimeout = -1,
        ErrorLastIndex = -2,
    };


    //! �ʐM�C���^�[�t�F�[�X
    class Connection
    {
    public:
        virtual ~Connection(void) {}


        /*!
          \brief ������Ԃ�Ԃ�

          \return ������Ԃ�����������
        */
        virtual const char* what(void) const = 0;


        /*!
          \brief �f�o�C�X�ւ̐ڑ�

          \param[in] device �ڑ��f�o�C�X��
          \param[in] baudrate �ڑ��{�[���[�g

          \retval true ����
          \retval false ���s
        */
        virtual bool connect(const char* device, long baudrate) = 0;


        /*!
          \brief �ؒf
        */
        virtual void disconnect(void) = 0;


        /*!
          \brief �{�[���[�g�̕ύX

          \param[in] baudrate �{�[���[�g

          \retval 0 ����
          \retval < 0 �G���[
        */
        virtual bool setBaudrate(long baudrate) = 0;


        /*!
          \brief �{�[���[�g��Ԃ�

          \retval �{�[���[�g

          \attention SerialDevice �ł̂ݗL��
        */
        virtual long baudrate(void) const = 0;


        /*!
          \brief �ڑ���Ԃ�Ԃ�

          \retval true �ڑ���
          \retval false �ؒf��
        */
        virtual bool isConnected(void) const = 0;


        /*!
          \brief ���M

          \param[in] data ���M�f�[�^
          \param[in] count ���M�o�C�g��

          \return ���M�����o�C�g��
        */
        virtual int send(const char* data, size_t count) = 0;


        /*!
          \brief ��M

          \param[out] data ��M�p�o�b�t�@
          \param[in] count ��M�o�b�t�@�̍ő�T�C�Y
          \param[in] timeout �^�C���A�E�g���� [msec]
        */
        virtual int receive(char* data, size_t count, int timeout) = 0;


        /*!
          \brief ��M�ς݃f�[�^�̃o�C�g����Ԃ�

          \return ��M�ς݃f�[�^�̃o�C�g��
        */
        virtual size_t size(void) const = 0;


        /*!
          \brief �o�b�t�@�̓��e�������I�ɏo�͂���
        */
        virtual void flush(void) = 0;


        /*!
          \brief ����M�f�[�^�̃N���A

          ���M�o�b�t�@�A��M�ς݃f�[�^���N���A����
        */
        virtual void clear(void) = 0;


        /*!
          \brief �P���������߂�

          \param[in] ch �����߂�����
        */
        virtual void ungetc(const char ch) = 0;
    };
}

#endif /* !QRK_CONNECTION_H */