]> git.tdb.fi Git - libs/core.git/log
libs/core.git
10 years agoAdd unit tests for strings/utils.h and FS::Path
Mikko Rasa [Fri, 6 Jul 2012 12:09:10 +0000 (15:09 +0300)]
Add unit tests for strings/utils.h and FS::Path

10 years agoImplement get_handle in File and Pipe
Mikko Rasa [Wed, 30 May 2012 19:02:30 +0000 (19:02 +0000)]
Implement get_handle in File and Pipe

10 years agoAdd functions to support console redirection
Mikko Rasa [Wed, 30 May 2012 19:00:56 +0000 (19:00 +0000)]
Add functions to support console redirection

10 years agoAdd some error checks to Console functions
Mikko Rasa [Wed, 30 May 2012 18:16:18 +0000 (18:16 +0000)]
Add some error checks to Console functions

10 years agoSet correct mode in Pipe constructor
Mikko Rasa [Wed, 30 May 2012 17:41:30 +0000 (17:41 +0000)]
Set correct mode in Pipe constructor

10 years agoUse separate members for Pipe read/write handles
Mikko Rasa [Wed, 30 May 2012 17:41:03 +0000 (17:41 +0000)]
Use separate members for Pipe read/write handles

10 years agoUse an enum rather than plain integers to distinguish Console instances
Mikko Rasa [Wed, 30 May 2012 17:38:40 +0000 (17:38 +0000)]
Use an enum rather than plain integers to distinguish Console instances

10 years agoFix a 64-bit compilation error
Mikko Rasa [Wed, 30 May 2012 17:36:56 +0000 (17:36 +0000)]
Fix a 64-bit compilation error

10 years agoFix warnings about certain narrowing conversions not being allowed in C++11
Mikko Rasa [Thu, 10 May 2012 21:11:17 +0000 (00:11 +0300)]
Fix warnings about certain narrowing conversions not being allowed in C++11

10 years agoAdd missing headers
Mikko Rasa [Thu, 10 May 2012 19:15:25 +0000 (22:15 +0300)]
Add missing headers

11 years agoChange stat functions so that it's again possible to determine file existence
Mikko Rasa [Tue, 6 Sep 2011 11:38:48 +0000 (14:38 +0300)]
Change stat functions so that it's again possible to determine file existence

11 years agoFix some stray header names
Mikko Rasa [Tue, 6 Sep 2011 08:37:06 +0000 (11:37 +0300)]
Fix some stray header names

11 years agoHash functions
Mikko Rasa [Sun, 4 Sep 2011 19:17:38 +0000 (22:17 +0300)]
Hash functions

11 years agoUse string::size_type rather than unsigned to store string offsets
Mikko Rasa [Sat, 13 Aug 2011 23:41:24 +0000 (02:41 +0300)]
Use string::size_type rather than unsigned to store string offsets

11 years agoAdd a missing #include
Mikko Rasa [Wed, 10 Aug 2011 19:32:42 +0000 (22:32 +0300)]
Add a missing #include

11 years agoRemove signal_closed now that closing is only done in the destructor
Mikko Rasa [Fri, 5 Aug 2011 15:04:07 +0000 (18:04 +0300)]
Remove signal_closed now that closing is only done in the destructor

11 years agoAdd a constructor for system_error that takes error message instead of code
Mikko Rasa [Fri, 5 Aug 2011 14:49:46 +0000 (17:49 +0300)]
Add a constructor for system_error that takes error message instead of code

11 years agoRemove the obsolete exceptions from core
Mikko Rasa [Mon, 1 Aug 2011 09:38:05 +0000 (12:38 +0300)]
Remove the obsolete exceptions from core

11 years agoDon't throw on win32 if file has no owner or group
Mikko Rasa [Sun, 31 Jul 2011 15:37:29 +0000 (18:37 +0300)]
Don't throw on win32 if file has no owner or group

11 years agoAdd a flag to make statting directories work on win32
Mikko Rasa [Sun, 31 Jul 2011 15:36:54 +0000 (18:36 +0300)]
Add a flag to make statting directories work on win32

11 years agoUse 64-bit version of stat syscall, even on 32-bit systems
Mikko Rasa [Sun, 31 Jul 2011 15:36:16 +0000 (18:36 +0300)]
Use 64-bit version of stat syscall, even on 32-bit systems

11 years agoAdd an ls example to demonstrate some of the fs components
Mikko Rasa [Sun, 31 Jul 2011 15:34:38 +0000 (18:34 +0300)]
Add an ls example to demonstrate some of the fs components

11 years agoPut examples in their own directory
Mikko Rasa [Sat, 30 Jul 2011 08:40:15 +0000 (11:40 +0300)]
Put examples in their own directory

