About Store Forum Documentation Contact



Post Reply 
File& putUID(UID id)
Author Message
Fex Offline
Gold Supporter

Post: #1
File& putUID(UID id)
There is

Code:
UID  getUID () {UID  i; T>>i; return i;} //       read UID

but no function like

Code:
File& putUID (UID  f) {T<<f; return T;}

Obviously I can write the raw data of the UID using put, but it would be nice to have an EE API function to do this for aesthetics, given there is a getUID function for file storage.
(This post was last modified: 05-27-2013 12:09 AM by Fex.)
05-27-2013 12:07 AM
Find all posts by this user Quote this message in a reply
Esenthel Online
Administrator

Post: #2
RE: File& putUID(UID id)
Why not just use f<<UID(..) ?
05-27-2013 01:04 PM
Find all posts by this user Quote this message in a reply
Fex Offline
Gold Supporter

Post: #3
RE: File& putUID(UID id)
Ya your right that works, its just an aesthetic thing. I just thought it was weird you had matching put* functions for all the types that you have defined get* functions for, except UID.
05-27-2013 06:20 PM
Find all posts by this user Quote this message in a reply
Post Reply