http://mbed.org/users/shintamainjp/notebook/starboard_expbrd-one_ex1_en/
Dependencies: mbed RemoteIR SuperTweet ConfigFile EthernetNetIf
StreamFilter Class Reference
============================================================================= Stream filter for Twitter. More...
#include <StreamFilter.h>
Public Member Functions | |
StreamFilter (const char *headtxt, const char *tailtxt) | |
Create. | |
~StreamFilter () | |
Dispose. | |
bool | done () |
Check state of done. | |
void | reset () |
Reset state. | |
void | push (char c) |
Push a data to a internal buffer. | |
bool | getContent (char *buf, size_t bufsiz) |
Get a content text. |
Detailed Description
============================================================================= Stream filter for Twitter.
http://mbed.org/users/shintamainjp/notebook/starboard_expbrd-one_ex1_en/ ============================================================================= Copyright (c) 2010 Shinichiro Nakamura (CuBeatSystems)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ============================================================================= Stream filter.
Definition at line 33 of file StreamFilter.h.
Constructor & Destructor Documentation
StreamFilter | ( | const char * | headtxt, |
const char * | tailtxt | ||
) |
Create.
============================================================================= Stream filter for Twitter.
- Parameters:
-
headtxt Head of a target. tailtxt Tail of a target.
http://mbed.org/users/shintamainjp/notebook/starboard_expbrd-one_ex1_en/ ============================================================================= Copyright (c) 2010 Shinichiro Nakamura (CuBeatSystems)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ============================================================================= Create.
- Parameters:
-
headtxt Head of a target. tailtxt Tail of a target.
Definition at line 36 of file StreamFilter.cpp.
~StreamFilter | ( | ) |
Dispose.
Definition at line 43 of file StreamFilter.cpp.
Member Function Documentation
bool done | ( | ) |
Check state of done.
- Returns:
- Return true if it done.
Definition at line 51 of file StreamFilter.cpp.
bool getContent | ( | char * | buf, |
size_t | bufsiz | ||
) |
Get a content text.
- Parameters:
-
buf A pointer to a buffer. bufsiz Size of the buffer.
- Returns:
- true if it succeed.
Definition at line 117 of file StreamFilter.cpp.
void push | ( | char | c ) |
Push a data to a internal buffer.
- Parameters:
-
c character.
Definition at line 72 of file StreamFilter.cpp.
void reset | ( | ) |
Reset state.
Definition at line 61 of file StreamFilter.cpp.
Generated on Fri Jul 15 2022 13:37:25 by 1.7.2