11 years agoRewrite the stat functions to expose a platform-independent interface
Mikko Rasa [Sat, 30 Jul 2011 08:18:35 +0000 (11:18 +0300)]
Rewrite the stat functions to expose a platform-independent interface

11 years agoAdd conversions from timeval/FILETIME to RawTime
Mikko Rasa [Sat, 30 Jul 2011 08:14:02 +0000 (11:14 +0300)]
Add conversions from timeval/FILETIME to RawTime

11 years agoIsolate platform-dependent RawTime conversion functions to a private header
Mikko Rasa [Fri, 29 Jul 2011 22:17:04 +0000 (01:17 +0300)]
Isolate platform-dependent RawTime conversion functions to a private header

11 years agoRemove an unnecessary #include
Mikko Rasa [Thu, 28 Jul 2011 12:10:24 +0000 (15:10 +0300)]
Remove an unnecessary #include

11 years agoException rework for fs components
Mikko Rasa [Thu, 28 Jul 2011 12:10:13 +0000 (15:10 +0300)]
Exception rework for fs components

11 years agoRemove some stray Id tags
Mikko Rasa [Thu, 28 Jul 2011 11:20:13 +0000 (14:20 +0300)]
Remove some stray Id tags

11 years agoMerge branch 'fs-master'
Mikko Rasa [Thu, 28 Jul 2011 11:19:27 +0000 (14:19 +0300)]
Merge branch 'fs-master'

Conflicts:
.gitignore
Build
Changelog.txt

11 years agoComment changes fs-master
Mikko Rasa [Thu, 28 Jul 2011 11:17:55 +0000 (14:17 +0300)]
Comment changes

11 years agoStyle update: remove alignment
Mikko Rasa [Thu, 28 Jul 2011 09:55:39 +0000 (12:55 +0300)]
Style update: remove alignment

11 years agoRemove Id tags and copyright notices from source files
Mikko Rasa [Wed, 27 Jul 2011 08:37:36 +0000 (11:37 +0300)]
Remove Id tags and copyright notices from source files

11 years agoPrepare for assimilation into core
Mikko Rasa [Wed, 27 Jul 2011 05:49:01 +0000 (08:49 +0300)]
Prepare for assimilation into core

11 years agoStyle update: spaces around assignments
Mikko Rasa [Wed, 27 Jul 2011 05:42:32 +0000 (08:42 +0300)]
Style update: spaces around assignments

11 years agoConvert svn:ignore to .gitignore
Mikko Rasa [Wed, 27 Jul 2011 05:24:13 +0000 (08:24 +0300)]
Convert svn:ignore to .gitignore

11 years agoUpdate .gitignore
Mikko Rasa [Mon, 25 Jul 2011 14:46:31 +0000 (17:46 +0300)]
Update .gitignore

11 years agoAdd unit tests
Mikko Rasa [Mon, 25 Jul 2011 14:46:24 +0000 (17:46 +0300)]
Add unit tests

11 years agomaputils.h: add insert_unique function
Mikko Rasa [Mon, 25 Jul 2011 08:02:05 +0000 (11:02 +0300)]
maputils.h: add insert_unique function

11 years agoBuild help messages with format instead of ostringstream
Mikko Rasa [Sat, 18 Jun 2011 18:34:43 +0000 (21:34 +0300)]
Build help messages with format instead of ostringstream

11 years agoUse IO::cout rather than std::cout
Mikko Rasa [Sat, 18 Jun 2011 18:34:15 +0000 (21:34 +0300)]
Use IO::cout rather than std::cout

11 years agoAdd FILE_FLAG_OVERLAPPED in a couple of places
Mikko Rasa [Sat, 18 Jun 2011 18:33:48 +0000 (21:33 +0300)]
Add FILE_FLAG_OVERLAPPED in a couple of places

11 years agoFix Memory::getline
Mikko Rasa [Wed, 15 Jun 2011 08:20:13 +0000 (11:20 +0300)]
Fix Memory::getline

11 years agoUnify end-of-file handling
Mikko Rasa [Wed, 15 Jun 2011 08:11:57 +0000 (11:11 +0300)]
Unify end-of-file handling

11 years agoDon't repeat exception names in what()
Mikko Rasa [Tue, 14 Jun 2011 08:19:16 +0000 (11:19 +0300)]
Don't repeat exception names in what()

11 years agoPut the check_access function in Base
Mikko Rasa [Tue, 14 Jun 2011 08:18:18 +0000 (11:18 +0300)]
Put the check_access function in Base

11 years agoDisallow closing stuff before destruction
Mikko Rasa [Tue, 14 Jun 2011 07:19:09 +0000 (10:19 +0300)]
Disallow closing stuff before destruction

