Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yaml-cpp
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
yaml-cpp
Commits
2d06df47
Commit
2d06df47
authored
Sep 10, 2011
by
Jesse Beder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed up the old API stuff, and removed the util/value (since it's no longer needed)
parent
03fc8372
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
20 additions
and
32 deletions
+20
-32
CMakeLists.txt
+1
-0
include/yaml-cpp/old-api/node.h
+2
-2
src/null.cpp
+1
-1
src/old-api/aliasmanager.cpp
+2
-2
src/old-api/iterator.cpp
+1
-1
src/old-api/iterpriv.h
+0
-0
src/old-api/node.cpp
+7
-7
src/old-api/nodebuilder.cpp
+2
-2
src/old-api/nodeownership.cpp
+2
-2
src/parser.cpp
+2
-2
util/CMakeLists.txt
+0
-3
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