]>
git.tdb.fi Git - libs/core.git/log
Mikko Rasa [Tue, 14 Jun 2011 07:19:09 +0000 (10:19 +0300)]
Disallow closing stuff before destruction
Mikko Rasa [Mon, 13 Jun 2011 14:42:49 +0000 (17:42 +0300)]
Use EventReader in Serial as well
Mikko Rasa [Mon, 13 Jun 2011 14:17:05 +0000 (17:17 +0300)]
Fix the Build file so that io headers are installed
Mikko Rasa [Mon, 13 Jun 2011 14:15:54 +0000 (17:15 +0300)]
Minor change to EventReader to avoid an invalid handle error on windows
Mikko Rasa [Sun, 12 Jun 2011 15:03:33 +0000 (18:03 +0300)]
Use EventReader in pipe
Mikko Rasa [Sun, 12 Jun 2011 15:02:56 +0000 (18:02 +0300)]
EventReader class
Mikko Rasa [Sat, 11 Jun 2011 17:16:33 +0000 (20:16 +0300)]
Wrap seek in a helper function and make it compatible with 64-bit offsets
Mikko Rasa [Sat, 11 Jun 2011 17:09:22 +0000 (20:09 +0300)]
Move some common operations to helper functions
Mikko Rasa [Sat, 11 Jun 2011 14:12:38 +0000 (17:12 +0300)]
Separate event-related stuff from Base
File objects will no longer provide events; it never made much sense anyway
Mikko Rasa [Sat, 11 Jun 2011 11:55:46 +0000 (14:55 +0300)]
Use the new Handle class to hide platform details from public headers
Mikko Rasa [Sat, 11 Jun 2011 11:53:03 +0000 (14:53 +0300)]
Hide win32-specific stuff in Pipe behind pimpl
Mikko Rasa [Sat, 11 Jun 2011 11:41:09 +0000 (14:41 +0300)]
Add a pimpl Handle class
Mikko Rasa [Sat, 11 Jun 2011 11:01:43 +0000 (14:01 +0300)]
Use pimpl in Poller
Mikko Rasa [Sat, 11 Jun 2011 10:41:25 +0000 (13:41 +0300)]
Further style fixes
Header updates
Mikko Rasa [Fri, 10 Jun 2011 21:01:02 +0000 (00:01 +0300)]
Add an intermediate Seekable interface class
Mikko Rasa [Fri, 10 Jun 2011 20:47:05 +0000 (23:47 +0300)]
Rework exceptions for IO
Mikko Rasa [Fri, 10 Jun 2011 18:08:51 +0000 (21:08 +0300)]
Merge branch 'io-master'
Conflicts:
.gitignore
Build
Changelog.txt
Mikko Rasa [Fri, 10 Jun 2011 18:03:12 +0000 (21:03 +0300)]
Convert svn:ignore to .gitignore
Mikko Rasa [Fri, 10 Jun 2011 18:01:55 +0000 (21:01 +0300)]
Move files to prepare for assimilation into core
Mikko Rasa [Fri, 10 Jun 2011 18:00:11 +0000 (21:00 +0300)]
Move class members and comments around
Mikko Rasa [Thu, 9 Jun 2011 14:07:55 +0000 (17:07 +0300)]
Exception changes in strings/utils.cpp
Mikko Rasa [Thu, 9 Jun 2011 13:03:37 +0000 (16:03 +0300)]
Use the get_item function in Profiler::get_scope
Mikko Rasa [Thu, 9 Jun 2011 13:02:55 +0000 (16:02 +0300)]
Add utility functions for getting an item from an std::map
Mikko Rasa [Thu, 9 Jun 2011 12:04:21 +0000 (15:04 +0300)]
Drop copyright and license notices from files
Mikko Rasa [Thu, 9 Jun 2011 10:21:27 +0000 (13:21 +0300)]
Style update: spaces around assignments
Mikko Rasa [Thu, 9 Jun 2011 08:43:22 +0000 (11:43 +0300)]
Style and comment updates
Mikko Rasa [Thu, 9 Jun 2011 08:38:40 +0000 (11:38 +0300)]
Make Time::sleep void
Check return value of nanosleep internally and throw if necessary
Mikko Rasa [Wed, 8 Jun 2011 13:07:31 +0000 (16:07 +0300)]
Improve exceptions for Regex and RegMatch
Mikko Rasa [Wed, 8 Jun 2011 08:26:14 +0000 (11:26 +0300)]
Avoid using relative paths beginning with .. in #includes
Mikko Rasa [Wed, 8 Jun 2011 06:41:03 +0000 (09:41 +0300)]
Use unsigned char as element of Regex::Code
Mikko Rasa [Wed, 8 Jun 2011 06:28:09 +0000 (09:28 +0300)]
Use format instead of stringstream in Regex
Mikko Rasa [Tue, 7 Jun 2011 13:54:13 +0000 (16:54 +0300)]
Add lexical conversion for DateTime
Mikko Rasa [Tue, 7 Jun 2011 13:52:55 +0000 (16:52 +0300)]
Remove the old commented out MutexPtr implementation
Mikko Rasa [Tue, 7 Jun 2011 10:16:11 +0000 (13:16 +0300)]
Allow error mode to be specified when creating the codec object
Mikko Rasa [Mon, 6 Jun 2011 20:37:44 +0000 (23:37 +0300)]
Exception changes
Mikko Rasa [Mon, 6 Jun 2011 20:33:29 +0000 (23:33 +0300)]
Avoid using an exception in a non-error situation
Mikko Rasa [Sun, 5 Jun 2011 19:58:18 +0000 (22:58 +0300)]
Put unichar and ustring in their own file
Mikko Rasa [Sun, 5 Jun 2011 19:52:42 +0000 (22:52 +0300)]
Fix unicode replacement character
Mikko Rasa [Sat, 4 Jun 2011 18:16:19 +0000 (21:16 +0300)]
Return -1 from decode_char if there is no input
Improve the logic in some decoders
Mikko Rasa [Fri, 3 Jun 2011 13:45:44 +0000 (16:45 +0300)]
Rename UnicodeChar to unichar
Mikko Rasa [Thu, 2 Jun 2011 15:15:13 +0000 (18:15 +0300)]
Rewrite string codec utility functions more compactly
Mikko Rasa [Wed, 1 Jun 2011 12:53:37 +0000 (15:53 +0300)]
Rename namespace Codecs to StringCodec
Mikko Rasa [Wed, 1 Jun 2011 10:11:37 +0000 (13:11 +0300)]
Drop copyright and license notices from source files
A single Copying.txt file shall be enough
Mikko Rasa [Mon, 30 May 2011 21:11:57 +0000 (00:11 +0300)]
Use new system_error class in TimeZone
Mikko Rasa [Mon, 30 May 2011 21:10:06 +0000 (00:10 +0300)]
Fix incorrect return value check in get_local_timezone
Mikko Rasa [Mon, 30 May 2011 20:24:54 +0000 (23:24 +0300)]
Use format instead of stringstream in TimeZone
Mikko Rasa [Mon, 30 May 2011 20:16:00 +0000 (23:16 +0300)]
Flip the sign of TimeZone offset so it makes more sense
Mikko Rasa [Mon, 30 May 2011 19:59:48 +0000 (22:59 +0300)]
Fix a bug with leap year handling in DateTime::add_days
Mikko Rasa [Mon, 30 May 2011 19:58:39 +0000 (22:58 +0300)]
Use format instead of stringstream in DateTime
Mikko Rasa [Sat, 28 May 2011 13:37:04 +0000 (16:37 +0300)]
Change exception classes and messages in DateTime
Mikko Rasa [Sat, 28 May 2011 13:34:54 +0000 (16:34 +0300)]
Put DateTime::init functions to the correct place in .cpp
Eliminate DateTime::validate
Mikko Rasa [Sat, 28 May 2011 13:00:46 +0000 (16:00 +0300)]
Use the timespec conversion in Semaphore::wait
Mikko Rasa [Sat, 28 May 2011 12:57:54 +0000 (15:57 +0300)]
Select RawTime definition based on compiler, not platform
Put time(val|spec) conversion functions to rawtime.h
Use conversion operators in favor of fill_* methods
Add conversions to TimeStamp as well
Mikko Rasa [Sat, 28 May 2011 12:25:46 +0000 (15:25 +0300)]
Rename time/types.h to rawtime.h
Mikko Rasa [Sat, 28 May 2011 10:23:01 +0000 (13:23 +0300)]
Use format instead of stringstream in TimeDelta
Mikko Rasa [Sat, 28 May 2011 10:15:40 +0000 (13:15 +0300)]
Remove the now-unused types.h
Mikko Rasa [Sat, 28 May 2011 10:05:30 +0000 (13:05 +0300)]
Refactor Mutex with pimpl
Rewrite the win32 implementation to use a critical section
Change the logic of Semaphore, as the win32 condvar-emulation was rather dodgy
Mikko Rasa [Sat, 28 May 2011 10:12:34 +0000 (13:12 +0300)]
New system_error exception class
Mikko Rasa [Sat, 28 May 2011 09:52:16 +0000 (12:52 +0300)]
Refactor Thread class with pimpl to avoid exposing platform-specific parts
Mikko Rasa [Sat, 28 May 2011 09:14:52 +0000 (12:14 +0300)]
Add a missing #include <windows.h>
Mikko Rasa [Sat, 28 May 2011 09:00:07 +0000 (12:00 +0300)]
Use lexical_cast instead of stringstream in GetOpt
Mikko Rasa [Sat, 28 May 2011 09:04:02 +0000 (12:04 +0300)]
Exception improvements for lexical_cast
Mikko Rasa [Sat, 28 May 2011 08:54:12 +0000 (11:54 +0300)]
Exception changes for Fmt and Formatter
Mikko Rasa [Sat, 28 May 2011 07:52:49 +0000 (10:52 +0300)]
Rename formatter.* to format.*
Mikko Rasa [Wed, 25 May 2011 20:32:24 +0000 (23:32 +0300)]
Improve error reporting in Variant
Mikko Rasa [Wed, 25 May 2011 18:35:59 +0000 (21:35 +0300)]
Make help message printing automatic
Start making more use of std exception classes
Mikko Rasa [Wed, 25 May 2011 13:46:08 +0000 (16:46 +0300)]
Merge branch 'strings-master'
Conflicts:
.gitignore
Build
Changelog.txt
Mikko Rasa [Wed, 25 May 2011 07:28:17 +0000 (10:28 +0300)]
Move files around to prepare for assimilation into core
Mikko Rasa [Wed, 25 May 2011 07:08:45 +0000 (10:08 +0300)]
Further style and comment adjustments
Mikko Rasa [Wed, 25 May 2011 07:01:22 +0000 (10:01 +0300)]
Remove some dead functions
Mikko Rasa [Tue, 24 May 2011 06:21:35 +0000 (09:21 +0300)]
Convert svn:ignore to .gitignore
Mikko Rasa [Mon, 23 May 2011 18:50:15 +0000 (21:50 +0300)]
Style updates
Mikko Rasa [Mon, 23 May 2011 18:49:41 +0000 (21:49 +0300)]
Join threads upon object destruction
Mikko Rasa [Mon, 23 May 2011 18:28:25 +0000 (21:28 +0300)]
Prevent a crash if application destructor throws
Mikko Rasa [Mon, 23 May 2011 18:20:23 +0000 (21:20 +0300)]
Streamline application class registration
Mikko Rasa [Mon, 23 May 2011 18:07:55 +0000 (21:07 +0300)]
Eliminate loop mode from Application
Mikko Rasa [Tue, 24 May 2011 06:01:57 +0000 (09:01 +0300)]
Convert svn:ignore to .gitignore
Mikko Rasa [Fri, 10 Dec 2010 06:45:37 +0000 (06:45 +0000)]
Partial serial port implementation on win32
Events are not supported yet
Mikko Rasa [Fri, 26 Nov 2010 12:59:20 +0000 (12:59 +0000)]
Make to_unixtime const
Add fill_timeval method
Mikko Rasa [Fri, 8 Oct 2010 19:54:28 +0000 (19:54 +0000)]
RefPtr:
Add templated copy-ctor and copy-assignment
Add assignment from a plain pointer for efficiency
Add keep() method to prevent deletion of data
Fix a potential leak in cast_dynamic
Style updates
Mikko Rasa [Fri, 9 Apr 2010 08:23:48 +0000 (08:23 +0000)]
Add a class for serial port communications
No win32 support yet
Mikko Rasa [Thu, 11 Feb 2010 08:13:43 +0000 (08:13 +0000)]
Fix a #include to use relative filename
Mikko Rasa [Wed, 3 Feb 2010 13:35:47 +0000 (13:35 +0000)]
Add RemoveReference meta-function
Mikko Rasa [Mon, 21 Dec 2009 07:27:10 +0000 (07:27 +0000)]
Add LogicError exception class
Throw InvalidState in DateTime::get_timestamp for out-of-range values
Mikko Rasa [Mon, 21 Sep 2009 16:54:56 +0000 (16:54 +0000)]
Bump version to 1.1
Update Build file for upcoming Builder release
Mikko Rasa [Mon, 21 Sep 2009 16:47:08 +0000 (16:47 +0000)]
Bump version to 1.1
Update Build file for upcoming Builder release
Mikko Rasa [Mon, 21 Sep 2009 16:40:37 +0000 (16:40 +0000)]
Bump version to 1.1
Update Build file for upcoming Builder release
Mikko Rasa [Mon, 21 Sep 2009 16:28:17 +0000 (16:28 +0000)]
Use transliterate mode in transcode
Mikko Rasa [Sun, 20 Sep 2009 16:16:36 +0000 (16:16 +0000)]
Fix compile erorrs on 64-bit systems
Mikko Rasa [Sun, 20 Sep 2009 16:16:11 +0000 (16:16 +0000)]
Fix a compilation error on 64-bit systems
Mikko Rasa [Fri, 11 Sep 2009 17:34:36 +0000 (17:34 +0000)]
Fix GetOpt to get strings correctly
Handle missing/extraneous arguments in OptBase
Mikko Rasa [Fri, 11 Sep 2009 17:32:58 +0000 (17:32 +0000)]
Rewrite Timer to use a heap instead of set to deal with duplicate timeouts
Get local timezone from /etc/localtime instead of tzset()
Add TimeStamp::to_unixtime
Mikko Rasa [Thu, 7 May 2009 06:01:55 +0000 (06:01 +0000)]
Improve GetOpt help generation
Mikko Rasa [Mon, 23 Mar 2009 11:49:11 +0000 (11:49 +0000)]
Fix the UTF-8 decoder
Mikko Rasa [Mon, 23 Mar 2009 11:12:27 +0000 (11:12 +0000)]
Add convenience functions to Encoder and Decoder to process a string and return the result
Fix UTF-8 detection in Codecs::detect_codec
Mikko Rasa [Tue, 17 Mar 2009 11:58:07 +0000 (11:58 +0000)]
Add Memory class
Mikko Rasa [Tue, 17 Mar 2009 11:56:46 +0000 (11:56 +0000)]
Allow polling an empty set of objects
Clean up some old debug prints
Mikko Rasa [Sun, 8 Mar 2009 15:41:38 +0000 (15:41 +0000)]
Fix some win32 compile errors
Mikko Rasa [Sun, 8 Mar 2009 15:35:26 +0000 (15:35 +0000)]
Fix a problem with MATCH_MASK handling in Regex
Explicitly cast both arguments to pow to the same type so mingw doesn't get confused
Mikko Rasa [Sat, 21 Feb 2009 10:31:55 +0000 (10:31 +0000)]
Fix octal escape generation in c_escape
Fix mask matching to check for proper range
Don't use uint8_t since it's not supported by MSVC