11 years agoUse EventReader in Serial as well
Mikko Rasa [Mon, 13 Jun 2011 14:42:49 +0000 (17:42 +0300)]
Use EventReader in Serial as well

11 years agoFix the Build file so that io headers are installed
Mikko Rasa [Mon, 13 Jun 2011 14:17:05 +0000 (17:17 +0300)]
Fix the Build file so that io headers are installed

11 years agoMinor change to EventReader to avoid an invalid handle error on windows
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

11 years agoUse EventReader in pipe
Mikko Rasa [Sun, 12 Jun 2011 15:03:33 +0000 (18:03 +0300)]
Use EventReader in pipe

11 years agoEventReader class
Mikko Rasa [Sun, 12 Jun 2011 15:02:56 +0000 (18:02 +0300)]
EventReader class

11 years agoWrap seek in a helper function and make it compatible with 64-bit offsets
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

11 years agoMove some common operations to helper functions
Mikko Rasa [Sat, 11 Jun 2011 17:09:22 +0000 (20:09 +0300)]
Move some common operations to helper functions

11 years agoSeparate event-related stuff from Base
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

11 years agoUse the new Handle class to hide platform details from public headers
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

11 years agoHide win32-specific stuff in Pipe behind pimpl
Mikko Rasa [Sat, 11 Jun 2011 11:53:03 +0000 (14:53 +0300)]
Hide win32-specific stuff in Pipe behind pimpl

11 years agoAdd a pimpl Handle class
Mikko Rasa [Sat, 11 Jun 2011 11:41:09 +0000 (14:41 +0300)]
Add a pimpl Handle class

11 years agoUse pimpl in Poller
Mikko Rasa [Sat, 11 Jun 2011 11:01:43 +0000 (14:01 +0300)]
Use pimpl in Poller

11 years agoFurther style fixes
Mikko Rasa [Sat, 11 Jun 2011 10:41:25 +0000 (13:41 +0300)]
Further style fixes
Header updates

11 years agoAdd an intermediate Seekable interface class
Mikko Rasa [Fri, 10 Jun 2011 21:01:02 +0000 (00:01 +0300)]
Add an intermediate Seekable interface class

11 years agoRework exceptions for IO
Mikko Rasa [Fri, 10 Jun 2011 20:47:05 +0000 (23:47 +0300)]
Rework exceptions for IO

11 years agoMerge branch 'io-master'
Mikko Rasa [Fri, 10 Jun 2011 18:08:51 +0000 (21:08 +0300)]
Merge branch 'io-master'

Conflicts:
.gitignore
Build
Changelog.txt

11 years agoConvert svn:ignore to .gitignore io-master
Mikko Rasa [Fri, 10 Jun 2011 18:03:12 +0000 (21:03 +0300)]
Convert svn:ignore to .gitignore

11 years agoMove files to prepare for assimilation into core
Mikko Rasa [Fri, 10 Jun 2011 18:01:55 +0000 (21:01 +0300)]
Move files to prepare for assimilation into core

11 years agoMove class members and comments around
Mikko Rasa [Fri, 10 Jun 2011 18:00:11 +0000 (21:00 +0300)]
Move class members and comments around

11 years agoException changes in strings/utils.cpp
Mikko Rasa [Thu, 9 Jun 2011 14:07:55 +0000 (17:07 +0300)]
Exception changes in strings/utils.cpp

11 years agoUse the get_item function in Profiler::get_scope
Mikko Rasa [Thu, 9 Jun 2011 13:03:37 +0000 (16:03 +0300)]
Use the get_item function in Profiler::get_scope

11 years agoAdd utility functions for getting an item from an std::map
Mikko Rasa [Thu, 9 Jun 2011 13:02:55 +0000 (16:02 +0300)]
Add utility functions for getting an item from an std::map

11 years agoDrop copyright and license notices from files
Mikko Rasa [Thu, 9 Jun 2011 12:04:21 +0000 (15:04 +0300)]
Drop copyright and license notices from files

11 years agoStyle update: spaces around assignments
Mikko Rasa [Thu, 9 Jun 2011 10:21:27 +0000 (13:21 +0300)]
Style update: spaces around assignments

11 years agoStyle and comment updates
Mikko Rasa [Thu, 9 Jun 2011 08:43:22 +0000 (11:43 +0300)]
Style and comment updates

11 years agoMake Time::sleep void
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

11 years agoImprove exceptions for Regex and RegMatch
Mikko Rasa [Wed, 8 Jun 2011 13:07:31 +0000 (16:07 +0300)]
Improve exceptions for Regex and RegMatch

