You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
1.2 KiB

  1. // util/kaldi-io-inl.h
  2. // Copyright 2009-2011 Microsoft Corporation
  3. // See ../../COPYING for clarification regarding multiple authors
  4. //
  5. // Licensed under the Apache License, Version 2.0 (the "License");
  6. // you may not use this file except in compliance with the License.
  7. // You may obtain a copy of the License at
  8. // http://www.apache.org/licenses/LICENSE-2.0
  9. // THIS CODE IS PROVIDED *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  10. // KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
  11. // WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
  12. // MERCHANTABLITY OR NON-INFRINGEMENT.
  13. // See the Apache 2 License for the specific language governing permissions and
  14. // limitations under the License.
  15. #ifndef KALDI_UTIL_KALDI_IO_INL_H_
  16. #define KALDI_UTIL_KALDI_IO_INL_H_
  17. #include <string>
  18. namespace kaldi {
  19. bool Input::Open(const std::string& rxfilename, bool* binary) {
  20. return OpenInternal(rxfilename, true, binary);
  21. }
  22. bool Input::OpenTextMode(const std::string& rxfilename) {
  23. return OpenInternal(rxfilename, false, NULL);
  24. }
  25. bool Input::IsOpen() { return impl_ != NULL; }
  26. bool Output::IsOpen() { return impl_ != NULL; }
  27. } // end namespace kaldi.
  28. #endif // KALDI_UTIL_KALDI_IO_INL_H_