Vala.CCodeFile – ccode Reference Manual
Packages
ccode
Vala
CCodeFile
file
file_type
get_define_for_filename
CCodeFile
add_comment
add_constant_declaration
add_declaration
add_define
add_feature_test_macro
add_function
add_function_declaration
add_include
add_type_declaration
add_type_definition
add_type_member_declaration
add_type_member_definition
get_symbols
get_symbols_from_fragment
store
_file
_file_type
comments
constant_declaration
declarations
define_directives
definitions
feature_test_macros
features
include_directives
includes
type_declaration
type_definition
type_member_declaration
type_member_definition
CCodeFile
Object Hierarchy:
Vala.CCodeFile
Vala.CCodeFile
Vala.CCodeFile
Description:
public
class
CCodeFile
Namespace:
Vala
Package:
ccode
Content:
Properties:
public
unowned
SourceFile
?
file
{
get
;
private
set
; }
public
CCodeFileType
file_type
{
get
;
private
set
; }
Static methods:
private
static
string
get_define_for_filename
(
string
filename)
Creation methods:
public
CCodeFile
(
CCodeFileType
type =
SOURCE
,
SourceFile
? source_file =
null
)
Methods:
public
void
add_comment
(
CCodeComment
comment)
public
void
add_constant_declaration
(
CCodeNode
node)
public
bool
add_declaration
(
string
name)
public
void
add_define
(
CCodeNode
node)
public
void
add_feature_test_macro
(
string
feature_test_macro)
public
void
add_function
(
CCodeFunction
func)
public
void
add_function_declaration
(
CCodeFunction
func)
public
void
add_include
(
string
filename,
bool
local =
false
)
public
void
add_type_declaration
(
CCodeNode
node)
public
void
add_type_definition
(
CCodeNode
node)
public
void
add_type_member_declaration
(
CCodeNode
node)
public
void
add_type_member_definition
(
CCodeNode
node)
public
List
<
string
>
get_symbols
()
private
void
get_symbols_from_fragment
(
List
<
string
> symbols,
CCodeFragment
fragment)
public
bool
store
(
string
filename,
string
? source_filename,
bool
write_version,
bool
line_directives,
string
? begin_decls =
null
,
string
? end_decls =
null
)
Fields:
private
unowned
SourceFile
?
_file
private
CCodeFileType
_file_type
private
CCodeFragment
comments
private
CCodeFragment
constant_declaration
private
Set
<
string
>
declarations
private
CCodeFragment
define_directives
private
Set
<
string
>
definitions
private
CCodeFragment
feature_test_macros
private
Set
<
string
>
features
private
CCodeFragment
include_directives
private
Set
<
string
>
includes
private
CCodeFragment
type_declaration
private
CCodeFragment
type_definition
private
CCodeFragment
type_member_declaration
private
CCodeFragment
type_member_definition