File: generator_utils.h

package info (click to toggle)
sdbus-cpp 1.2.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,296 kB
  • sloc: cpp: 9,859; xml: 170; ansic: 135; makefile: 27
file content (24 lines) | stat: -rw-r--r-- 667 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/**
 * Inspired by: http://dbus-cplusplus.sourceforge.net/
 */

#ifndef __SDBUSCPP_TOOLS_GENERATOR_UTILS_H
#define __SDBUSCPP_TOOLS_GENERATOR_UTILS_H

#include <string>
#include <sstream>
#include <iomanip>

const char *atomic_type_to_string(char t);

std::string stub_name(const std::string& name);

std::string signature_to_type(const std::string& signature);

std::string underscorize(const std::string& str);

constexpr const char* getHeaderComment() noexcept { return "\n/*\n * This file was automatically generated by sdbus-c++-xml2cpp; DO NOT EDIT!\n */\n\n"; }

std::string mangle_name (const std::string& name);

#endif  //__SDBUSCPP_TOOLS_GENERATOR_UTILS_H