PrevUpHomeNext

Haiku c++ entry_ref BEntry - 2024-11-13-01


entry_ref BEntry

entry_ref, BEntry, Haiku c++ api

#include <Entry.h>
#include <iostream>

int main()
{
	entry_ref e_ref;
	BEntry{"audio.wav"}.GetRef(&e_ref);
	std::cout << e_ref.name << "::" << e_ref.device << "::" << e_ref.directory
		<< std::endl;
}

Build & Run:

~> g++ xx.cpp -std=c++23 -lbe -o xx
~> ./xx
audio.wav::3::1048576

Links

Haiku API Docs https://api.haiku-os.org

Haiku Home - Haiku OS

Back Index - Dig Haiku OS c++

cpp/c++

c++ std::exception:

std::cout.write(err.data(), err.size());

std::cout << std::endl;

caught:

  ===================================
  #  The c++ programming language.  #
  #                                 #
  #  Join c++ Discord: yZcauUAUyC   #
  #  Deck                           #
  ===================================

Home: cppfx.xyz

K


PrevUpHomeNext