11 years agoAvoid using relative paths beginning with .. in #includes
Mikko Rasa [Wed, 8 Jun 2011 08:26:14 +0000 (11:26 +0300)]
Avoid using relative paths beginning with .. in #includes

11 years agoUse unsigned char as element of Regex::Code
Mikko Rasa [Wed, 8 Jun 2011 06:41:03 +0000 (09:41 +0300)]
Use unsigned char as element of Regex::Code

11 years agoUse format instead of stringstream in Regex
Mikko Rasa [Wed, 8 Jun 2011 06:28:09 +0000 (09:28 +0300)]
Use format instead of stringstream in Regex

11 years agoAdd lexical conversion for DateTime
Mikko Rasa [Tue, 7 Jun 2011 13:54:13 +0000 (16:54 +0300)]
Add lexical conversion for DateTime

11 years agoRemove the old commented out MutexPtr implementation
Mikko Rasa [Tue, 7 Jun 2011 13:52:55 +0000 (16:52 +0300)]
Remove the old commented out MutexPtr implementation

11 years agoAllow error mode to be specified when creating the codec object
Mikko Rasa [Tue, 7 Jun 2011 10:16:11 +0000 (13:16 +0300)]
Allow error mode to be specified when creating the codec object

11 years agoException changes
Mikko Rasa [Mon, 6 Jun 2011 20:37:44 +0000 (23:37 +0300)]
Exception changes

11 years agoAvoid using an exception in a non-error situation
Mikko Rasa [Mon, 6 Jun 2011 20:33:29 +0000 (23:33 +0300)]
Avoid using an exception in a non-error situation

11 years agoPut unichar and ustring in their own file
Mikko Rasa [Sun, 5 Jun 2011 19:58:18 +0000 (22:58 +0300)]
Put unichar and ustring in their own file

11 years agoFix unicode replacement character
Mikko Rasa [Sun, 5 Jun 2011 19:52:42 +0000 (22:52 +0300)]
Fix unicode replacement character

11 years agoReturn -1 from decode_char if there is no input
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

11 years agoRename UnicodeChar to unichar
Mikko Rasa [Fri, 3 Jun 2011 13:45:44 +0000 (16:45 +0300)]
Rename UnicodeChar to unichar

11 years agoRewrite string codec utility functions more compactly
Mikko Rasa [Thu, 2 Jun 2011 15:15:13 +0000 (18:15 +0300)]
Rewrite string codec utility functions more compactly

11 years agoRename namespace Codecs to StringCodec
Mikko Rasa [Wed, 1 Jun 2011 12:53:37 +0000 (15:53 +0300)]
Rename namespace Codecs to StringCodec

11 years agoDrop copyright and license notices from source files
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

11 years agoUse new system_error class in TimeZone
Mikko Rasa [Mon, 30 May 2011 21:11:57 +0000 (00:11 +0300)]
Use new system_error class in TimeZone

11 years agoFix incorrect return value check in get_local_timezone
Mikko Rasa [Mon, 30 May 2011 21:10:06 +0000 (00:10 +0300)]
Fix incorrect return value check in get_local_timezone

11 years agoUse format instead of stringstream in TimeZone
Mikko Rasa [Mon, 30 May 2011 20:24:54 +0000 (23:24 +0300)]
Use format instead of stringstream in TimeZone

11 years agoFlip the sign of TimeZone offset so it makes more sense
Mikko Rasa [Mon, 30 May 2011 20:16:00 +0000 (23:16 +0300)]
Flip the sign of TimeZone offset so it makes more sense

11 years agoFix a bug with leap year handling in DateTime::add_days
Mikko Rasa [Mon, 30 May 2011 19:59:48 +0000 (22:59 +0300)]
Fix a bug with leap year handling in DateTime::add_days

11 years agoUse format instead of stringstream in DateTime
Mikko Rasa [Mon, 30 May 2011 19:58:39 +0000 (22:58 +0300)]
Use format instead of stringstream in DateTime

11 years agoChange exception classes and messages in DateTime
Mikko Rasa [Sat, 28 May 2011 13:37:04 +0000 (16:37 +0300)]
Change exception classes and messages in DateTime

11 years agoPut DateTime::init functions to the correct place in .cpp
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

11 years agoUse the timespec conversion in Semaphore::wait
Mikko Rasa [Sat, 28 May 2011 13:00:46 +0000 (16:00 +0300)]
Use the timespec conversion in Semaphore::wait

11 years agoSelect RawTime definition based on compiler, not platform
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

11 years agoRename time/types.h to rawtime.h
Mikko Rasa [Sat, 28 May 2011 12:25:46 +0000 (15:25 +0300)]
Rename time/types.h to rawtime.h