GNU Radio logging wrapper for log4cpp library (C++ port of log4j). More...
Namespaces | |
| namespace | analog |
| namespace | audio |
| namespace | blocks |
| namespace | channels |
| namespace | digital |
| namespace | dtv |
| namespace | fec |
| namespace | fft |
| namespace | filter |
| namespace | impl |
| namespace | qtgui |
| namespace | thread |
| namespace | trellis |
| namespace | uhd |
| namespace | video_sdl |
| namespace | vocoder |
| namespace | wavelet |
| namespace | zeromq |
Classes | |
| class | basic_block |
| The abstract base class for all signal processing blocks. More... | |
| class | block |
| The abstract base class for all 'terminal' processing blocks. More... | |
| class | block_detail |
| Implementation details to support the signal processing abstraction. More... | |
| class | block_gateway |
| class | block_registry |
| class | buffer |
| Single writer, multiple reader fifo. More... | |
| class | buffer_reader |
| How we keep track of the readers of a gr::buffer. More... | |
| class | edge |
| Class representing a connection between to graph endpoints. More... | |
| class | endpoint |
| Class representing a specific input or output graph endpoint. More... | |
| class | feval |
| base class for evaluating a function: void -> void More... | |
| class | feval_cc |
| base class for evaluating a function: complex -> complex More... | |
| class | feval_dd |
| base class for evaluating a function: double -> double More... | |
| class | feval_ll |
| base class for evaluating a function: long -> long More... | |
| class | feval_p |
| base class for evaluating a function: pmt -> void More... | |
| class | flowgraph |
| Class representing a directed, acyclic graph of basic blocks. More... | |
| class | fxpt |
| fixed point sine and cosine and friends. More... | |
| class | fxpt_nco |
| Numerically Controlled Oscillator (NCO). More... | |
| class | fxpt_vco |
| Voltage Controlled Oscillator (VCO). More... | |
| class | hier_block2 |
| Hierarchical container class for gr::block's and gr::hier_block2's. More... | |
| class | io_signature |
| i/o signature for input and output ports. More... | |
| class | logger |
| Logger class for referencing loggers in python. Not needed in C++ (use macros) Wraps and manipulates loggers for python as python has no macros. More... | |
| class | logger_config |
| Class to control configuration of logger. This is a singleton that can launch a thread to watch a config file for changes. More... | |
| Message class. More... | |
| class | msg_accepter |
| Accepts messages and inserts them into a message queue, then notifies subclass gr::basic_block there is a message pending. More... | |
| class | msg_edge |
| Class representing a msg connection between to graph msg endpoints. More... | |
| class | msg_endpoint |
| class | msg_handler |
| abstract class of message handlers More... | |
| class | msg_queue |
| thread-safe message queue More... | |
| class | nco |
| base class template for Numerically Controlled Oscillator (NCO) More... | |
| class | prefs |
| Base class for representing user preferences a la windows INI files. More... | |
| class | py_feval |
| class | py_feval_cc |
| class | py_feval_dd |
| class | py_feval_ll |
| class | py_feval_p |
| class | random |
| pseudo random number generator More... | |
| struct | rpc_sptr |
| struct | rpc_sptr_impl |
| struct | rpc_sptr_impl< true, T > |
| template specialization holding a std::shared_ptr | |
| class | sync_block |
| synchronous 1:1 input to output with history More... | |
| class | sync_decimator |
| synchronous N:1 input to output with history More... | |
| class | sync_interpolator |
| synchronous 1:N input to output with history More... | |
| class | tag_checker |
| struct | tag_t |
| class | tagged_stream_block |
| Block that operates on PDUs in form of tagged streams. More... | |
| class | top_block |
| Top-level hierarchical block representing a flowgraph. More... | |
| struct | tpb_detail |
| used by thread-per-block scheduler More... | |
Typedefs | |
| typedef std::vector< basic_block_sptr > | basic_block_vector_t |
| typedef std::vector< basic_block_sptr >::iterator | basic_block_viter_t |
| typedef std::vector< block_sptr > | block_vector_t |
| typedef std::vector< block_sptr >::iterator | block_viter_t |
| typedef std::vector< endpoint > | endpoint_vector_t |
| typedef std::vector< endpoint >::iterator | endpoint_viter_t |
| typedef std::vector< edge > | edge_vector_t |
| typedef std::vector< edge >::iterator | edge_viter_t |
| typedef std::vector< msg_edge > | msg_edge_vector_t |
| typedef std::vector< msg_edge >::iterator | msg_edge_viter_t |
| typedef signed long long | high_res_timer_type |
| Typedef for the timer tick count. | |
| typedef log4cpp::Category * | logger_ptr |
| GR_LOG macros. | |
| typedef std::map< std::string, std::map< std::string, std::string > > | config_map_t |
| typedef std::map< std::string, std::map< std::string, std::string > >::iterator | config_map_itr |
| typedef std::map< std::string, std::string > | config_map_elem_t |
| typedef std::map< std::string, std::string >::iterator | config_map_elem_itr |
Enumerations | |
| enum | block_gw_work_type { GR_BLOCK_GW_WORK_GENERAL , GR_BLOCK_GW_WORK_SYNC , GR_BLOCK_GW_WORK_DECIM , GR_BLOCK_GW_WORK_INTERP } |
| enum | block_gw_work_return_type { WORK_CALLED_PRODUCE = -2 , WORK_DONE = -1 } |
| Magic return values from general_work, gr::block::WORK_CALLED_PRODUCE. More... | |
| enum | tag_propagation_policy_t { TPP_DONT = 0 , TPP_ALL_TO_ALL = 1 , TPP_ONE_TO_ONE = 2 , TPP_CUSTOM = 3 } |
| enum | endianness_t { GR_MSB_FIRST , GR_LSB_FIRST } |
| enum | rt_status_t { RT_OK = 0 , RT_NOT_IMPLEMENTED , RT_NO_PRIVS , RT_OTHER_ERROR } |
| enum | rt_sched_policy { RT_SCHED_RR = 0 , RT_SCHED_FIFO = 1 } |
Functions | |
| bool | operator< (basic_block_sptr lhs, basic_block_sptr rhs) |
| GR_RUNTIME_API long | basic_block_ncurrently_allocated () |
| std::ostream & | operator<< (std::ostream &os, basic_block_sptr basic_block) |
| GR_RUNTIME_API std::ostream & | operator<< (std::ostream &os, const block *m) |
| GR_RUNTIME_API block_detail_sptr | make_block_detail (unsigned int ninputs, unsigned int noutputs) |
| GR_RUNTIME_API long | block_detail_ncurrently_allocated () |
| GR_RUNTIME_API buffer_sptr | make_buffer (int nitems, size_t sizeof_item, block_sptr link=block_sptr()) |
Allocate a buffer that holds at least nitems of size sizeof_item. | |
| GR_RUNTIME_API buffer_reader_sptr | buffer_add_reader (buffer_sptr buf, int nzero_preload, block_sptr link=block_sptr(), int delay=0) |
Create a new gr::buffer_reader and attach it to buffer buf. | |
| GR_RUNTIME_API long | buffer_ncurrently_allocated () |
| returns # of buffers currently allocated | |
| GR_RUNTIME_API long | buffer_reader_ncurrently_allocated () |
| returns # of buffer_readers currently allocated | |
| GR_RUNTIME_API const std::string | prefix () |
| return SYSCONFDIR. Typically ${CMAKE_INSTALL_PREFIX}/etc or /etc | |
| GR_RUNTIME_API const std::string | sysconfdir () |
| return SYSCONFDIR. Typically ${CMAKE_INSTALL_PREFIX}/etc or /etc | |
| GR_RUNTIME_API const std::string | prefsdir () |
| return preferences file directory. Typically ${SYSCONFDIR}/etc/conf.d | |
| GR_RUNTIME_API const std::string | build_date () |
| return date/time of build, as set when 'cmake' is run | |
| GR_RUNTIME_API const std::string | version () |
| return version string defined by cmake (GrVersion.cmake) | |
| GR_RUNTIME_API const std::string | major_version () |
| return just the major version defined by cmake | |
| GR_RUNTIME_API const std::string | api_version () |
| return just the api version defined by cmake | |
| GR_RUNTIME_API const std::string | minor_version () |
| returnjust the minor version defined by cmake | |
| GR_RUNTIME_API const std::string | c_compiler () |
| return C compiler used to build this version of GNU Radio | |
| GR_RUNTIME_API const std::string | cxx_compiler () |
| return C++ compiler used to build this version of GNU Radio | |
| GR_RUNTIME_API const std::string | compiler_flags () |
| return C and C++ compiler flags used to build this version of GNU Radio | |
| GR_RUNTIME_API const std::string | build_time_enabled_components () |
| return build-time enabled components | |
| GR_RUNTIME_API double | feval_dd_example (feval_dd *f, double x) |
| trivial examples / test cases showing C++ calling Python code | |
| GR_RUNTIME_API gr_complex | feval_cc_example (feval_cc *f, gr_complex x) |
| GR_RUNTIME_API long | feval_ll_example (feval_ll *f, long x) |
| GR_RUNTIME_API void | feval_example (feval *f) |
| GR_RUNTIME_API flowgraph_sptr | make_flowgraph () |
| std::ostream & | operator<< (std::ostream &os, const endpoint endp) |
| std::ostream & | operator<< (std::ostream &os, const edge edge) |
| std::ostream & | operator<< (std::ostream &os, const msg_endpoint endp) |
| std::ostream & | operator<< (std::ostream &os, const msg_edge edge) |
| std::string | dot_graph_fg (flowgraph_sptr fg) |
| GR_RUNTIME_API hier_block2_sptr | make_hier_block2 (const std::string &name, gr::io_signature::sptr input_signature, gr::io_signature::sptr output_signature) |
| public constructor for hier_block2 | |
| GR_RUNTIME_API std::string | dot_graph (hier_block2_sptr hierblock2) |
| Return hierarchical block's flow graph represented in dot language. | |
| high_res_timer_type | high_res_timer_now (void) |
| Get the current time in ticks. | |
| high_res_timer_type | high_res_timer_now_perfmon (void) |
| Get the current time in ticks - for performance monitoring. | |
| high_res_timer_type | high_res_timer_tps (void) |
| Get the number of ticks per second. | |
| high_res_timer_type | high_res_timer_epoch (void) |
| Get the tick count at the epoch. | |
| GR_RUNTIME_API logger_ptr | logger_get_logger (std::string name) |
| Retrieve a pointer to a logger by name. | |
| GR_RUNTIME_API bool | logger_load_config (const std::string &config_filename="") |
| Load logger's configuration file. | |
| GR_RUNTIME_API void | logger_reset_config (void) |
| Reset logger's configuration file. | |
| GR_RUNTIME_API void | logger_set_level (logger_ptr logger, const std::string &level) |
| Set the logger's output level. | |
| GR_RUNTIME_API void | logger_set_level (logger_ptr logger, log4cpp::Priority::Value level) |
| Set the logger's output level. | |
| GR_RUNTIME_API void | logger_get_level (logger_ptr logger, std::string &level) |
| Get the logger's output level. | |
| GR_RUNTIME_API void | logger_get_level (logger_ptr logger, log4cpp::Priority::Value &level) |
| Get the logger's output level. | |
| GR_RUNTIME_API void | logger_add_appender (logger_ptr logger, std::string appender) |
| Add console appender to a given logger. | |
| GR_RUNTIME_API void | logger_set_appender (logger_ptr logger, std::string appender) |
| Sets a console appender to a given logger. Deletes any existing appenders and adds a new one. To add an additional appender, use logger_add_appender. | |
| GR_RUNTIME_API void | logger_add_console_appender (logger_ptr logger, std::string target, std::string pattern) |
| Add console appender to a given logger. | |
| GR_RUNTIME_API void | logger_set_console_appender (logger_ptr logger, std::string target, std::string pattern) |
| Sets a new console appender to a given logger after removing all others. Use logger_add_console_appender to add another. | |
| GR_RUNTIME_API void | logger_add_file_appender (logger_ptr logger, std::string filename, bool append, std::string pattern) |
| Add file appender to a given logger. | |
| GR_RUNTIME_API void | logger_set_file_appender (logger_ptr logger, std::string filename, bool append, std::string pattern) |
| Set a file appender to a given logger. To add another file appender, use logger_add_file_appender. | |
| GR_RUNTIME_API void | logger_add_rollingfile_appender (logger_ptr logger, std::string filename, size_t filesize, int bkup_index, bool append, mode_t mode, std::string pattern) |
| Add rolling file appender to a given logger. | |
| GR_RUNTIME_API std::vector< std::string > | logger_get_logger_names (void) |
| Add rolling file appender to a given logger. | |
| GR_RUNTIME_API bool | configure_default_loggers (gr::logger_ptr &l, gr::logger_ptr &d, const std::string name) |
| GR_RUNTIME_API bool | update_logger_alias (const std::string &name, const std::string &alias) |
| static bool | is_power_of_2 (long x) |
| GR_RUNTIME_API float | fast_atan2f (float y, float x) |
| Fast arc tangent using table lookup and linear interpolation. | |
| static float | fast_atan2f (gr_complex z) |
| static float | branchless_clip (float x, float clip) |
| static float | clip (float x, float clip) |
| static unsigned int | binary_slicer (float x) |
| static unsigned int | quad_45deg_slicer (float r, float i) |
| static unsigned int | quad_0deg_slicer (float r, float i) |
| static unsigned int | quad_45deg_slicer (gr_complex x) |
| static unsigned int | quad_0deg_slicer (gr_complex x) |
| static unsigned int | branchless_binary_slicer (float x) |
| static unsigned int | branchless_quad_0deg_slicer (float r, float i) |
| static unsigned int | branchless_quad_0deg_slicer (gr_complex x) |
| static unsigned int | branchless_quad_45deg_slicer (float r, float i) |
| static unsigned int | branchless_quad_45deg_slicer (gr_complex x) |
| static size_t | p2_round_down (size_t x, size_t pow2) |
| static size_t | p2_round_up (size_t x, size_t pow2) |
| static size_t | p2_modulo (size_t x, size_t pow2) |
| static size_t | p2_modulo_neg (size_t x, size_t pow2) |
| GR_RUNTIME_API long | message_ncurrently_allocated () |
| GR_RUNTIME_API rt_status_t | enable_realtime_scheduling () |
| If possible, enable high-priority "real time" scheduling. | |
| constexpr bool | digit (char d) |
| constexpr check for whether a character is a digit | |
| constexpr uint64_t | cstr_to_version_magic (const char *cstr, uint64_t magicsofar) |
| constexpr uint64_t | version_to_version_magic (unsigned int x, unsigned int y, unsigned int z) |
| constexpr bool | thrift_version_uses_boost () |
| GR_RUNTIME_API void | sincos (double x, double *sin, double *cos) |
| GR_RUNTIME_API void | sincosf (float x, float *sin, float *cos) |
| GR_RUNTIME_API const char * | tmp_path () |
| directory to create temporary files | |
| GR_RUNTIME_API const char * | appdata_path () |
| directory to store application data | |
| GR_RUNTIME_API const char * | userconf_path () |
| directory to store user configuration | |
| GR_RUNTIME_API top_block_sptr | make_top_block (const std::string &name) |
GNU Radio logging wrapper for log4cpp library (C++ port of log4j).
System independent way to ask for realtime scheduling.
Include this header to use the message passing features.
| typedef std::vector<basic_block_sptr> gr::basic_block_vector_t |
| typedef std::vector<basic_block_sptr>::iterator gr::basic_block_viter_t |
| typedef std::vector<block_sptr> gr::block_vector_t |
| typedef std::vector<block_sptr>::iterator gr::block_viter_t |
| typedef std::map<std::string,std::string>::iterator gr::config_map_elem_itr |
| typedef std::map<std::string, std::string> gr::config_map_elem_t |
| typedef std::map<std::string,std::map<std::string,std::string>>::iterator gr::config_map_itr |
| typedef std::map<std::string, std::map<std::string, std::string> > gr::config_map_t |
| typedef std::vector<edge> gr::edge_vector_t |
| typedef std::vector<edge>::iterator gr::edge_viter_t |
| typedef std::vector<endpoint> gr::endpoint_vector_t |
| typedef std::vector<endpoint>::iterator gr::endpoint_viter_t |
| typedef signed long long gr::high_res_timer_type |
Typedef for the timer tick count.
| typedef log4cpp::Category* gr::logger_ptr |
GR_LOG macros.
These macros wrap the standard LOG4CPP_LEVEL macros. The availablie macros are: LOG_DEBUG LOG_INFO LOG_WARN LOG_TRACE LOG_ERROR LOG_ALERT LOG_CRIT LOG_FATAL LOG_EMERG
| typedef std::vector<msg_edge> gr::msg_edge_vector_t |
| typedef std::vector<msg_edge>::iterator gr::msg_edge_viter_t |
Magic return values from general_work, gr::block::WORK_CALLED_PRODUCE.
| Enumerator | |
|---|---|
| WORK_CALLED_PRODUCE | |
| WORK_DONE | |
| enum gr::endianness_t |
| enum gr::rt_sched_policy |
| enum gr::rt_status_t |
| GR_RUNTIME_API const std::string gr::api_version | ( | ) |
return just the api version defined by cmake
References api_version(), and GR_RUNTIME_API.
Referenced by api_version().
| GR_RUNTIME_API const char * gr::appdata_path | ( | ) |
directory to store application data
References appdata_path(), and GR_RUNTIME_API.
Referenced by appdata_path().
| GR_RUNTIME_API long gr::basic_block_ncurrently_allocated | ( | ) |
References basic_block_ncurrently_allocated(), and GR_RUNTIME_API.
Referenced by basic_block_ncurrently_allocated().
|
inlinestatic |
References binary_slicer().
Referenced by binary_slicer().
| GR_RUNTIME_API long gr::block_detail_ncurrently_allocated | ( | ) |
References block_detail_ncurrently_allocated(), and GR_RUNTIME_API.
Referenced by block_detail_ncurrently_allocated().
|
inlinestatic |
References branchless_binary_slicer().
Referenced by branchless_binary_slicer().
|
inlinestatic |
References branchless_clip(), and clip().
Referenced by branchless_clip().
|
inlinestatic |
References branchless_quad_0deg_slicer().
Referenced by branchless_quad_0deg_slicer(), and branchless_quad_0deg_slicer().
|
inlinestatic |
References branchless_quad_0deg_slicer().
|
inlinestatic |
References branchless_quad_45deg_slicer().
Referenced by branchless_quad_45deg_slicer(), and branchless_quad_45deg_slicer().
|
inlinestatic |
References branchless_quad_45deg_slicer().
| GR_RUNTIME_API buffer_reader_sptr gr::buffer_add_reader | ( | buffer_sptr | buf, |
| int | nzero_preload, | ||
| block_sptr | link = block_sptr(), | ||
| int | delay = 0 ) |
Create a new gr::buffer_reader and attach it to buffer buf.
| buf | is the buffer the gr::buffer_reader reads from. |
| nzero_preload | – number of zero items to "preload" into buffer. |
| link | is the block that reads from the buffer using this gr::buffer_reader. |
| delay | Optional setting to declare the buffer's sample delay. |
References buffer_add_reader(), and GR_RUNTIME_API.
Referenced by buffer_add_reader().
| GR_RUNTIME_API long gr::buffer_ncurrently_allocated | ( | ) |
returns # of buffers currently allocated
References buffer_ncurrently_allocated(), and GR_RUNTIME_API.
Referenced by buffer_ncurrently_allocated().
| GR_RUNTIME_API long gr::buffer_reader_ncurrently_allocated | ( | ) |
returns # of buffer_readers currently allocated
References buffer_reader_ncurrently_allocated(), and GR_RUNTIME_API.
Referenced by buffer_reader_ncurrently_allocated().
| GR_RUNTIME_API const std::string gr::build_date | ( | ) |
return date/time of build, as set when 'cmake' is run
References build_date(), and GR_RUNTIME_API.
Referenced by build_date().
| GR_RUNTIME_API const std::string gr::build_time_enabled_components | ( | ) |
return build-time enabled components
References build_time_enabled_components(), and GR_RUNTIME_API.
Referenced by build_time_enabled_components().
| GR_RUNTIME_API const std::string gr::c_compiler | ( | ) |
return C compiler used to build this version of GNU Radio
References c_compiler(), and GR_RUNTIME_API.
Referenced by c_compiler().
|
inlinestatic |
References clip().
Referenced by branchless_clip(), and clip().
| GR_RUNTIME_API const std::string gr::compiler_flags | ( | ) |
return C and C++ compiler flags used to build this version of GNU Radio
References compiler_flags(), and GR_RUNTIME_API.
Referenced by compiler_flags().
| GR_RUNTIME_API bool gr::configure_default_loggers | ( | gr::logger_ptr & | l, |
| gr::logger_ptr & | d, | ||
| const std::string | name ) |
Function to use the GR prefs files to get and setup the two default loggers defined there. The loggers are unique to the class in which they are called, and we pass it the name to identify where the log message originates from. For a GNU Radio block, we use 'alias()' for this value, and this is set up for us automatically in gr::block.
References configure_default_loggers().
Referenced by configure_default_loggers(), thrift_application_base< TserverBase, TserverClass >::thrift_application_base(), and thrift_server_template< TserverBase, TserverClass, TImplClass >::thrift_server_template().
|
constexpr |
References cstr_to_version_magic(), and digit().
Referenced by cstr_to_version_magic(), and thrift_version_uses_boost().
| GR_RUNTIME_API const std::string gr::cxx_compiler | ( | ) |
return C++ compiler used to build this version of GNU Radio
References cxx_compiler(), and GR_RUNTIME_API.
Referenced by cxx_compiler().
|
constexpr |
constexpr check for whether a character is a digit
References digit().
Referenced by cstr_to_version_magic(), and digit().
| GR_RUNTIME_API std::string gr::dot_graph | ( | hier_block2_sptr | hierblock2 | ) |
Return hierarchical block's flow graph represented in dot language.
References dot_graph(), and GR_RUNTIME_API.
Referenced by dot_graph().
| std::string gr::dot_graph_fg | ( | flowgraph_sptr | fg | ) |
References dot_graph_fg().
Referenced by dot_graph_fg().
|
inlinestatic |
References fast_atan2f().
| GR_RUNTIME_API gr_complex gr::feval_cc_example | ( | feval_cc * | f, |
| gr_complex | x ) |
References feval_cc_example(), and GR_RUNTIME_API.
Referenced by feval_cc_example().
| GR_RUNTIME_API double gr::feval_dd_example | ( | feval_dd * | f, |
| double | x ) |
trivial examples / test cases showing C++ calling Python code
References feval_dd_example(), and GR_RUNTIME_API.
Referenced by feval_dd_example().
| GR_RUNTIME_API void gr::feval_example | ( | feval * | f | ) |
References feval_example(), and GR_RUNTIME_API.
Referenced by feval_example().
| GR_RUNTIME_API long gr::feval_ll_example | ( | feval_ll * | f, |
| long | x ) |
References feval_ll_example(), and GR_RUNTIME_API.
Referenced by feval_ll_example().
|
inline |
Get the tick count at the epoch.
References high_res_timer_now(), and high_res_timer_tps().
Referenced by TimeScaleData::setZeroTime().
|
inline |
Get the current time in ticks.
Referenced by high_res_timer_epoch(), and high_res_timer_now_perfmon().
|
inline |
Get the current time in ticks - for performance monitoring.
References high_res_timer_now().
|
inline |
Get the number of ticks per second.
Referenced by high_res_timer_epoch().
|
inlinestatic |
References is_power_of_2().
Referenced by is_power_of_2().
| GR_RUNTIME_API void gr::logger_add_appender | ( | logger_ptr | logger, |
| std::string | appender ) |
Add console appender to a given logger.
Add console appender to a given logger
| logger | Logger to which appender will be added |
| appender | Name of appender to add to logger |
References GR_RUNTIME_API, and logger_add_appender().
Referenced by logger_add_appender().
| GR_RUNTIME_API void gr::logger_add_console_appender | ( | logger_ptr | logger, |
| std::string | target, | ||
| std::string | pattern ) |
Add console appender to a given logger.
Add console appender to a given logger
| logger | Logger to which appender will be added |
| target | Std target to write 'cout' or 'cerr' (default is cout) |
| pattern | Formatting pattern for log messages |
References GR_RUNTIME_API, and logger_add_console_appender().
Referenced by logger_add_console_appender().
| GR_RUNTIME_API void gr::logger_add_file_appender | ( | logger_ptr | logger, |
| std::string | filename, | ||
| bool | append, | ||
| std::string | pattern ) |
Add file appender to a given logger.
Add file appender to a given logger
| logger | Logger to which appender will be added |
| filename | File to which log will be written |
| append | Overwrite or append to log file |
| pattern | Formatting pattern for log messages |
References GR_RUNTIME_API, and logger_add_file_appender().
Referenced by logger_add_file_appender().
| GR_RUNTIME_API void gr::logger_add_rollingfile_appender | ( | logger_ptr | logger, |
| std::string | filename, | ||
| size_t | filesize, | ||
| int | bkup_index, | ||
| bool | append, | ||
| mode_t | mode, | ||
| std::string | pattern ) |
Add rolling file appender to a given logger.
Add rolling file appender to a given logger
| logger | Logger to which appender will be added |
| filename | File to which log will be written |
| filesize | Sizez of files to write |
| bkup_index | Number of files to write |
| append | Overwrite or append to log file |
| mode | Permissions to set on log file |
| pattern | Formatting pattern for log messages |
References GR_RUNTIME_API, and logger_add_rollingfile_appender().
Referenced by logger_add_rollingfile_appender().
| GR_RUNTIME_API void gr::logger_get_level | ( | logger_ptr | logger, |
| log4cpp::Priority::Value & | level ) |
Get the logger's output level.
Gets the level of the logger. This returns the actual Log4cpp::Level data type, which can be:
| logger | the logger to get the level of. |
| level | of the logger. |
References GR_RUNTIME_API, and logger_get_level().
| GR_RUNTIME_API void gr::logger_get_level | ( | logger_ptr | logger, |
| std::string & | level ) |
Get the logger's output level.
Gets the level of the logger. This returns a string that corresponds to the standard levels and can be (case insensitive):
| logger | the logger to get the level of. |
| level | string to get the level into. |
References GR_RUNTIME_API, and logger_get_level().
Referenced by logger_get_level(), and logger_get_level().
| GR_RUNTIME_API logger_ptr gr::logger_get_logger | ( | std::string | name | ) |
Retrieve a pointer to a logger by name.
Retrieves a logger pointer name.
| name | Name of the logger for which a pointer is requested |
References GR_RUNTIME_API, and logger_get_logger().
Referenced by logger_get_logger().
| GR_RUNTIME_API std::vector< std::string > gr::logger_get_logger_names | ( | void | ) |
Add rolling file appender to a given logger.
Add rolling file appender to a given logger
References GR_RUNTIME_API, and logger_get_logger_names().
Referenced by logger_get_logger_names().
| GR_RUNTIME_API bool gr::logger_load_config | ( | const std::string & | config_filename = "" | ) |
Load logger's configuration file.
Initialize the GNU Radio logger by loading the configuration file config_filename.
| config_filename | The configuration file. Set to "" for the basic logger that outputs to the console. |
References GR_RUNTIME_API, and logger_load_config().
Referenced by logger_load_config().
| GR_RUNTIME_API void gr::logger_reset_config | ( | void | ) |
Reset logger's configuration file.
Remove all appenders from loggers
References GR_RUNTIME_API, and logger_reset_config().
Referenced by logger_reset_config().
| GR_RUNTIME_API void gr::logger_set_appender | ( | logger_ptr | logger, |
| std::string | appender ) |
Sets a console appender to a given logger. Deletes any existing appenders and adds a new one. To add an additional appender, use logger_add_appender.
| logger | Logger to which appender will be added |
| appender | Name of appender to add to logger |
References GR_RUNTIME_API, and logger_set_appender().
Referenced by logger_set_appender().
| GR_RUNTIME_API void gr::logger_set_console_appender | ( | logger_ptr | logger, |
| std::string | target, | ||
| std::string | pattern ) |
Sets a new console appender to a given logger after removing all others. Use logger_add_console_appender to add another.
| logger | Logger to which appender will be added |
| target | Std target to write 'cout' or 'cerr' (default is cout) |
| pattern | Formatting pattern for log messages |
References logger_set_console_appender().
Referenced by logger_set_console_appender().
| GR_RUNTIME_API void gr::logger_set_file_appender | ( | logger_ptr | logger, |
| std::string | filename, | ||
| bool | append, | ||
| std::string | pattern ) |
Set a file appender to a given logger. To add another file appender, use logger_add_file_appender.
| logger | Logger to which appender will be added |
| filename | File to which log will be written |
| append | Overwrite or append to log file |
| pattern | Formatting pattern for log messages |
References GR_RUNTIME_API, and logger_set_file_appender().
Referenced by logger_set_file_appender().
| GR_RUNTIME_API void gr::logger_set_level | ( | logger_ptr | logger, |
| const std::string & | level ) |
Set the logger's output level.
Sets the level of the logger. This takes a string that is translated to the standard levels and can be (case insensitive):
| logger | the logger to set the level of. |
| level | string to set the level to. |
References GR_RUNTIME_API, and logger_set_level().
Referenced by logger_set_level(), and logger_set_level().
| GR_RUNTIME_API void gr::logger_set_level | ( | logger_ptr | logger, |
| log4cpp::Priority::Value | level ) |
Set the logger's output level.
Sets the level of the logger. This takes the actual Log4cpp::Priority data type, which can be:
| logger | the logger to set the level of. |
| level | new logger level of type Log4cpp::Priority |
References GR_RUNTIME_API, and logger_set_level().
| GR_RUNTIME_API const std::string gr::major_version | ( | ) |
return just the major version defined by cmake
References GR_RUNTIME_API, and major_version().
Referenced by major_version().
| GR_RUNTIME_API block_detail_sptr gr::make_block_detail | ( | unsigned int | ninputs, |
| unsigned int | noutputs ) |
References GR_RUNTIME_API, and make_block_detail().
Referenced by make_block_detail().
| GR_RUNTIME_API buffer_sptr gr::make_buffer | ( | int | nitems, |
| size_t | sizeof_item, | ||
| block_sptr | link = block_sptr() ) |
Allocate a buffer that holds at least nitems of size sizeof_item.
The total size of the buffer will be rounded up to a system dependent boundary. This is typically the system page size, but under MS windows is 64KB.
| nitems | is the minimum number of items the buffer will hold. |
| sizeof_item | is the size of an item in bytes. |
| link | is the block that writes to this buffer. |
References GR_RUNTIME_API, and make_buffer().
Referenced by make_buffer().
| GR_RUNTIME_API flowgraph_sptr gr::make_flowgraph | ( | ) |
References GR_RUNTIME_API, and make_flowgraph().
Referenced by make_flowgraph().
| GR_RUNTIME_API hier_block2_sptr gr::make_hier_block2 | ( | const std::string & | name, |
| gr::io_signature::sptr | input_signature, | ||
| gr::io_signature::sptr | output_signature ) |
public constructor for hier_block2
References GR_RUNTIME_API, and make_hier_block2().
Referenced by make_hier_block2().
| GR_RUNTIME_API top_block_sptr gr::make_top_block | ( | const std::string & | name | ) |
References GR_RUNTIME_API, and make_top_block().
Referenced by make_top_block().
| GR_RUNTIME_API long gr::message_ncurrently_allocated | ( | ) |
References GR_RUNTIME_API, and message_ncurrently_allocated().
Referenced by message_ncurrently_allocated().
| GR_RUNTIME_API const std::string gr::minor_version | ( | ) |
returnjust the minor version defined by cmake
References GR_RUNTIME_API, and minor_version().
Referenced by minor_version().
|
inline |
References operator<().
Referenced by operator<().
|
inline |
References gr::basic_block::identifier(), and operator<<().
Referenced by operator<<(), operator<<(), operator<<(), operator<<(), operator<<(), and operator<<().
| GR_RUNTIME_API std::ostream & gr::operator<< | ( | std::ostream & | os, |
| const block * | m ) |
References GR_RUNTIME_API, and operator<<().
|
inline |
References gr::edge::identifier(), and operator<<().
|
inline |
References gr::endpoint::identifier(), and operator<<().
|
inline |
References gr::edge::identifier(), and operator<<().
|
inline |
References gr::msg_endpoint::identifier(), and operator<<().
|
inlinestatic |
| x | any value |
| pow2 | must be a power of 2 |
x modulo pow2. References p2_modulo().
Referenced by p2_modulo(), and p2_modulo_neg().
|
inlinestatic |
| x | any value |
| pow2 | must be a power of 2 |
pow2 - (x modulo pow2). References p2_modulo(), and p2_modulo_neg().
Referenced by p2_modulo_neg().
|
inlinestatic |
| x | any value |
| pow2 | must be a power of 2 |
x rounded down to a multiple of pow2. References p2_round_down().
Referenced by p2_round_down(), and p2_round_up().
|
inlinestatic |
| x | any value |
| pow2 | must be a power of 2 |
x rounded up to a multiple of pow2. References p2_round_down(), and p2_round_up().
Referenced by p2_round_up().
| GR_RUNTIME_API const std::string gr::prefix | ( | ) |
return SYSCONFDIR. Typically ${CMAKE_INSTALL_PREFIX}/etc or /etc
References GR_RUNTIME_API, and prefix().
Referenced by prefix().
| GR_RUNTIME_API const std::string gr::prefsdir | ( | ) |
return preferences file directory. Typically ${SYSCONFDIR}/etc/conf.d
References GR_RUNTIME_API, and prefsdir().
Referenced by prefsdir().
|
inlinestatic |
References quad_0deg_slicer().
Referenced by quad_0deg_slicer(), and quad_0deg_slicer().
|
inlinestatic |
References quad_0deg_slicer().
|
inlinestatic |
References quad_45deg_slicer().
Referenced by quad_45deg_slicer(), and quad_45deg_slicer().
|
inlinestatic |
References quad_45deg_slicer().
| GR_RUNTIME_API void gr::sincos | ( | double | x, |
| double * | sin, | ||
| double * | cos ) |
References GR_RUNTIME_API, and sincos().
Referenced by sincos().
| GR_RUNTIME_API void gr::sincosf | ( | float | x, |
| float * | sin, | ||
| float * | cos ) |
References GR_RUNTIME_API, and sincosf().
Referenced by gr_expj(), gr::nco< o_type, i_type >::sincos(), and sincosf().
| GR_RUNTIME_API const std::string gr::sysconfdir | ( | ) |
return SYSCONFDIR. Typically ${CMAKE_INSTALL_PREFIX}/etc or /etc
References GR_RUNTIME_API, and sysconfdir().
Referenced by sysconfdir().
|
constexpr |
References cstr_to_version_magic(), thrift_version_uses_boost(), and version_to_version_magic().
Referenced by thrift_version_uses_boost().
| GR_RUNTIME_API const char * gr::tmp_path | ( | ) |
directory to create temporary files
References GR_RUNTIME_API, and tmp_path().
Referenced by tmp_path().
| GR_RUNTIME_API bool gr::update_logger_alias | ( | const std::string & | name, |
| const std::string & | alias ) |
References GR_RUNTIME_API, and update_logger_alias().
Referenced by update_logger_alias().
| GR_RUNTIME_API const char * gr::userconf_path | ( | ) |
directory to store user configuration
References GR_RUNTIME_API, and userconf_path().
Referenced by userconf_path().
| GR_RUNTIME_API const std::string gr::version | ( | ) |
return version string defined by cmake (GrVersion.cmake)
References GR_RUNTIME_API, and version().
Referenced by gr::dtv::dvbt2_framemapper_cc::make(), gr::dtv::dvbt2_freqinterleaver_cc::make(), gr::dtv::dvbt2_paprtr_cc::make(), gr::dtv::dvbt2_pilotgenerator_cc::make(), and version().
|
constexpr |
References version_to_version_magic().
Referenced by thrift_version_uses_boost(), and version_to_version_magic().