aboutsummaryrefslogtreecommitdiff
path: root/src (follow)
AgeCommit message (Collapse)Author
2010-01-07Added a function that really should have always been in FString...Mike Buland
2010-01-05Really minor tweaks, shouldn't effect anything that we have right now, really.Mike Buland
2009-12-21Added a trimBack fonction to FBasicString that removes all occurances of onceMike Buland
char from the back of the string.
2009-12-21Ok, Process has been updated. You now must specify flags as the first parameterMike Buland
of both constructors, this allows you to control which streams to bind to. To preserve the old behaviour, simply put Bu::Process::StdOut before your old first parameters.
2009-12-19Added a couple helpers, peekPop(), and an addition operator.Mike Buland
2009-12-18Ok...sweet, the OptParser now supports everything the old one did, but in muchMike Buland
less code, and it does everything with more style and panache, also fewer bugs.
2009-12-18Wow, cool, Bu::Formatter can read all the basic types now, (int, float, bool,Mike Buland
char, etc.) and OptParser totally works. I have one last change to make to it, which is using the return value of signal type options to determine weather or not the option took a parameter at all, especially in the case of short options.
2009-12-18The OptParser still needs help banners and more helper functions, but otherwise,Mike Buland
it's done. It works great, and provides much flexibility and usefulness. It now relies on the input side of the Formatter class, which at the moment supports reading strings...not real useful yet... Next up, adding readers for numbers and such, then it'll be mostly complete. Also, fixed a bug when copying uninitialized signal objects.
2009-12-16Signals is even safer and works even better. Also, OptParser is nearly done.Mike Buland
Now I just have to come up with a way to modify data that you already have, that sure was a nice feature of the old one, even if it was implemented in a silly way.
2009-12-16Signals are now not only typesafe, but also will throw an exception if you tryMike Buland
to construct a slot with a null pointer, or call a signal that has not been set yet. Also, signals can be checked for being set, and assigned to one another.
2009-12-16The new signal/slots system is in place, and works from 0-5 parameters rightMike Buland
now, I'll probably add more later on... I've also started on the replacement for ParamProc, OptParser. It should do everything that ParamProc did, only with less code, and much better.
2009-12-15Bugfix in Bu::FBasicString for null string comparisons.Mike Buland
2009-12-10Process is working much better, it actually follows the guidelines for most ofMike Buland
it's functions now, such as isEos and whotnot, although it won't work in non- blocking mode yet, and I'm still trying to figure out a good way to have it deal with both stdout and stderr.
2009-12-06I corrected a peculiar heap corner case that caused an infinite loop.Mike Buland
2009-12-06Hmmm, this is better, yeah, I don't think it'll effect anyone for now...Mike Buland
2009-12-01Getting closer with the pointer formatter...Mike Buland
2009-11-24Added a replace function to fstring...sweeet.Mike Buland
2009-11-18Hey, fixed the problems in heap. It should now work properly no matter what theMike Buland
data or order etc.
2009-11-12I've started my campaign to clean up all of the header files in libbu++ as farMike Buland
as includes go. This required a little bit of reworking as far as archive goes, but I've been planning on changing it aronud for a bit anyway. The final result here is that you may need to add some more includes in your own code, libbu++ doesn't include as many random things you didn't ask for anymore, most of these seem to be bu/hash.h, unistd.h, and time.h. Also, any Archive functions and operators should use ArchiveBase when they can instead of Archive, archivebase.h is a much lighterweight include that will be used everywhere in core that it can be, there are a few classes that actually want a specific archiver to be used, they will use it (such as the nids storage class). So far, except for adding header files, nothing has changed in functionality, and no other code changes should be required, although the above mentioned archive changeover is reccomended.
2009-10-28Uuid now has a default gen function that will generate a uuid using the best,Mike Buland
easiest method available. On linux right now, this means that it uses the kernel /proc interface. I'll have to add some fallbacks to this...
2009-10-26Minor, cosmetic change to the TafWriter. It now writes group names that areMike Buland
blank as they were intended, i.e. {: }, not {"": }.
2009-10-16Got rid of cgiutil, it was empty, it was all going to be duplicates of code inMike Buland
the Url class and others.
2009-10-16Finally added the substream class, and added getByPath (for properties) andMike Buland
getChildByPath (for groups) to the TafGroup class.
2009-10-16Although this looks like a load of code changes, this represents no functionalMike Buland
change to the Taf system. Really all that's happened is I've broken out the core taf data types into seperate files, and gone ahead and created a helpful new header file ("taf.h") that will include the entire taf system, including the reader and writer for you. This means that a lot of programs will start complaining, but fortunately, there's an easy solution, if it complains about taf, make sure to include taf.h at the top, instead of other taf files and you'll be set. The next set of changes will add lots of helpers to the taf system and change the reader to read non-const structures, i.e. I'll actually add editing support to created taf structures.
2009-10-05I just got rid of the float markers, we know we need a new float formatter, itMike Buland
doesn't need to make all output ugly forever.
2009-09-26Minor tweaks and fixes to Bu::VariantMike Buland
2009-09-25New Bu::Variant class. Store anything in it, get it out again, find out it'sMike Buland
type. It's really just that easy. More info, docs, and tweaks to come.
2009-09-23Wow, ok, file was broken on changing position in the stream, it wouldn't resetMike Buland
the end of stream flag. Now it does reset it, and assumes that you've placed the position not at the end, if you have, it will detect it again immediately upon read. BZip2 now provides a method of getting the number of bytes written out, i.e. the compressed size of the output, I have to figure out the input side next...
2009-09-21Stupid prepend. A prepend function was missing, and the prepend functionsMike Buland
didn't hardcopy appropriately.
2009-09-18Added a handy readLine function, I've been meaning to do this for a while.Mike Buland
2009-09-15Minor change, added a new constructor for lists that lets you append the firstMike Buland
element to the list in the constructor.
2009-09-10Hey, minor updates to the formatter and a unit test, nothing important.Mike Buland
2009-09-09Fixed a unit test, and added some fixes and new queue functions to list, fuck itMike Buland
it's easier when they're in list.
2009-09-09Fixed a minor assignment bug in shared core, assigning an object to itself wasMike Buland
causing memory corruption, and fbasicstring is playing even nicer with shared core now.
2009-09-09Wow, that was stupid, default values weren't working since I switched toMike Buland
Bu::TafException instead of Bu::HashException. THis is fixed.
2009-09-04Wow, I should check this in the other containers. I should have known better,Mike Buland
but I made the Formatter << operator for Lists use the List with the value as the template parameter, and no others, so if you actually tune the list, you can't format it anymore. This has been fixed.
2009-08-31Added a getDaysInMonth function, it'll live in util.{cpp,h} until I create anMike Buland
actual Date class.
2009-08-28Corrected the iterator in Bu::Hash, and fixed the erase function in Bu::List,Mike Buland
there are a couple more fine points to touch on in Bu::Hash::iterator, I should go through and review the whole thing at this point (iterator-wise).
2009-08-27Huh, the Bu::Cache::Ptr didn't have comparison operators, seems odd. I shouldMike Buland
probably document some of that...if you do an == with Bu::Cache::Ptr objects it will compare them to see if they are the same pointer, not if the data contained is compatible. i.e. to see if two pointers are the same data, you can do: a == b but to see if a and b contain compatible data, do: *a == *b :)
2009-08-24Fixed a minor helper in Bu::MemBuf, and corrected some docs on Bu::Stream, theMike Buland
synopsis line made the canWrite function misleading. I also addad a script that could actually be used for any project, it builds a tarball release of all the files that are in SVN, so it will skip object code and the like.
2009-08-22Pretty much just removed the debugging from SharedCore, it wasn't at fault, andMike Buland
it passed many more valgrind tests.
2009-08-21Added loads of debugging to sharedcore, we're sure it's to blame, but not asMike Buland
much anymore, for the fishtrax issues, maybe.
2009-08-20Added a typedef to the cache, and most list manipulation functions now returnMike Buland
a reference to the list, so you can chain appends and whatnot.
2009-08-14Massive freaking changes!!!Mike Buland
Bu:;SharedCore actually is in and works, it's well tested and there are no known memory leaks or violations as of now. It's been applied to Bu::List and Bu::FBasicString so far. This means that everything using Bu::List and Bu::FBasicString will be much, much faster and use considerably less memory. I still have plans to apply this to Hash and maybe a couple of other core classes.
2009-08-14A good start on a speed test framework.Mike Buland
2009-08-13Ok, shared core looks good, and I added a unit test for Bu::List to check a fewMike Buland
basics. It works, so now I'm going to apply SharedCore to Bu::List and see how bad it is. Also, I got rid of all the warnings and things that showed up during compilation, they were all silly anyway. Finally, mkunit.sh is much cooler. Hard to believe it's a shell script, it now also adds proper #line directives to the cpp output so if there is an error or warning g++ will give you the right line number in your .unit file, not the resultant cpp file.
2009-08-13Bu::Hash can now be sent through the Formatter, it's cute.Mike Buland
2009-08-13Bu::FString now has some fun conversion operators, you can do:Mike Buland
X << strVar; where X is any primitive, and strVar is an FString. We'll add other converters later, but it's fun so far.
2009-08-11Added some more functions to Bu::FBasicString, including a setSize function.Mike Buland
Also added some awesome helpers to Bu::FString in the form of << operators to convert a string to many common types. Handy.
2009-08-09Really, just a lot of documenting.Mike Buland