Alban Deniz
21917e05b5
XMLReaderData() now check for error.
před 1 rokem
Alban Deniz
c6381d51ae
Changed parameter for SocketAddress:setAddress(char const *).
před 4 roky
adeniz
fc29d1ce6a
Applied cosmetic changes suggested by Pete.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@116 d34b734f-a00e-4b39-a726-e4eeb87269ab
před 7 roky
adeniz
05f0fa5594
Ignore SIGPIPE in writer thread (*nix only). Reason:
Writing to a pipe with no reader raises a signal and returns
error. The Child class handles the error returned. Not ignoring
the signal would result in aborting the process.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@115 d34b734f-a00e-4b39-a726-e4eeb87269ab
před 8 roky
adeniz
6554f21d90
Ignore return value of ::write().
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@114 d34b734f-a00e-4b39-a726-e4eeb87269ab
před 8 roky
adeniz
4f5cbfdfd3
Output error message to stdout in case of execv failure.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@113 d34b734f-a00e-4b39-a726-e4eeb87269ab
před 8 roky
adeniz
118d3c41f8
Corrected formatting of error message.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@110 d34b734f-a00e-4b39-a726-e4eeb87269ab
před 8 roky
adeniz
fe52ca12c5
Formatting change; no functional change.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@109 d34b734f-a00e-4b39-a726-e4eeb87269ab
před 9 roky
adeniz
cf43979e2d
Replaced buffer allocated on the stack with buffer allocated
on the heap. Reason: Parsing an attribute with a large number
of bytes resulted in a stack overflow.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@108 d34b734f-a00e-4b39-a726-e4eeb87269ab
před 9 roky
adeniz
c4836264a8
Removed extraneous compiler warnings about unused return values.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@107 d34b734f-a00e-4b39-a726-e4eeb87269ab
před 9 roky
adeniz
3f093a6d7b
Add call to AttributeFunctor.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@106 d34b734f-a00e-4b39-a726-e4eeb87269ab
před 9 roky
adeniz
9f230f4e5d
Implemented XMLReaderElement::indicator() and
XMLReaderAttribute::indicator().
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@105 d34b734f-a00e-4b39-a726-e4eeb87269ab
před 9 roky
adeniz
0499c228cd
Add virtual destructor for MultiTask. Reason: To be able to
delete derived objects using MultiTask *.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@104 d34b734f-a00e-4b39-a726-e4eeb87269ab
před 9 roky
adeniz
9acdc5bd8b
Use enum class, and put classes in CodeDweller namespace.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@103 d34b734f-a00e-4b39-a726-e4eeb87269ab
před 9 roky
adeniz
2cc85b9b53
Initial revision of MultiTasker from Pete.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@102 d34b734f-a00e-4b39-a726-e4eeb87269ab
před 9 roky
adeniz
c112f9db62
Initialized OneTimePad as per instructions from Pete. Reason: Using an
uninitialized variable gave many valgrind errors.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@101 d34b734f-a00e-4b39-a726-e4eeb87269ab
před 9 roky
adeniz
58e3fb951d
Improved error message.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@100 d34b734f-a00e-4b39-a726-e4eeb87269ab
před 9 roky
adeniz
f49d917e99
Allow reading after child has exited.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@99 d34b734f-a00e-4b39-a726-e4eeb87269ab
před 9 roky
adeniz
4af1aca886
Correct Child so that stderr and stdout from the child are
sent to the same output.
Deprecate ChildStream instead of correcting ChildStream.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@98 d34b734f-a00e-4b39-a726-e4eeb87269ab
před 9 roky
adeniz
5e81074c11
Added Child::closeStdIn().
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@97 d34b734f-a00e-4b39-a726-e4eeb87269ab
před 9 roky
adeniz
65fe25929c
Corrected documentation.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@96 d34b734f-a00e-4b39-a726-e4eeb87269ab
před 9 roky
adeniz
3fb37aa4bf
Moved #include outside of namespace declaration.
Use unsigned int in for-loops.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@95 d34b734f-a00e-4b39-a726-e4eeb87269ab
před 9 roky
adeniz
fa3d055b9f
Add typedef.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@94 d34b734f-a00e-4b39-a726-e4eeb87269ab
před 9 roky
adeniz
9f0434b8c2
Copied from configuration, renaming Configuration -> XMLReader, and
Configurator -> XMLerator.
Included typedefs so that existing applications can simply include
XMLReader.hpp in place of configuration.hpp.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@93 d34b734f-a00e-4b39-a726-e4eeb87269ab
před 9 roky
adeniz
e76678a5e1
Added CodeDweller namespace, removed 'using namespace std'.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@92 d34b734f-a00e-4b39-a726-e4eeb87269ab
před 9 roky
adeniz
b68b4410d5
Tested on Windows 7.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@91 d34b734f-a00e-4b39-a726-e4eeb87269ab
před 9 roky
adeniz
97d91cbab4
Implemented FileOps::moveFile.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@90 d34b734f-a00e-4b39-a726-e4eeb87269ab
před 9 roky
adeniz
d1cf0ac19c
Tested FilePath::isAbsolute() under Windows.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@89 d34b734f-a00e-4b39-a726-e4eeb87269ab
před 9 roky
adeniz
d867e784c7
Implemented FilePath::isAbsolute().
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@88 d34b734f-a00e-4b39-a726-e4eeb87269ab
před 9 roky
adeniz
2992ac8557
Addressed compiler warning, removed unused variables.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@87 d34b734f-a00e-4b39-a726-e4eeb87269ab
před 9 roky
adeniz
fc9f4057e6
Implemented readDelimited.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@86 d34b734f-a00e-4b39-a726-e4eeb87269ab
před 9 roky
adeniz
d23e25b988
Implementing Child::readDelimited().
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@85 d34b734f-a00e-4b39-a726-e4eeb87269ab
před 9 roky
adeniz
c9f179a972
Implement I/O with vector<char>.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@84 d34b734f-a00e-4b39-a726-e4eeb87269ab
před 9 roky
adeniz
b00945c73e
Tested on Windows.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@83 d34b734f-a00e-4b39-a726-e4eeb87269ab
před 9 roky
adeniz
8fa4e41a55
Implemented Child read(), write(), and writeAndShrink() with strings.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@82 d34b734f-a00e-4b39-a726-e4eeb87269ab
před 9 roky
adeniz
96c9d39914
Implementing Child with I/O threads, and blocking I/O.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@81 d34b734f-a00e-4b39-a726-e4eeb87269ab
před 9 roky
adeniz
729b6fe305
Added CodeDweller namespace.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@80 d34b734f-a00e-4b39-a726-e4eeb87269ab
před 9 roky
adeniz
dc9620460c
Tested with one streambuf for input and output, and inheriting from
iostream.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@79 d34b734f-a00e-4b39-a726-e4eeb87269ab
před 9 roky
adeniz
20af91c0a2
Implemented new constructors and isRunning(). Renamed terminate() to close().
Call close() in ~ChildStream.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@78 d34b734f-a00e-4b39-a726-e4eeb87269ab
před 9 roky
adeniz
669f79a111
ChildStream inherits from std::iostream.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@77 d34b734f-a00e-4b39-a726-e4eeb87269ab
před 9 roky
adeniz
3d82bf14a7
Merged input and output streambuf.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@76 d34b734f-a00e-4b39-a726-e4eeb87269ab
před 9 roky
adeniz
9b4542bdad
Addressed issue: Incorrect value loaded when an attribute value is "".
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@74 d34b734f-a00e-4b39-a726-e4eeb87269ab
před 9 roky
adeniz
aae5c9ea10
When searching for an opening tag, verify that the character
after the tag is whitespace, '/' or '>'. This allows the
ConfigurationElement to differentiate between <elem> and <elem1>.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@73 d34b734f-a00e-4b39-a726-e4eeb87269ab
před 9 roky
adeniz
fa697c79c6
Tested on Windows 7 with drService.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@72 d34b734f-a00e-4b39-a726-e4eeb87269ab
před 9 roky
adeniz
2ef5fa98e1
Increased size of myDataBuffer by one in a different location.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@71 d34b734f-a00e-4b39-a726-e4eeb87269ab
před 9 roky
adeniz
2632f6dc4b
Increased size of myDataBuffer by one, and added null byte
at the end. Reason: To be able to pass myDataBuffer to the
constructor of std::string that expects a null-terminated
c-string.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@70 d34b734f-a00e-4b39-a726-e4eeb87269ab
před 9 roky
adeniz
13c40894aa
Do not throw exception on I/O error. Reason: Not throwing an exception is the expection of c++ streams.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@69 d34b734f-a00e-4b39-a726-e4eeb87269ab
před 10 roky
adeniz
5ea6e7ba26
Backed out test code, and implemented ConfigurationElement::RawData.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@68 d34b734f-a00e-4b39-a726-e4eeb87269ab
před 10 roky
adeniz
039c51ea86
Proof-of-concept changes to provide entire element to the caller.
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@67 d34b734f-a00e-4b39-a726-e4eeb87269ab
před 10 roky
adeniz
57cfcac1e0
Added FileReference::FileName().
git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@66 d34b734f-a00e-4b39-a726-e4eeb87269ab
před 10 roky