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
683c60f4
Commit
683c60f4
authored
May 19, 2012
by
Jesse Beder
Browse files
Removed traces of old-api Node
parent
a183293f
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
0 additions
and
58 deletions
+0
-58
include/yaml-cpp/aliasmanager.h
include/yaml-cpp/aliasmanager.h
+0
-34
include/yaml-cpp/binary.h
include/yaml-cpp/binary.h
+0
-4
include/yaml-cpp/yaml.h
include/yaml-cpp/yaml.h
+0
-4
src/binary.cpp
src/binary.cpp
+0
-9
src/null.cpp
src/null.cpp
+0
-6
src/parser.cpp
src/parser.cpp
+0
-1
No files found.
include/yaml-cpp/aliasmanager.h
deleted
100644 → 0
View file @
a183293f
#ifndef ALIASMANAGER_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define ALIASMANAGER_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#if defined(_MSC_VER) || (defined(__GNUC__) && (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || (__GNUC__ >= 4)) // GCC supports "pragma once" correctly since 3.4
#pragma once
#endif
#include "yaml-cpp/anchor.h"
#include <map>
namespace
YAML
{
class
Node
;
class
AliasManager
{
public:
AliasManager
();
void
RegisterReference
(
const
Node
&
node
);
anchor_t
LookupAnchor
(
const
Node
&
node
)
const
;
private:
anchor_t
_CreateNewAnchor
();
private:
typedef
std
::
map
<
const
Node
*
,
anchor_t
>
AnchorByIdentity
;
AnchorByIdentity
m_anchorByIdentity
;
anchor_t
m_curAnchor
;
};
}
#endif // ALIASMANAGER_H_62B23520_7C8E_11DE_8A39_0800200C9A66
include/yaml-cpp/binary.h
View file @
683c60f4
...
...
@@ -10,8 +10,6 @@
namespace
YAML
{
class
Node
;
std
::
string
EncodeBase64
(
const
unsigned
char
*
data
,
std
::
size_t
size
);
std
::
vector
<
unsigned
char
>
DecodeBase64
(
const
std
::
string
&
input
);
...
...
@@ -59,8 +57,6 @@ namespace YAML
const
unsigned
char
*
m_unownedData
;
std
::
size_t
m_unownedSize
;
};
void
operator
>>
(
const
Node
&
node
,
Binary
&
binary
);
}
#endif // BASE64_H_62B23520_7C8E_11DE_8A39_0800200C9A66
include/yaml-cpp/yaml.h
View file @
683c60f4
...
...
@@ -10,8 +10,4 @@
#include "yaml-cpp/stlemitter.h"
#include "yaml-cpp/exceptions.h"
#include "yaml-cpp/node.h"
#include "yaml-cpp/stlnode.h"
#include "yaml-cpp/iterator.h"
#endif // YAML_H_62B23520_7C8E_11DE_8A39_0800200C9A66
src/binary.cpp
View file @
683c60f4
#include "yaml-cpp/binary.h"
#include "yaml-cpp/node.h"
namespace
YAML
{
...
...
@@ -91,12 +90,4 @@ namespace YAML
ret
.
resize
(
out
-
&
ret
[
0
]);
return
ret
;
}
void
operator
>>
(
const
Node
&
node
,
Binary
&
binary
)
{
std
::
string
scalar
;
node
.
GetScalar
(
scalar
);
std
::
vector
<
unsigned
char
>
data
=
DecodeBase64
(
scalar
);
binary
.
swap
(
data
);
}
}
src/null.cpp
View file @
683c60f4
#include "yaml-cpp/null.h"
#include "yaml-cpp/node.h"
namespace
YAML
{
_Null
Null
;
bool
IsNull
(
const
Node
&
node
)
{
return
node
.
Read
(
Null
);
}
}
src/parser.cpp
View file @
683c60f4
#include "yaml-cpp/parser.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"
...
...
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