Commit Graph

779 Commits

Author SHA1 Message Date
Miklos Vajna
ce8fa7740c GH #1050 JSON: fix gcc -Wshadow warnings 2015-12-11 08:32:53 +01:00
Aleksandar Fabijanic
1483d0d112 Merge pull request #1073 from RangelReale/windowshleak
Don't leak <windows.h> (Poco/UnWindows.h) to library users
2015-12-10 21:11:05 -06:00
Guenter Obiltschnig
a80d2a5c9d fixed insert call 2015-12-10 18:48:18 +01:00
Rangel Reale
b47f38fc33 * Don't leak <windows.h> (Poco/Unwindows.h) to library users 2015-12-10 13:16:02 -02:00
Guenter Obiltschnig
dfe52ac11c fix ordering behavior of insert to match doc 2015-12-10 09:46:11 +01:00
fbraem
18b92b5b36 Use escape to correctly escape unicode characters 2015-12-07 17:33:10 +01:00
fbraem
7086d93324 Add escape/unescape functions 2015-12-07 17:31:49 +01:00
Miklos Vajna
b9cfd346a1 GH #1050 Foundation: fix gcc -Wshadow warnings 2015-11-30 15:49:07 +01:00
zosrothko
94bb16fdee Include <pcre.h> for an unbundled build. 2015-11-17 18:45:44 +01:00
Kim Grasman
883cdb7b14 Fix #928: Workaround to fix -Wswitch warning 2015-10-13 21:58:56 +02:00
Guenter Obiltschnig
92e2a19661 added EventChannel class (from macchina.io) 2015-09-30 11:03:03 +02:00
David Morán
8f1f678f76 Named substring support 2015-09-28 02:21:21 +02:00
aaron0x
0a64390399 Enhance FileChannel purge setting. 2015-09-26 23:31:30 +08:00
aaron0x
928a7ffce8 avoid redundant strlen. 2015-09-20 19:52:30 +08:00
aaron0x
3e7f722ca6 1. move flipBytes(float/double) to ByteOrder.
2. remove redundant code from BinaryWriter and BinaryReader.
2015-09-20 05:21:36 +08:00
FrancisANDRE
a4479552b6 add SharedLibrary::getOSName() to improve portability of shared library
real filename over different OS like Linux/Unix/Cygwin & Windows.

Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
2015-09-19 08:28:26 +02:00
Guenter Obiltschnig
526ba5d0b3 added comments regarding encoding/decoding to getPath*() 2015-09-14 10:25:02 +02:00
Guenter Obiltschnig
2603c7a0d4 added comment regarding query strings (#767) 2015-09-14 10:19:08 +02:00
Guenter Obiltschnig
15f034cbbd fix GH #931: make strToInt() more strict in what it accepts 2015-09-09 11:14:29 +02:00
Guenter Obiltschnig
3eca77450c fix version no, style 2015-09-08 17:36:28 +02:00
Aleksandar Fabijanic
f6ab1fb925 Merge pull request #917 from zosrothko/develop
additionnal fixes for the Cygwin platform
2015-09-05 09:30:58 -05:00
Guenter Obiltschnig
249c064ec7 #921: better comment, provide workaround for MSVC only 2015-09-01 21:46:18 +02:00
Guenter Obiltschnig
22c7933fe5 another attempt at fixing #921 2015-09-01 08:31:16 +02:00
Guenter Obiltschnig
245a628d90 removed explicit template instantiations from header files (#921) 2015-08-30 08:26:13 +02:00
Guenter Obiltschnig
e769b8df87 needs to be marked for import/export #921 2015-08-29 22:40:58 +02:00
FrancisANDRE
7f01fbc3db add std::string SharedLibrary::prefix() for building library name that
complies with Cygwin standard.

Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
2015-08-27 08:48:26 +02:00
FrancisANDRE
b0989b0828 replace duplicate define for HP_ACC by the COMPAQ one for DEC CXX
Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
2015-08-27 08:42:11 +02:00
Aleksandar Fabijanic
23f8842a14 Merge pull request #903 from zosrothko/develop
Various fixes for Cygwin X86_64 port and additional minor fixes
2015-08-20 16:56:46 -05:00
Guenter Obiltschnig
fafe691a04 fixes for style and consistency 2015-08-20 14:55:17 +02:00
Günter Obiltschnig
74ffb112bc Merge pull request #907 from dedvalson/develop
PatternFormatter Priority Name Enhancement
2015-08-20 14:48:36 +02:00
FrancisANDRE
c8abda6e4e change return type of getOsTid() const; from long to IntPtr
Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
2015-08-19 17:46:05 +02:00
Günter Obiltschnig
bc5d83cf5f Merge pull request #909 from mkrivos/develop
Some more runtime exceptions types
2015-08-19 09:07:14 +02:00
Marian Krivos
1b1c4416dd Added some more RuntimeExceptions - InterruptedException, IndexOutOfBoundsException, UnsupportedOperationException, EmptyStackException, StackOverflowException, ArithmeticException 2015-08-17 21:55:52 +02:00
FrancisANDRE
2f40cd5b59 With ptrhead, Thread::currentTid() returns a pointer to a struct which
leads to a compile error when assigning it to an long. Thus _ostid type
should be changed to IntPtr and the assignment should use a
reinterpret_cast.

Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
2015-08-17 07:36:57 +02:00
Don Edvalson
5c20361005 Pattern Formatter Priority Name Enhancement
Added a property to allow the user to specify the actual names for the
priorities that will go into the log.
2015-08-14 09:16:05 -04:00
FrancisANDRE
4368a1fcfe add POCO_EXPORT_INTERFACE to ClassLibrary.h
Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
2015-08-08 11:27:12 +02:00
Mazyad Alabduljaleel
5cff648eea Added NotificationQueue::remove function
This includes appropriate tests, which pass on my Mac 10.4 machine
2015-08-06 14:13:11 +04:00
Guenter Obiltschnig
d2c64b4493 GH# 878: check for valid hex characters, support SHA-1 name-based UUIDs (v5) 2015-07-31 10:05:58 +02:00
Aleksandar Fabijanic
22bb363260 FIFOBuffer::read(T*, std::size_t) documentation inaccurate #869, part II 2015-06-23 21:04:59 -05:00
Aleksandar Fabijanic
cc9fb56705 FIFOBuffer::read(T*, std::size_t) documentation inaccurate #869 2015-06-23 21:02:18 -05:00
Aleksandar Fabijanic
2d6fc27dd1 Var BadCastException #861 2015-06-10 09:03:12 -05:00
unknown
1c26b58452 Optional force scan for DirectoryWatcher #853 2015-06-03 14:55:05 -05:00
Matej Kenda
e26bb65a5b Logger: added %O to message format to display numeric thread id in logs. 2015-06-01 10:00:56 +02:00
Matej Kenda
f1e6cba313 Thread POSIX: tid is numeric OS thread ID on Linux and OSX instead of pthread_t. 2015-06-01 09:59:01 +02:00
Matej Kenda
01fc7f2e1c Added condition variable and timeout to ObjectPool::borrowObject/returnObject to block caller until an object is available. 2015-05-27 14:01:39 +02:00
Alex Fabijanic
995832639e Merge branch 'develop' into OpenSSLBuild 2015-05-21 19:46:58 -05:00
Alex Fabijanic
af6c22c0ac simplify Crypto and NetSSL VS projects 2015-04-25 16:18:19 -05:00
Guenter Obiltschnig
ac12cd4972 removed GCC_DIAG_OFF macro, fixed static_assert typedef to include __attribute__((unused)) for GCC 2015-04-21 19:03:55 +02:00
Alex Fabijanic
62bcc5c6ed GCC_DIAG_* definitions are missing for Windows (MinGW) #785 2015-04-22 18:36:12 -05:00
martin-osborne
7780ab3ae0 Corrected more spellings. 2015-04-10 11:43:49 +01:00
martin-osborne
4cf45ea4a3 Corrected more words. 2015-04-10 11:31:12 +01:00
martin-osborne
e9dce11e50 Correct mispelt 'd' and 'e' words. 2015-04-10 10:54:47 +01:00
martin-osborne
12c0594db6 Corrected misspelt 'b' and 'c' words. 2015-04-06 17:56:13 +01:00
martin-osborne
7e730aa9b8 Corrected other misspelt 'a' words. 2015-04-06 17:34:48 +01:00
martin-osborne
91dd5f8e44 Corrected spelling of accommodate in documentation and comments. 2015-04-06 17:03:35 +01:00
Guenter Obiltschnig
c06b36039b fix GCC_DIAG_OFF 2015-03-27 21:02:19 +01:00
Guenter Obiltschnig
c0228c5ff8 allow turning off GCC_DIAG_ON/OFF 2015-03-27 16:54:37 +01:00
Guenter Obiltschnig
df9575dd26 fixes for SolarisStudio compiler 2015-03-23 23:20:15 +01:00
Rangel Reale
d6fcca806e * NaCl support 2015-03-20 11:28:49 -03:00
Alex Fabijanc
027c8a40e2 FIFOBuffer tidy up 2015-03-19 23:22:00 -05:00
Guenter Obiltschnig
2b1301b3e3 style and interface fixes for thread affinity 2015-03-18 16:40:22 +01:00
Aleksandar Fabijanic
8b96fd4a33 Merge pull request #743 from bas524/affinity
add thread affinity policy to threadpool
2015-03-17 17:47:54 -05:00
bas524
283e9a9595 fix error 2015-03-17 09:07:26 +03:00
bas524
6b7c87bf5c replace typedef enum to pure enum ThreadAffinityPolicy
fix problem in cmake for pthread_setaffinity_np
2015-03-17 08:33:05 +03:00
Guenter Obiltschnig
490fa253f1 style fix 2015-03-12 14:50:16 +01:00
ale_bychuk
9d4d3e41dd Add thread affinity support to taskmanager 2015-03-12 16:12:33 +03:00
ale_bychuk
4c1fe9ef02 add thread affinity policy to threadpool
there are OS_DEFAULT, UNIFORM_DISTRIBUTION and CUSTOM
With custom policy we can run thread on specified cpu
2015-03-11 23:39:21 +03:00
Pascal Bach
745d5fb025 Add missing const in ThreadImpl::getAffinityImpl for WINCE 2015-03-11 11:31:10 +01:00
Pascal Bach
1b8a7c1664 Add missing Path implementations for WINCE 2015-03-11 11:30:10 +01:00
ale_bychuk
a0e172419f fix indentation 2015-03-08 22:54:45 +03:00
ale_bychuk
3af35f548c fix indentation 2015-03-08 22:04:29 +03:00
ale_bychuk
662fbc861a add test for thread affinity and fix some problems 2015-03-07 10:55:23 +03:00
bas524
888abad26c add getAffinity method
throw NotImplementedException on unsupported platforms
2015-03-05 18:11:56 +03:00
bas524
158aaab180 Add setaffinity method to thread implementation and interface class 2015-03-04 13:24:26 +03:00
Guenter Obiltschnig
5dea080b0b use GCC_DIAG_OFF(unused-local-typedefs) only for GCC >= 4.8 2015-03-03 06:51:23 +01:00
Jonathan S
3173bddd99 Make next() use call to begin() instead of _buffer.begin() 2015-02-24 22:07:28 -05:00
Jonathan S
1bbeb9ebd3 Added same next() logic to advance() to prevent advancing past the end of the buffer. 2015-02-22 19:56:54 -05:00
Jonathan S
30ae0afd7b Changed FIFOBuffer's next() to reset FIFO data to the start of the internal buffer to make it compatible with writing to the next() pointer. 2015-02-21 20:31:44 -05:00
Alex Fabijanic
07a2529d9d JSON Formatter modifications 2015-02-12 20:49:35 -06:00
Alex Fabijanic
beb81b4f16 add JSONFormatter 2015-02-10 00:27:07 -06:00
Aleksandar Fabijanic
aaf32257e3 Merge pull request #601 from martin-osborne/issue_532-3
Issue #532 -  Changes to address `FastMutex` being non-recursive on Win32 platforms
2015-02-09 21:08:12 -06:00
Aleksandar Fabijanic
c00f13d277 Merge pull request #561 from bschramke/develop
Support for XDG Base Directory Specification
2015-02-09 21:04:28 -06:00
Rangel Reale
923874c243 * Add export macro to AndroidLogChannel 2015-01-29 15:47:46 -02:00
Rangel Reale
1c648764c2 - Android log channel implementation
- Removes warning from Bugcheck.h on Android

fixes #122
2015-01-29 11:14:39 -02:00
martin-osborne
9b2e897280 Removed comment. 2015-01-25 10:05:59 +00:00
martin-osborne
c264a0d716 Restored original names for typedefs. Fixed gcc build. 2015-01-25 07:28:24 +00:00
martin-osborne
5e104addd3 Issue #297 - Implemented BasicMemoryStreamBuf::seekoff
This change adds support for `tellp`, `tellg` and seeking.

**Additional notes:**

+ `tellg` calls `rdbuf->pubseekoff(0, cur, out)` [lib.ostream.seeks] so need to
  provide an override of `seekoff`.
+ Requirements for `seekoff` are in 27.7.1.3.
+ 27.7.1.3 - Standard has a roundabout way of saying `cur` is valid if only one
  of `in` or `out` is specified (Condition 3).
+ `xend` is `egptr`/`epptr` (get area/put area).
+ `xbeg` is `eback`/`pbase` (get area/put area).
+ `xnext` is `gptr`/`pptr` (get area/put area).
+ `newoff` is a bit of a misnomer, the new offset into the stream is given by
  `newoff + off`.  `newoff` is really the start point.
+ You can set `gnext` with `setg`, but you can't do that with `setp` you have
  to `pbump` by the new offset minus the current offset.
2015-01-24 18:39:06 +00:00
martin-osborne
6eb8f582e7 Added missing explicit keyword. 2015-01-17 12:02:42 +00:00
martin-osborne
1bb48442b6 Updated documentation. 2015-01-17 11:58:01 +00:00
martin-osborne
21d2e963ef Updated Event c'tor to accept an enum. 2015-01-17 10:07:44 +00:00
martin-osborne
00b568193c Replaced boolean with enum in c'tor.
Implemented in a similar style to FPEnvironment.
2015-01-14 10:48:22 +00:00
martin-osborne
f9942829d3 Merge branch 'develop' into issue_532-3 2015-01-11 11:12:43 +00:00
Guenter Obiltschnig
92c607e767 code style and doc fixes 2015-01-09 19:04:58 +01:00
Scott Davis
5fa4dc3da7 Add missing constructor for RecursiveDirectoryIterator 2015-01-08 17:02:46 -05:00
Alex Fabijanic
d992509f6e GCC diagnostic guard fix 2015-01-05 22:20:58 -06:00
Aleksandar Fabijanic
4ae9aa9674 building with gcc 4.6.3 gives lots lots of warnings #658 2015-01-01 22:47:03 -06:00
Alex Fabijanic
eb04ffc423 style fixes 2015-01-01 12:35:26 -06:00
xantares
1e28368222 fixed win32 defines 2014-12-23 16:23:08 +01:00
Aleksandar Fabijanic
c5268c9777 spelling fix 2014-12-19 07:34:46 -06:00
Guenter Obiltschnig
28cf70d3f9 updated version no and changelog 2014-12-15 11:10:28 +01:00
Guenter Obiltschnig
1e471d7343 semantic versioning documentation 2014-12-11 20:11:20 +01:00
Alex Fabijanic
10aedfe5ad supress gcc warning avalanche 2014-12-08 20:14:19 -06:00
Günter Obiltschnig
ff3f260a10 fix warning, add note to Config.h regarding deprecation of POCO_WIN32_UTF8 2014-12-06 11:30:26 +01:00
Guenter Obiltschnig
31a0c7cb7e added deprecation warning for POCO_WIN32_UTF8 2014-12-06 11:13:44 +01:00
Guenter Obiltschnig
755c31a4fd Merge branch 'develop' of https://github.com/pocoproject/poco into develop 2014-12-02 09:08:23 +01:00
Guenter Obiltschnig
9af6b5b2db flush underlying streams on close()/sync() 2014-12-02 09:08:07 +01:00
Christopher Baker
e0d5535b7a Fixed small documentation typo onr to one. 2014-12-01 12:39:02 -06:00
Günter Obiltschnig
5f8d7ef994 Thread fixes for WinCE 2014-11-24 14:34:27 +01:00
Guenter Obiltschnig
d5d048e689 Poco::BasicEvent improvements and preparations for future support of lambdas/std::function 2014-11-24 11:17:27 +01:00
Guenter Obiltschnig
6ddce4c9ff Timestamp reference point ambiguity #614 2014-11-21 09:32:13 +01:00
Guenter Obiltschnig
22c22fdea7 fixed GH #616: Visual Studio warning C4244 2014-11-20 12:13:58 +01:00
Guenter Obiltschnig
7b11e14624 GH #569: update documentation 2014-11-19 15:31:37 +01:00
Günter Obiltschnig
a417d49d5d improved URI documentation regarding setQuery()/getQuery(); added getQueryParameters()/setQueryParameters() 2014-11-19 10:38:59 +01:00
Guenter Obiltschnig
4b53f137de Thread fixes for POSIX 2014-11-16 20:51:11 +01:00
Günter Obiltschnig
7043a3d4ff added support for starting functors/lambdas to Poco::Thread class 2014-11-16 20:43:19 +01:00
Guenter Obiltschnig
eb8dce47fe fix #606: HTMLForm constructor read application/x-www-form-urlencoded UTF-8 request body first parameter with BOM in name 2014-11-12 10:33:57 +01:00
Alex Fabijanic
8769ef01bc added Error::last() 2014-11-11 19:47:39 -06:00
Björn Schramke
06e59cb7a7 add Windows compliant implementation of XDG Base Directory Specification 2014-11-11 17:05:48 +01:00
Guenter Obiltschnig
fa4989e0c7 fixed #592: Incorrect format string in Poco::Dynamic::Struct 2014-11-07 10:43:50 +01:00
Günter Obiltschnig
0200c09985 Merge pull request #599 from zosrothko/develop
Add up to 10 arguments to variables arguments list for all level form: correcting missing udpate
2014-11-07 09:42:41 +01:00
zosrothko
46f3a7a637 Add up to 10 arguments to variables arguments list for all level formattin
Missing Format.h commit
2014-11-07 08:39:31 +01:00
Guenter Obiltschnig
6741e90bba style and consistency fixes 2014-11-06 12:04:28 +01:00
Günter Obiltschnig
5b74121119 Merge pull request #573 from ivannp/assertmsg
Added Timestamp::Min/Max. Added poco_assert_msg and poco_assert_msg_dbg.
2014-11-06 11:40:17 +01:00
zosrothko
1143a68518 Add up to 10 arguments to variables arguments list for all level formatting methods 2014-11-03 14:22:08 +01:00
martin-osborne
b3ed2d94b5 Supress VS compiler warning C4512:
assignment operator could not be generated
2014-11-01 12:29:49 +00:00
martin-osborne
1e1822f6c6 Updated FastMutex documentation. 2014-11-01 09:38:56 +00:00
Guenter Obiltschnig
656643e225 set version numbers for 1.6 2014-10-30 14:09:51 +01:00
Guenter Obiltschnig
721405d1fc #318: Logger local time doesn't automatically account for DST (PatternFormatter) 2014-10-30 14:06:13 +01:00
martin-osborne
db586617e9 Merge branch 'issue_532' into issue_532-3 with edits 2014-10-30 11:10:39 +00:00
martin-osborne
2a90e7de92 Moved work for isue 532 into it's own branch. 2014-10-19 10:59:08 +01:00
Ivan Popivanov
4707a6df83 Added Timestamp::Min/Max which help define extreme timestamps, useful to initialize variables, especially for comparison.
Added NOMINMAX as a preprocessor define for Windows. Otherwise some Windows headers define min/max as macros which interferes with std::numeric_limits::min/max

Added poco_assert_msg and poco_assert_msg_dbg, which are equivalent to poco_assert and poco_assert_dbg, respectively, but support an extra text parameter.
2014-10-14 22:41:49 -04:00
mar-na
368fff1c05 Supported little endian for MIPS 2014-10-13 15:12:07 +02:00
Guenter Obiltschnig
50f1f12cab Poco::URI: added new constructor to create URI from Path 2014-10-12 11:19:52 +02:00
Guenter Obiltschnig
5b0fa2e06a Poco::Buffer properly handles zero-sized buffers 2014-10-09 10:34:46 +02:00
Björn Schramke
ce56190f9f add some methods to Poco::Path for make it easy to follow XDG Base Directory Specification 2014-10-09 09:46:21 +02:00
Guenter Obiltschnig
ef34c21e91 added Clock::raw(); style fixes 2014-10-08 07:59:48 +02:00
Günter Obiltschnig
9ee4d0a36b Merge pull request #558 from ivannp/develop
Adding Timestamp::raw
2014-10-08 07:56:04 +02:00
Ivan Popivanov
cab8224cc3 Adding Timestamp::raw
Returns the raw value, (the internal representation) of the timestamp.
Useful when storing to a database for instance.
2014-10-08 01:51:06 -04:00
Alex Fabijanic
c8563c86bf Bug in doubleToStr #557 2014-10-07 23:40:36 -05:00
Guenter Obiltschnig
a04228aee3 updated version to 1.5.4 2014-10-06 14:15:57 +02:00
Günter Obiltschnig
e8c19d0efe Merge pull request #551 from danoli3/pcre_update_2014
PCRE updated to 8.35.0
2014-10-06 08:00:57 +02:00
Guenter Obiltschnig
d66fde51b5 #544 use _DEBUG instead of DEBUG macro in [Simple]HashTable 2014-10-06 07:35:04 +02:00
Alex Fabijanic
a25877bfc2 - FIFOBuffer drain() problem #552
- StreamSocket::receiveBytes(FIFOBuffer&) and sendBytes(FIFOBuffer&) are
  not thread safe #402
2014-10-03 16:12:42 -05:00
Daniel Rosser
010f7a5370 PCRE 8.35.0 Update
- Updated to PCRE 8.35 (latest, 2014-04-04)
- Updated Build files with new files and removed those that have
changed.
- Configured like previous configuration.
2014-10-03 23:17:24 +10:00
Günter Obiltschnig
a2617235fe #538 more dtor fixes and some style fixes along the way 2014-09-29 12:09:01 +02:00
Guenter Obiltschnig
b5658d3938 GH# 545: use short for sign 2014-09-29 10:10:09 +02:00
Guenter Obiltschnig
544229302e #538 prevent destructors from throwing exceptions 2014-09-19 09:46:49 +02:00
Guenter Obiltschnig
e500d0f31a added poco_unexpected() macro invoking Bugcheck::unexpected() to deal with unexpected exceptions in destructors 2014-09-19 08:16:47 +02:00
Guenter Obiltschnig
f2512856ee added Var::isBoolean() and fixed JSON stringifier 2014-09-18 20:57:34 +02:00
Günter Obiltschnig
d32354aea9 Merge pull request #536 from TimothyGu/develop
MinGW improvements
2014-09-17 19:38:10 +02:00