Debian Codegraph @

bindings/c++/prelude-client-profile.cxx

raw symbols SCIP
1 /*****
2 *
3 * Copyright (C) 2009-2020 CS GROUP - France. All Rights Reserved.
4 * Author: Yoann Vandoorselaere <[email protected]>
5 *
6 * This file is part of the Prelude library.
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU Lesser General Public License as published by
10 * the Free Software Foundation; either version 2.1, or (at your option)
11 * any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public License along
19 * with this program; if not, write to the Free Software Foundation, Inc.,
20 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
21 *
22 *****/
23
24 #include "prelude-error.hxx"cxx . . $ `<file>/bindings/c++/include/prelude-error.hxx`/
25 #include "prelude-client-profile.h"cxx . . $ `<file>/src/include/prelude-client-profile.h`/
26 #include "prelude-client-profile.hxx"cxx . . $ `<file>/bindings/c++/include/prelude-client-profile.hxx`/
27
28
29 using namespace Prelude;
30
31
32
33 #define _RETURN_NEW_BUFFER_FROM_FUNCTION_BUFFERSIZEcxx . . $ `bindings/c++/prelude-client-profile.cxx:33:9`!(function) do { \
34 char buf[PATH_MAXcxx . . $ `<external>/6347054901304145714/limits.h:13:9`!]; \
35 \
36 (function)(_profile, buf, sizeof(buf)); \
37 \
38 return std::string(buf); \
39 } while(0)
40
41
42 ClientProfilecxx . . $ Prelude/ClientProfile#::ClientProfilecxx . . $ Prelude/ClientProfile#ClientProfile(49f6e7a06ebc5aa8).()
43 {
44 _profilecxx . . $ Prelude/ClientProfile#_profile. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!;
45 }
46
47
48 ClientProfilecxx . . $ Prelude/ClientProfile#::ClientProfilecxx . . $ Prelude/ClientProfile#ClientProfile(34b8f1e7ccc1d957).(prelude_client_profile_t *profile) : _profilecxx . . $ Prelude/ClientProfile#_profile.(profile)
49 {
50 _profilecxx . . $ Prelude/ClientProfile#_profile. = profile;
51 }
52
53
54 ClientProfilecxx . . $ Prelude/ClientProfile#::ClientProfilecxx . . $ Prelude/ClientProfile#ClientProfile(85c52e162fed56f9).(const char *profile)
55 {
56 int ret;
57
58 ret = prelude_client_profile_new(&_profilecxx . . $ Prelude/ClientProfile#_profile., profile);
59 if ( ret < 0 )
60 throw PreludeErrorcxx . . $ Prelude/PreludeError#(ret);
61 }
62
63 ClientProfilecxx . . $ Prelude/ClientProfile#::ClientProfilecxx . . $ Prelude/ClientProfile#ClientProfile(7fb972ac6948b107).(const ClientProfilecxx . . $ Prelude/ClientProfile# &p)
64 {
65 _profilecxx . . $ Prelude/ClientProfile#_profile. = (p._profilecxx . . $ Prelude/ClientProfile#_profile.) ? prelude_client_profile_ref(p._profilecxx . . $ Prelude/ClientProfile#_profile.) : NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!;
66 }
67
68
69 ClientProfilecxx . . $ Prelude/ClientProfile#::~cxx . . $ Prelude/ClientProfile#`~ClientProfile`(ced63f7c635d850d).ClientProfilecxx . . $ Prelude/ClientProfile#()
70 {
71 if ( _profilecxx . . $ Prelude/ClientProfile#_profile. )
72 prelude_client_profile_destroy(_profilecxx . . $ Prelude/ClientProfile#_profile.);
73 }
74
75
76 const std::stringcxx . . $ std/string# ClientProfilecxx . . $ Prelude/ClientProfile#::getConfigFilenamecxx . . $ Prelude/ClientProfile#getConfigFilename(f5c680baeeb2c589).()
77 {
78 _RETURN_NEW_BUFFER_FROM_FUNCTION_BUFFERSIZEcxx . . $ `bindings/c++/prelude-client-profile.cxx:33:9`!(prelude_client_profile_get_config_filename);
79 }
80
81 const std::stringcxx . . $ std/string# ClientProfilecxx . . $ Prelude/ClientProfile#::getAnalyzeridFilenamecxx . . $ Prelude/ClientProfile#getAnalyzeridFilename(f5c680baeeb2c589).()
82 {
83 _RETURN_NEW_BUFFER_FROM_FUNCTION_BUFFERSIZEcxx . . $ `bindings/c++/prelude-client-profile.cxx:33:9`!(prelude_client_profile_get_analyzerid_filename);
84 }
85
86 const std::stringcxx . . $ std/string# ClientProfilecxx . . $ Prelude/ClientProfile#::getTlsKeyFilenamecxx . . $ Prelude/ClientProfile#getTlsKeyFilename(f5c680baeeb2c589).()
87 {
88 _RETURN_NEW_BUFFER_FROM_FUNCTION_BUFFERSIZEcxx . . $ `bindings/c++/prelude-client-profile.cxx:33:9`!(prelude_client_profile_get_tls_key_filename);
89 }
90
91 const std::stringcxx . . $ std/string# ClientProfilecxx . . $ Prelude/ClientProfile#::getTlsServerCaCertFilenamecxx . . $ Prelude/ClientProfile#getTlsServerCaCertFilename(f5c680baeeb2c589).()
92 {
93 _RETURN_NEW_BUFFER_FROM_FUNCTION_BUFFERSIZEcxx . . $ `bindings/c++/prelude-client-profile.cxx:33:9`!(prelude_client_profile_get_tls_server_ca_cert_filename);
94 }
95
96 const std::stringcxx . . $ std/string# ClientProfilecxx . . $ Prelude/ClientProfile#::getTlsServerKeyCertFilenamecxx . . $ Prelude/ClientProfile#getTlsServerKeyCertFilename(f5c680baeeb2c589).()
97 {
98 _RETURN_NEW_BUFFER_FROM_FUNCTION_BUFFERSIZEcxx . . $ `bindings/c++/prelude-client-profile.cxx:33:9`!(prelude_client_profile_get_tls_server_keycert_filename);
99 }
100
101 const std::stringcxx . . $ std/string# ClientProfilecxx . . $ Prelude/ClientProfile#::getTlsServerCrlFilenamecxx . . $ Prelude/ClientProfile#getTlsServerCrlFilename(f5c680baeeb2c589).()
102 {
103 _RETURN_NEW_BUFFER_FROM_FUNCTION_BUFFERSIZEcxx . . $ `bindings/c++/prelude-client-profile.cxx:33:9`!(prelude_client_profile_get_tls_server_crl_filename);
104 }
105
106 const std::stringcxx . . $ std/string# ClientProfilecxx . . $ Prelude/ClientProfile#::getTlsClientKeyCertFilenamecxx . . $ Prelude/ClientProfile#getTlsClientKeyCertFilename(f5c680baeeb2c589).()
107 {
108 _RETURN_NEW_BUFFER_FROM_FUNCTION_BUFFERSIZEcxx . . $ `bindings/c++/prelude-client-profile.cxx:33:9`!(prelude_client_profile_get_tls_client_keycert_filename);
109 }
110
111 const std::stringcxx . . $ std/string# ClientProfilecxx . . $ Prelude/ClientProfile#::getTlsClientTrustedCertFilenamecxx . . $ Prelude/ClientProfile#getTlsClientTrustedCertFilename(f5c680baeeb2c589).()
112 {
113 _RETURN_NEW_BUFFER_FROM_FUNCTION_BUFFERSIZEcxx . . $ `bindings/c++/prelude-client-profile.cxx:33:9`!(prelude_client_profile_get_tls_client_trusted_cert_filename);
114 }
115
116 const std::stringcxx . . $ std/string# ClientProfilecxx . . $ Prelude/ClientProfile#::getBackupDirnamecxx . . $ Prelude/ClientProfile#getBackupDirname(f5c680baeeb2c589).()
117 {
118 _RETURN_NEW_BUFFER_FROM_FUNCTION_BUFFERSIZEcxx . . $ `bindings/c++/prelude-client-profile.cxx:33:9`!(prelude_client_profile_get_backup_dirname);
119 }
120
121 const std::stringcxx . . $ std/string# ClientProfilecxx . . $ Prelude/ClientProfile#::getProfileDirnamecxx . . $ Prelude/ClientProfile#getProfileDirname(f5c680baeeb2c589).()
122 {
123 _RETURN_NEW_BUFFER_FROM_FUNCTION_BUFFERSIZEcxx . . $ `bindings/c++/prelude-client-profile.cxx:33:9`!(prelude_client_profile_get_profile_dirname);
124 }
125
126
127 void ClientProfilecxx . . $ Prelude/ClientProfile#::setPrefixcxx . . $ Prelude/ClientProfile#setPrefix(85c52e162fed56f9).(const char *prefix)
128 {
129 int ret;
130
131 ret = prelude_client_profile_set_prefix(_profilecxx . . $ Prelude/ClientProfile#_profile., prefix);
132 if ( ret < 0 )
133 throw PreludeErrorcxx . . $ Prelude/PreludeError#(ret);
134 }
135
136
137 const std::stringcxx . . $ std/string# ClientProfilecxx . . $ Prelude/ClientProfile#::getPrefixcxx . . $ Prelude/ClientProfile#getPrefix(f5c680baeeb2c589).()
138 {
139 _RETURN_NEW_BUFFER_FROM_FUNCTION_BUFFERSIZEcxx . . $ `bindings/c++/prelude-client-profile.cxx:33:9`!(prelude_client_profile_get_prefix);
140 }
141
142
143
144 ClientProfilecxx . . $ Prelude/ClientProfile#::operatorcxx . . $ Prelude/ClientProfile#`operator prelude_client_profile *`(bd63798c1877e448). prelude_client_profile_t *() const
145 {
146 return _profilecxx . . $ Prelude/ClientProfile#_profile.;
147 }
148
149
150 ClientProfilecxx . . $ Prelude/ClientProfile# &ClientProfilecxx . . $ Prelude/ClientProfile#::operatorcxx . . $ Prelude/ClientProfile#`operator=`(57706a7f4c24c36).=(const ClientProfilecxx . . $ Prelude/ClientProfile# &p)
151 {
152 if ( this != &p && _profilecxx . . $ Prelude/ClientProfile#_profile. != p._profilecxx . . $ Prelude/ClientProfile#_profile. ) {
153 if ( _profilecxx . . $ Prelude/ClientProfile#_profile. )
154 prelude_client_profile_destroy(_profilecxx . . $ Prelude/ClientProfile#_profile.);
155
156 _profilecxx . . $ Prelude/ClientProfile#_profile. = (p._profilecxx . . $ Prelude/ClientProfile#_profile.) ? prelude_client_profile_ref(p._profilecxx . . $ Prelude/ClientProfile#_profile.) : NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!;
157 }
158
159 return *this;
160 }