Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
yaml-cpp
Commits
2d06df47
Commit
2d06df47
authored
Sep 10, 2011
by
Jesse Beder
Browse files
Fixed up the old API stuff, and removed the util/value (since it's no longer needed)
parent
03fc8372
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
20 additions
and
32 deletions
+20
-32
CMakeLists.txt
CMakeLists.txt
+1
-0
include/yaml-cpp/old-api/node.h
include/yaml-cpp/old-api/node.h
+2
-2
src/null.cpp
src/null.cpp
+1
-1
src/old-api/aliasmanager.cpp
src/old-api/aliasmanager.cpp
+2
-2
src/old-api/iterator.cpp
src/old-api/iterator.cpp
+1
-1
src/old-api/iterpriv.h
src/old-api/iterpriv.h
+0
-0
src/old-api/node.cpp
src/old-api/node.cpp
+7
-7
src/old-api/nodebuilder.cpp
src/old-api/nodebuilder.cpp
+2
-2
src/old-api/nodeownership.cpp
src/old-api/nodeownership.cpp
+2
-2
src/parser.cpp
src/parser.cpp
+2
-2
util/CMakeLists.txt
util/CMakeLists.txt
+0
-3
util/value.cpp
util/value.cpp
+0
-10
No files found.
CMakeLists.txt
View file @
2d06df47
...
...
@@ -103,6 +103,7 @@ if(VERBOSE)
endif
()
include_directories
(
${
YAML_CPP_SOURCE_DIR
}
/include
)
include_directories
(
${
YAML_CPP_SOURCE_DIR
}
/src
)
###
...
...
include/yaml-cpp/old-api/node.h
View file @
2d06df47
...
...
@@ -9,10 +9,10 @@
#include "yaml-cpp/conversion.h"
#include "yaml-cpp/dll.h"
#include "yaml-cpp/exceptions.h"
#include "yaml-cpp/iterator.h"
#include "yaml-cpp/ltnode.h"
#include "yaml-cpp/mark.h"
#include "yaml-cpp/noncopyable.h"
#include "yaml-cpp/old-api/iterator.h"
#include "yaml-cpp/old-api/ltnode.h"
#include <iostream>
#include <map>
#include <memory>
...
...
src/null.cpp
View file @
2d06df47
#include "yaml-cpp/null.h"
#if YAML_CPP_OLD_API
#include "yaml-cpp/node.h"
#include "yaml-cpp/
old-api/
node.h"
#endif
namespace
YAML
...
...
src/old-api/aliasmanager.cpp
View file @
2d06df47
#include "yaml-cpp/aliasmanager.h"
#include "yaml-cpp/node.h"
#include "yaml-cpp/
old-api/
aliasmanager.h"
#include "yaml-cpp/
old-api/
node.h"
#include <cassert>
#include <sstream>
...
...
src/iterator.cpp
→
src/
old-api/
iterator.cpp
View file @
2d06df47
#include "yaml-cpp/node.h"
#include "yaml-cpp/
old-api/
node.h"
#include "yaml-cpp/exceptions.h"
#include "iterpriv.h"
...
...
src/iterpriv.h
→
src/
old-api/
iterpriv.h
View file @
2d06df47
File moved
src/old-api/node.cpp
View file @
2d06df47
#include "yaml-cpp/node.h"
#include "iterpriv.h"
#include "nodebuilder.h"
#include "nodeownership.h"
#include "scanner.h"
#include "tag.h"
#include "token.h"
#include "yaml-cpp/old-api/node.h"
#include "yaml-cpp/aliasmanager.h"
#include "yaml-cpp/emitfromevents.h"
#include "yaml-cpp/emitter.h"
#include "yaml-cpp/eventhandler.h"
#include "old-api/iterpriv.h"
#include "old-api/nodebuilder.h"
#include "old-api/nodeownership.h"
#include "scanner.h"
#include "tag.h"
#include "token.h"
#include <cassert>
#include <stdexcept>
...
...
src/old-api/nodebuilder.cpp
View file @
2d06df47
#include "nodebuilder.h"
#include "
old-api/
nodebuilder.h"
#include "yaml-cpp/mark.h"
#include "yaml-cpp/node.h"
#include "yaml-cpp/
old-api/
node.h"
#include <cassert>
namespace
YAML
...
...
src/old-api/nodeownership.cpp
View file @
2d06df47
#include "nodeownership.h"
#include "yaml-cpp/node.h"
#include "
old-api/
nodeownership.h"
#include "yaml-cpp/
old-api/
node.h"
namespace
YAML
{
...
...
src/parser.cpp
View file @
2d06df47
#include "yaml-cpp/parser.h"
#include "directives.h"
#include "yaml-cpp/eventhandler.h"
#include "yaml-cpp/exceptions.h"
#include "
yaml-cpp/node
.h"
#include "
directives
.h"
#include "scanner.h"
#include "singledocparser.h"
#include "tag.h"
...
...
@@ -11,6 +10,7 @@
#include <cstdio>
#if YAML_CPP_OLD_API
#include "yaml-cpp/old-api/node.h"
#include "old-api/nodebuilder.h"
#endif
...
...
util/CMakeLists.txt
View file @
2d06df47
add_executable
(
parse parse.cpp
)
target_link_libraries
(
parse yaml-cpp
)
add_executable
(
value value.cpp
)
target_link_libraries
(
value yaml-cpp
)
util/value.cpp
deleted
100644 → 0
View file @
03fc8372
#include "yaml-cpp/yaml.h"
#include <map>
int
main
()
{
YAML
::
Node
node
=
YAML
::
Parse
(
"{foo: bar, monkey: value}"
);
std
::
cout
<<
node
<<
"
\n
"
;
return
0
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment