14f94c520f8d699a5973956a1716272146be17128Zonr Chang/*
24f94c520f8d699a5973956a1716272146be17128Zonr Chang * Copyright 2012, The Android Open Source Project
34f94c520f8d699a5973956a1716272146be17128Zonr Chang *
44f94c520f8d699a5973956a1716272146be17128Zonr Chang * Licensed under the Apache License, Version 2.0 (the "License");
54f94c520f8d699a5973956a1716272146be17128Zonr Chang * you may not use this file except in compliance with the License.
64f94c520f8d699a5973956a1716272146be17128Zonr Chang * You may obtain a copy of the License at
74f94c520f8d699a5973956a1716272146be17128Zonr Chang *
84f94c520f8d699a5973956a1716272146be17128Zonr Chang *     http://www.apache.org/licenses/LICENSE-2.0
94f94c520f8d699a5973956a1716272146be17128Zonr Chang *
104f94c520f8d699a5973956a1716272146be17128Zonr Chang * Unless required by applicable law or agreed to in writing, software
114f94c520f8d699a5973956a1716272146be17128Zonr Chang * distributed under the License is distributed on an "AS IS" BASIS,
124f94c520f8d699a5973956a1716272146be17128Zonr Chang * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
134f94c520f8d699a5973956a1716272146be17128Zonr Chang * See the License for the specific language governing permissions and
144f94c520f8d699a5973956a1716272146be17128Zonr Chang * limitations under the License.
154f94c520f8d699a5973956a1716272146be17128Zonr Chang */
164f94c520f8d699a5973956a1716272146be17128Zonr Chang
17c72c4ddfcd79c74f70713da91a69569451b5c19eZonr Chang#ifndef BCC_SUPPORT_INPUT_FILE_H
18c72c4ddfcd79c74f70713da91a69569451b5c19eZonr Chang#define BCC_SUPPORT_INPUT_FILE_H
194f94c520f8d699a5973956a1716272146be17128Zonr Chang
20c72c4ddfcd79c74f70713da91a69569451b5c19eZonr Chang#include "bcc/Support/File.h"
21c72c4ddfcd79c74f70713da91a69569451b5c19eZonr Chang#include "bcc/Support/FileBase.h"
224f94c520f8d699a5973956a1716272146be17128Zonr Chang
234f94c520f8d699a5973956a1716272146be17128Zonr Changnamespace bcc {
244f94c520f8d699a5973956a1716272146be17128Zonr Chang
254f94c520f8d699a5973956a1716272146be17128Zonr Changclass InputFile : public File<FileBase::kReadMode> {
264f94c520f8d699a5973956a1716272146be17128Zonr Chang  typedef File<FileBase::kReadMode> super;
274f94c520f8d699a5973956a1716272146be17128Zonr Changpublic:
284f94c520f8d699a5973956a1716272146be17128Zonr Chang  InputFile(const std::string &pFilename, unsigned pFlags = 0);
294f94c520f8d699a5973956a1716272146be17128Zonr Chang
304f94c520f8d699a5973956a1716272146be17128Zonr Chang  ssize_t read(void *pBuf, size_t count);
314f94c520f8d699a5973956a1716272146be17128Zonr Chang};
324f94c520f8d699a5973956a1716272146be17128Zonr Chang
334f94c520f8d699a5973956a1716272146be17128Zonr Chang} // end namespace bcc
344f94c520f8d699a5973956a1716272146be17128Zonr Chang
35c72c4ddfcd79c74f70713da91a69569451b5c19eZonr Chang#endif  // BCC_SUPPORT_INPUT_FILE_H
36