Vinnie Falco
6e39b49cc2
Add Json::stream to write Value to a Streambuf
2014-10-31 13:27:33 -07:00
Tom Ritchford
9cba944d21
Add Json::to_string:
...
This allows the declaration for FastWriter to be hidden and makes
conversion of Json::Value objects to strings a little less clunky.
2014-10-29 19:23:52 -07:00
Tom Ritchford
8c1c2f5d05
Eliminate a copy of the string returned by FastWriter
2014-10-29 19:22:44 -07:00
Tom Ritchford
5425a90f16
Fix tabs and trailing whitespace.
2014-10-15 19:39:30 -04:00
Vinnie Falco
4239880acb
Clean up and restructure sources
2014-09-16 14:15:12 -07:00
Nik Bougalis
56c18f7768
Cleanups and fixes (RIPD-532):
...
* Properly handle sfWalletLocator field
* Plug a tiny memory leak
* Avoid naked pointers
* Remove unused variables
* Other small cleanups
2014-09-04 16:51:31 -07:00
Nik Bougalis
5bc949d70f
Fix a unit test warning
2014-08-26 10:00:03 -07:00
Tom Ritchford
e889183fc5
JSON cleanups:
...
* Fix Json headers to include what they use.
* Get rid of ripple/json/api directory.
2014-08-13 20:36:36 -07:00
Nik Bougalis
956901ae02
Properly handle edge-cases when parsing JSON integers (RIPD-470):
...
* Properly handle both unsigned and signed integers
* Return parsing error for overlong JSON numbers
* Implement unit test checking the edge cases that are of interest
2014-08-13 18:46:32 -07:00
Tom Ritchford
648ccc7c17
Replace const Type& with Type const& for common types.
...
* std::string
* RippleAccount
* Account
* Currency
* uint256
* STAmount
* Json::Value
2014-08-04 11:18:44 -07:00
Vinnie Falco
4f1d1d2a8a
Reorganize source file hierarchy:
...
* Rename unity files
* Move some modules to new subdirectories
* Remove obsolete Visual Studio project files
* Remove obsolete coding style and TODO list
2014-06-03 21:43:59 -07:00
Vinnie Falco
560071bb68
Make all include paths relative to a root directory:
...
* Better include path support in the VSProject scons tool.
* Various manual fixes to include paths.
2014-06-02 09:16:28 -07:00
Vinnie Falco
5db677d74d
Tidy up some source filenames:
...
* Add .unity suffix to mark unity sources
* Fix some relative include paths
2014-05-27 15:23:48 -07:00
Howard Hinnant
b5348980e2
Improve Json::Value special members (fixes RIPD-215):
...
* Add move special members
* Fix Json::Value::swap
2014-04-30 13:01:00 -07:00
Vinnie Falco
b2d97703c6
beast cleanup and tidying:
...
* Replace custom types with C++11 <cstdint> types
* Fix sqlite integer intos and uses
* Fix String implicit integer constructors
* Escape the enclosing namespace in sqdb
* Replace contract checks with assert
* Make many header files compile independently
* Remove the dependence on beast_core.h in many places
* Remove unused or obsolete classes and functions
* Remove unused or obsolete macros
* Remove unused network functions and files
* Remove unused or obsolete classes:
- ChildProcess
- HighResolutionTimer
- InterProcessLock
- Throw
- TrackedMutex
- UntrackedMutex
- XmlDocument
- XmlElement
2014-03-23 15:23:55 -07:00
Vinnie Falco
a865149c65
New unit_test framework:
...
* Header-only!
* No external dependencies or other beast modules
* Compilation options allow for:
- Stand-alone application to run a single test suite
- Stand-alone application to run a set of test suites
- Global suite of tests inline with the host application
- Disable test suite generation completely
* Existing tests reworked to use the new classes
2014-03-21 18:00:37 -07:00
Vinnie Falco
3cb3e5273f
Change to the treatment of BeastConfig.h
...
* No longer requires its own compiler include path
* Includes use relative paths to locate the file
* Client applications include the file themselves
* Inclusion of BeastConfig.h can be controlled via preprocessor directive
2014-03-19 13:42:04 -07:00
Howard Hinnant
cad50c68a8
General tidy and refactoring:
...
* Use nullptr (C++11) instead of NULL.
* Put each file into its own namespace declaration.
* Remove "using namespace" directives and add scope qualifiers.
* Control when beast's implementation of std::equal (C++14) is used.
* Tidy up some const declarations.
Conflicts:
src/ripple_app/shamap/SHAMapSync.cpp
src/ripple_app/tx/TransactionEngine.cpp
2014-03-19 13:42:01 -07:00
Vinnie Falco
c2fd1215f5
Refactor beast::asio:
...
* New tools for completion handlers:
- wrap_handler provides composed io_service execution guarantees.
- bind_handler rebinds arguments to handlers.
- shared_handler type-erases any completion handler.
- buffer_sequence type-erases templated BufferSequences
- abstract_socket replaces Socket
- socket_wrapper replaces SocketWrapper
- beast::asio placeholders to work with std::bind
* Removed obsolete classes and functions
- AbstractHandler
- ComposedAsyncOperation
- SharedFunction
- SharedHandler
- SharedHandlerAllocator
- SharedHandlerPtr
- SharedHandlerType
- SocketBase
- SocketWrapperStrand
- wrapHandler
* Refactored classes to use new tools
- abstract_socket
- socket_wrapper
- HandshakeDetector
- HttpClientType
* Miscellanous tidying
- socket classes moved to beast::asio namespace
- beast asio files provide their own namespace declaration.
- Fix IsCallPossible conflicting template parameter name
- Use <boost/get_pointer.hpp> for C++11 compatibility.
- Remove extraneous include path from build environment.
2014-03-14 08:03:48 -07:00
Vinnie Falco
9b657ba224
Refactor RPC module:
...
* Move JsonPropertyStream to ripple_json
* Remove unused RPC service manager
* Recreate RPC module in app code area
* Add RPC::Manager
* Add DoPrint handler
2014-02-06 18:21:08 -08:00
Vinnie Falco
b660d82516
Make TxFormats a Meyers singleton
2013-11-20 10:16:46 -08:00
Vinnie Falco
9e519af887
Add missing README and TODO for all new modules
2013-11-15 11:27:26 -08:00
Vinnie Falco
a05f33f6a7
Add annotation and clean up whitespace
2013-11-12 19:30:07 -08:00
Vinnie Falco
548fedb859
Fix missing cstdlib
2013-11-06 06:19:02 -08:00
Vinnie Falco
485d4b4897
Fix order of includes
2013-10-07 14:24:13 -07:00
Vinnie Falco
fb6ecebbd1
Add PropertyStream for server state introspection
2013-10-07 14:00:03 -07:00
Vinnie Falco
0b69378a03
Update Json::Reader::decodeDouble
2013-10-07 02:49:03 -07:00
Vinnie Falco
1ae3328642
Add PropertyStream
2013-10-06 17:30:44 -07:00
Vinnie Falco
1a95dfb300
Refine Json unit test
2013-10-02 12:06:30 -07:00
Vinnie Falco
bbbb8b1411
Fix buffer printing in json value to string
2013-10-02 11:59:32 -07:00
Vinnie Falco
0a5505f785
Add json parsing unit test
2013-10-02 11:53:18 -07:00
JoelKatz
a815f455af
Fix a possible buffer overflow.
2013-09-30 21:33:19 -07:00
Vinnie Falco
fcd689afbf
Update copyright notice and licenses
2013-09-25 17:27:06 -07:00
Vinnie Falco
b493db1d65
Split ripple_json to its own module
2013-09-19 20:54:12 -07:00