Commit Graph

48 Commits

Author SHA1 Message Date
marian c76bfa67c5 Added NamedList method used to retrieve an unsigned 64bit parameter value.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6487 acf43c95-373e-0410-b603-e72c3f656dc1
2021-05-14 07:12:02 +00:00
paulc 7f38064c6d Added getInt64Value to NamedList and Configuration classes.
Added getIntValue and getBoolValue to Javascript ConfigFile and ConfigSection.


git-svn-id: http://yate.null.ro/svn/yate/trunk@5930 acf43c95-373e-0410-b603-e72c3f656dc1
2014-12-22 11:56:16 +00:00
paulc 37a72e4bc1 Added copyright notices to sources and scripts missing them.
Updated copyright notices for 2014.
Fixed end of lines in many files.


git-svn-id: http://yate.null.ro/svn/yate/trunk@5755 acf43c95-373e-0410-b603-e72c3f656dc1
2014-02-05 11:42:17 +00:00
oana 46e3c529f9 Added ObjList::setUnique() to uniquely set an object in the list. If the object is not already present in the list, it appends it to the list.
Inlined NamedList::setParam(NamedString*) which now uses ObjList::setUnique().
Only iterate once over parameter list when trying to set a parameter in a NamedList with name and value.



git-svn-id: http://yate.null.ro/svn/yate/trunk@5683 acf43c95-373e-0410-b603-e72c3f656dc1
2013-10-29 12:04:03 +00:00
marian 07b04627c5 Added extra parameter to NamedList::copySubParams() used when wanting to replace existing parameters instead of adding a new one.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5658 acf43c95-373e-0410-b603-e72c3f656dc1
2013-10-03 12:42:20 +00:00
paulc cf5d0fd71a Changed license terms in each source file to reference an external file.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5609 acf43c95-373e-0410-b603-e72c3f656dc1
2013-08-06 13:38:10 +00:00
paulc 3b49b78ecb Added a shared static list of Atom strings and an YATOM macro.
This speeds up signifficantly the Yate RTTI on compilers that HAVE_BLOCK_RETURN.
Made the String comparison operator inline to shave off a few cycles.
Fast handle the comparison in identity case.


git-svn-id: http://yate.null.ro/svn/yate/trunk@5449 acf43c95-373e-0410-b603-e72c3f656dc1
2013-04-12 13:19:14 +00:00
andrei 454e425816 Added possibility to extract a parameter from NamedList.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5398 acf43c95-373e-0410-b603-e72c3f656dc1
2013-02-12 09:57:37 +00:00
andrei 83234869ad Added method to check if any parameter in a list starts with a certain prefix.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5318 acf43c95-373e-0410-b603-e72c3f656dc1
2012-11-02 13:41:17 +00:00
paulc 082d93a3a3 Reduce complexity of appending multiple objects to a list.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5271 acf43c95-373e-0410-b603-e72c3f656dc1
2012-09-19 10:59:42 +00:00
paulc 1667d0bbc3 Limited the length of the debugging output from expression parser.
Fixed the string limit for single char in a few places, it had to be %.1s instead of %1s.


git-svn-id: http://yate.null.ro/svn/yate/trunk@5062 acf43c95-373e-0410-b603-e72c3f656dc1
2012-05-15 14:13:56 +00:00
paulc f04d08edb8 Fixed meaning of parameter: clump -> clamp.
git-svn-id: http://yate.null.ro/svn/yate/trunk@4563 acf43c95-373e-0410-b603-e72c3f656dc1
2011-08-23 15:47:01 +00:00
marian 57bff41ad4 String to integer conversion can now check the result against allowed min/max values. Use it in sip module.
git-svn-id: http://yate.null.ro/svn/yate/trunk@4562 acf43c95-373e-0410-b603-e72c3f656dc1
2011-08-23 15:14:28 +00:00
paulc fa0269ba4f New YSTRING macro that creates an ad-hoc static const String to speed up comparations and conversions from literal strings.
On unsupported compilers the literal string is returned unchanged.


git-svn-id: http://yate.null.ro/svn/yate/trunk@4423 acf43c95-373e-0410-b603-e72c3f656dc1
2011-06-03 12:26:53 +00:00
paulc 7702fd0979 Added to NamedList::copySubParams() the option of not skipping over the matched prefix in parameter names.
git-svn-id: http://yate.null.ro/svn/yate/trunk@4191 acf43c95-373e-0410-b603-e72c3f656dc1
2011-03-17 19:46:26 +00:00
paulc d9732b76bf Fix a number of inefficient NamedList iterations using O(n^2) steps when they only need O(n) steps.
Prevent adding a NULL parameter to a NamedList.
Original patch by Allan Sandfeld.


git-svn-id: http://yate.null.ro/svn/yate/trunk@4125 acf43c95-373e-0410-b603-e72c3f656dc1
2011-02-23 10:26:26 +00:00
paulc 64dae801eb Made possible to automatically skip adding an empty value to a NamedList.
git-svn-id: http://yate.null.ro/svn/yate/trunk@3281 acf43c95-373e-0410-b603-e72c3f656dc1
2010-05-04 10:35:52 +00:00
paulc c8254ab211 Added assignment operator for NamedList.
git-svn-id: http://yate.null.ro/svn/yate/trunk@3278 acf43c95-373e-0410-b603-e72c3f656dc1
2010-05-04 10:14:59 +00:00
marian 2682cdb12e A list parameter can now be removed by pointer.
git-svn-id: http://yate.null.ro/svn/yate/trunk@3089 acf43c95-373e-0410-b603-e72c3f656dc1
2010-02-18 12:59:50 +00:00
paulc 5b6d399446 Support for replacing in ${param-name$default-value} style.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2857 acf43c95-373e-0410-b603-e72c3f656dc1
2009-09-25 13:13:58 +00:00
paulc bdbbbc5076 Added NamedList constructor and method to copy subparameters from another list.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2811 acf43c95-373e-0410-b603-e72c3f656dc1
2009-08-31 13:36:37 +00:00
paulc 8e99bcb53f Added handy NamedList dump method.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2627 acf43c95-373e-0410-b603-e72c3f656dc1
2009-05-13 10:13:45 +00:00
paulc 2c3dd2bc2a Added support for SQL escaping a binary DataBlock.
Replacing with SQL escaping a NamedPointer parameter of a NamedList that holds a DataBlock will insert the escaped binary data instead.


git-svn-id: http://yate.null.ro/svn/yate/trunk@2475 acf43c95-373e-0410-b603-e72c3f656dc1
2009-02-06 19:37:01 +00:00
paulc 6e24d52c38 Added static empty instances of ObjList and NamedList.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2280 acf43c95-373e-0410-b603-e72c3f656dc1
2008-10-22 13:32:25 +00:00
paulc e23d5cfcda Added a copyParams version that copies all parameters of a NamedList.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2258 acf43c95-373e-0410-b603-e72c3f656dc1
2008-10-14 10:15:01 +00:00
paulc 9edee27ba6 Added back replacement counter incrementation.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2173 acf43c95-373e-0410-b603-e72c3f656dc1
2008-08-29 18:46:04 +00:00
paulc 01ab8214bb Removed the very unsafe recursive param replacing, it was never used.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2172 acf43c95-373e-0410-b603-e72c3f656dc1
2008-08-29 11:46:26 +00:00
paulc f3d771bb0f Added handy parameter inspect operator[].
git-svn-id: http://yate.null.ro/svn/yate/trunk@1706 acf43c95-373e-0410-b603-e72c3f656dc1
2008-01-30 17:55:29 +00:00
marian 97086f1ede Now set param replaces the whole object.
git-svn-id: http://yate.null.ro/svn/yate/trunk@1644 acf43c95-373e-0410-b603-e72c3f656dc1
2008-01-17 15:40:47 +00:00
paulc 81eab01b7c Added method to copy multiple parameters from a list of names.
git-svn-id: http://yate.null.ro/svn/yate/trunk@1310 acf43c95-373e-0410-b603-e72c3f656dc1
2007-05-12 13:27:44 +00:00
paulc f6a6694668 Added support for hierarchical parameter names.
git-svn-id: http://yate.null.ro/svn/yate/trunk@1120 acf43c95-373e-0410-b603-e72c3f656dc1
2006-11-30 00:53:15 +00:00
paulc cda2d9f1c2 Updated copyright and FSF address.
git-svn-id: http://yate.null.ro/svn/yate/trunk@815 acf43c95-373e-0410-b603-e72c3f656dc1
2006-05-27 15:08:43 +00:00
paulc c44947b6a1 Added RADIUS client module.
Applied various related and unrelated changes and fixes.


git-svn-id: http://yate.null.ro/svn/yate/trunk@714 acf43c95-373e-0410-b603-e72c3f656dc1
2006-03-22 18:22:34 +00:00
paulc aa294918c2 Added replaceParams method in NamedList.
git-svn-id: http://yate.null.ro/svn/yate/trunk@713 acf43c95-373e-0410-b603-e72c3f656dc1
2006-03-16 11:33:06 +00:00
paulc 4fb35c4015 Added the case-insensitive startSkip almost in the form suggested by Olaf Conradi.
Added methods for converting a String or Configuration entry to double.


git-svn-id: http://yate.null.ro/svn/yate/trunk@711 acf43c95-373e-0410-b603-e72c3f656dc1
2006-03-13 20:28:34 +00:00
paulc 58b9faac12 Added copy constructors for NamedList and Message
git-svn-id: http://yate.null.ro/svn/yate/trunk@696 acf43c95-373e-0410-b603-e72c3f656dc1
2006-02-21 14:56:39 +00:00
paulc b52a90a618 Updated copyright years, fixed %ll formatting.
git-svn-id: http://yate.null.ro/svn/yate/trunk@320 acf43c95-373e-0410-b603-e72c3f656dc1
2005-04-29 22:05:07 +00:00
paulc 1e4e75ac2b Countless changes.
git-svn-id: http://yate.null.ro/svn/yate/trunk@318 acf43c95-373e-0410-b603-e72c3f656dc1
2005-04-28 22:46:59 +00:00
paulc 1fa66f6d66 *** empty log message ***
git-svn-id: http://yate.null.ro/svn/yate/trunk@296 acf43c95-373e-0410-b603-e72c3f656dc1
2005-04-19 00:45:40 +00:00
paulc 047382865b More yateclass related cleanups.
git-svn-id: http://yate.null.ro/svn/yate/trunk@280 acf43c95-373e-0410-b603-e72c3f656dc1
2005-04-08 12:45:19 +00:00
paulc d35d4d6b4a Separated non-engine related classes in their own include file.
git-svn-id: http://yate.null.ro/svn/yate/trunk@279 acf43c95-373e-0410-b603-e72c3f656dc1
2005-04-08 10:55:22 +00:00
paulc 60ec9fec0b Added VC++6 projects and lots of porting changes
git-svn-id: http://yate.null.ro/svn/yate/trunk@272 acf43c95-373e-0410-b603-e72c3f656dc1
2005-04-02 00:49:38 +00:00
paulc e14d74a073 *** empty log message ***
git-svn-id: http://yate.null.ro/svn/yate/trunk@265 acf43c95-373e-0410-b603-e72c3f656dc1
2005-03-28 00:58:26 +00:00
paulc 61d3b640b0 Added Channel and Driver classes, beautified source a little.
git-svn-id: http://yate.null.ro/svn/yate/trunk@263 acf43c95-373e-0410-b603-e72c3f656dc1
2005-03-20 03:11:53 +00:00
paulc 8123c918b2 Moved the engine away, added install-noapi
git-svn-id: http://yate.null.ro/svn/yate/trunk@260 acf43c95-373e-0410-b603-e72c3f656dc1
2005-03-18 18:16:59 +00:00
paulc 3c141c611b Added context jumping and message parameter setting to regexroute.
Added DDebug and NDebug macros to keep down the number of #define.


git-svn-id: http://yate.null.ro/svn/yate/trunk@116 acf43c95-373e-0410-b603-e72c3f656dc1
2004-11-29 21:01:04 +00:00
paulc 656e423474 Added copyright notice.
git-svn-id: http://yate.null.ro/svn/yate/trunk@114 acf43c95-373e-0410-b603-e72c3f656dc1
2004-11-29 03:56:41 +00:00
paulc 628070ee2e Imported in new CVS
git-svn-id: http://yate.null.ro/svn/yate/trunk@2 acf43c95-373e-0410-b603-e72c3f656dc1
2004-05-22 00:05:20 +00:00