Panda3D
dtool
src
dtoolutil
lineStreamBuf.I
Go to the documentation of this file.
1
/**
2
* PANDA 3D SOFTWARE
3
* Copyright (c) Carnegie Mellon University. All rights reserved.
4
*
5
* All use of this software is subject to the terms of the revised BSD
6
* license. You should have received a copy of this license along
7
* with this source code in a file named "LICENSE."
8
*
9
* @file lineStreamBuf.I
10
* @author drose
11
* @date 2000-02-26
12
*/
13
14
/**
15
*
16
*/
17
INLINE
bool
LineStreamBuf::
18
is_text_available()
const
{
19
return
!_data.empty();
20
}
21
22
/**
23
*
24
*/
25
INLINE
bool
LineStreamBuf::
26
has_newline()
const
{
27
return
_has_newline;
28
}
29
30
/**
31
* An internal function called by sync() and overflow() to store one or more
32
* characters written to the stream into the memory buffer.
33
*/
34
INLINE
void
LineStreamBuf::
35
write_chars(
const
char
*start,
size_t
length) {
36
if
(length > 0) {
37
_data += std::string(start, length);
38
}
39
}
Generated on Wed Jan 23 2019 21:39:50 for Panda3D by
1.8.15