[haiku-development] Attaching attributes to BFile

  • From: "Yashasvi A.C." <yashasviac@xxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Wed, 12 Aug 2009 13:01:34 +1200

Hey guys,

I have been able to store the messages as a BFile in a specific directory.
Is there any way of attaching attributes to a BFile? For example, a
timestamp or something?

What I would like to do is store the messages as BFiles. So, lets say we
have 3 files (for 3 messages):
File A: _MMV (Timestamp attr: 12590012082009)
File B: _MMV (Timestamp attr: 13000012082009)
File C: _MMV (Timestamp attr: 13010012082009)

Then, I would like to search through these files with a specific query using
the attributes attached to these files.
For example, I could have a query that would return the messages that have
just occured after 1:00pm (which in the example above would be Files B and
C).

I couldn't spot any function that attaches something similar in the BeBook.

Cheers,
Yash

Other related posts: