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
72919adf
Commit
72919adf
authored
Jul 29, 2009
by
Jesse Beder
Browse files
Added header file inclusion guards
parent
1507fcd3
Changes
36
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
120 additions
and
0 deletions
+120
-0
include/conversion.h
include/conversion.h
+6
-0
include/crt.h
include/crt.h
+6
-0
include/emitter.h
include/emitter.h
+6
-0
include/emittermanip.h
include/emittermanip.h
+6
-0
include/exceptions.h
include/exceptions.h
+6
-0
include/iterator.h
include/iterator.h
+6
-0
include/mark.h
include/mark.h
+6
-0
include/node.h
include/node.h
+6
-0
include/nodeimpl.h
include/nodeimpl.h
+6
-0
include/noncopyable.h
include/noncopyable.h
+6
-0
include/ostream.h
include/ostream.h
+6
-0
include/parser.h
include/parser.h
+6
-0
include/parserstate.h
include/parserstate.h
+6
-0
include/stlemitter.h
include/stlemitter.h
+6
-0
include/yaml.h
include/yaml.h
+6
-0
src/aliascontent.h
src/aliascontent.h
+6
-0
src/content.h
src/content.h
+6
-0
src/emitterstate.h
src/emitterstate.h
+6
-0
src/emitterutils.h
src/emitterutils.h
+6
-0
src/exp.h
src/exp.h
+6
-0
No files found.
include/conversion.h
View file @
72919adf
#pragma once
#ifndef CONVERSION_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define CONVERSION_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#include <string>
#include <sstream>
...
...
@@ -36,3 +40,5 @@ namespace YAML
template
<
>
bool
Converter
<
std
::
wstring
>::
Convert
(
const
std
::
string
&
input
,
std
::
wstring
&
output
);
}
#endif // CONVERSION_H_62B23520_7C8E_11DE_8A39_0800200C9A66
include/crt.h
View file @
72919adf
#pragma once
#ifndef CRT_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define CRT_H_62B23520_7C8E_11DE_8A39_0800200C9A66
// for detecting memory leaks
#ifdef _DEBUG
...
...
@@ -9,3 +13,5 @@
#endif // _DEBUG
#endif // CRT_H_62B23520_7C8E_11DE_8A39_0800200C9A66
include/emitter.h
View file @
72919adf
#pragma once
#ifndef EMITTER_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define EMITTER_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#include "emittermanip.h"
#include "ostream.h"
#include <memory>
...
...
@@ -84,3 +88,5 @@ namespace YAML
return
emitter
.
SetLocalIndent
(
indent
);
}
}
#endif // EMITTER_H_62B23520_7C8E_11DE_8A39_0800200C9A66
include/emittermanip.h
View file @
72919adf
#pragma once
#ifndef EMITTERMANIP_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define EMITTERMANIP_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#include <string>
namespace
YAML
...
...
@@ -82,3 +86,5 @@ namespace YAML
return
_Comment
(
content
);
}
}
#endif // EMITTERMANIP_H_62B23520_7C8E_11DE_8A39_0800200C9A66
include/exceptions.h
View file @
72919adf
#pragma once
#ifndef EXCEPTIONS_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define EXCEPTIONS_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#include "mark.h"
#include <exception>
#include <string>
...
...
@@ -129,3 +133,5 @@ namespace YAML
:
Exception
(
Mark
::
null
(),
msg_
)
{}
};
}
#endif // EXCEPTIONS_H_62B23520_7C8E_11DE_8A39_0800200C9A66
include/iterator.h
View file @
72919adf
#pragma once
#ifndef ITERATOR_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define ITERATOR_H_62B23520_7C8E_11DE_8A39_0800200C9A66
namespace
YAML
{
class
Node
;
...
...
@@ -28,3 +32,5 @@ namespace YAML
IterPriv
*
m_pData
;
};
}
#endif // ITERATOR_H_62B23520_7C8E_11DE_8A39_0800200C9A66
include/mark.h
View file @
72919adf
#pragma once
#ifndef MARK_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define MARK_H_62B23520_7C8E_11DE_8A39_0800200C9A66
namespace
YAML
{
struct
Mark
{
...
...
@@ -14,3 +18,5 @@ namespace YAML
Mark
(
int
pos_
,
int
line_
,
int
column_
)
:
pos
(
pos_
),
line
(
line_
),
column
(
column_
)
{}
};
}
#endif // MARK_H_62B23520_7C8E_11DE_8A39_0800200C9A66
include/node.h
View file @
72919adf
#pragma once
#ifndef NODE_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define NODE_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#include "conversion.h"
#include "exceptions.h"
#include "iterator.h"
...
...
@@ -95,3 +99,5 @@ namespace YAML
}
#include "nodeimpl.h"
#endif // NODE_H_62B23520_7C8E_11DE_8A39_0800200C9A66
include/nodeimpl.h
View file @
72919adf
#pragma once
#ifndef NODEIMPL_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define NODEIMPL_H_62B23520_7C8E_11DE_8A39_0800200C9A66
namespace
YAML
{
// implementation of templated things
...
...
@@ -63,3 +67,5 @@ namespace YAML
return
GetValue
(
std
::
string
(
key
));
}
}
#endif // NODEIMPL_H_62B23520_7C8E_11DE_8A39_0800200C9A66
include/noncopyable.h
View file @
72919adf
#pragma once
#ifndef NONCOPYABLE_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define NONCOPYABLE_H_62B23520_7C8E_11DE_8A39_0800200C9A66
namespace
YAML
{
// this is basically boost::noncopyable
...
...
@@ -14,3 +18,5 @@ namespace YAML
const
noncopyable
&
operator
=
(
const
noncopyable
&
);
};
}
#endif // NONCOPYABLE_H_62B23520_7C8E_11DE_8A39_0800200C9A66
include/ostream.h
View file @
72919adf
#pragma once
#ifndef OSTREAM_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define OSTREAM_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#include <string>
namespace
YAML
...
...
@@ -30,3 +34,5 @@ namespace YAML
ostream
&
operator
<<
(
ostream
&
out
,
const
std
::
string
&
str
);
ostream
&
operator
<<
(
ostream
&
out
,
char
ch
);
}
#endif // OSTREAM_H_62B23520_7C8E_11DE_8A39_0800200C9A66
include/parser.h
View file @
72919adf
#pragma once
#ifndef PARSER_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define PARSER_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#include <ios>
#include <string>
#include <vector>
...
...
@@ -40,3 +44,5 @@ namespace YAML
ParserState
m_state
;
};
}
#endif // PARSER_H_62B23520_7C8E_11DE_8A39_0800200C9A66
include/parserstate.h
View file @
72919adf
#pragma once
#ifndef PARSERSTATE_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define PARSERSTATE_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#include <string>
#include <map>
...
...
@@ -18,3 +22,5 @@ namespace YAML
std
::
string
TranslateTag
(
const
std
::
string
&
handle
)
const
;
};
}
#endif // PARSERSTATE_H_62B23520_7C8E_11DE_8A39_0800200C9A66
include/stlemitter.h
View file @
72919adf
#pragma once
#ifndef STLEMITTER_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define STLEMITTER_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#include <vector>
#include <list>
#include <map>
...
...
@@ -36,3 +40,5 @@ namespace YAML
return
emitter
;
}
}
#endif // STLEMITTER_H_62B23520_7C8E_11DE_8A39_0800200C9A66
include/yaml.h
View file @
72919adf
#pragma once
#ifndef YAML_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define YAML_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#include "crt.h"
#include "parser.h"
#include "node.h"
...
...
@@ -7,3 +11,5 @@
#include "emitter.h"
#include "stlemitter.h"
#include "exceptions.h"
#endif // YAML_H_62B23520_7C8E_11DE_8A39_0800200C9A66
src/aliascontent.h
View file @
72919adf
#pragma once
#ifndef ALIASCONTENT_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define ALIASCONTENT_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#include "content.h"
namespace
YAML
...
...
@@ -33,3 +37,5 @@ namespace YAML
Content
*
m_pRef
;
};
}
#endif // ALIASCONTENT_H_62B23520_7C8E_11DE_8A39_0800200C9A66
src/content.h
View file @
72919adf
#pragma once
#ifndef CONTENT_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define CONTENT_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#include <vector>
#include <map>
#include "parserstate.h"
...
...
@@ -47,3 +51,5 @@ namespace YAML
protected:
};
}
#endif // CONTENT_H_62B23520_7C8E_11DE_8A39_0800200C9A66
src/emitterstate.h
View file @
72919adf
#pragma once
#ifndef EMITTERSTATE_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define EMITTERSTATE_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#include "setting.h"
#include "emittermanip.h"
#include <cassert>
...
...
@@ -193,3 +197,5 @@ namespace YAML
}
}
}
#endif // EMITTERSTATE_H_62B23520_7C8E_11DE_8A39_0800200C9A66
src/emitterutils.h
View file @
72919adf
#pragma once
#ifndef EMITTERUTILS_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define EMITTERUTILS_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#include "ostream.h"
#include <string>
...
...
@@ -16,3 +20,5 @@ namespace YAML
bool
WriteAnchor
(
ostream
&
out
,
const
std
::
string
&
str
);
}
}
#endif // EMITTERUTILS_H_62B23520_7C8E_11DE_8A39_0800200C9A66
src/exp.h
View file @
72919adf
#pragma once
#ifndef EXP_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define EXP_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#include "regex.h"
#include <string>
#include <ios>
...
...
@@ -72,3 +76,5 @@ namespace YAML
const
char
FoldedScalar
=
'>'
;
}
}
#endif // EXP_H_62B23520_7C8E_11DE_8A39_0800200C9A66
Prev
1
2
Next
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