MCPcopy Create free account
hub / github.com/apache/fory / get_namespace

Method get_namespace

compiler/fory_compiler/generators/cpp.py:102–106  ·  view source on GitHub ↗

Get the C++ namespace.

(self)

Source from the content-addressed store, hash-verified

100 return "generated"
101
102 def get_namespace(self) -> str:
103 """Get the C++ namespace."""
104 if self.package:
105 return self.package.replace(".", "::")
106 return ""
107
108 def get_namespaced_type_name(
109 self,

Callers 3

generate_headerMethod · 0.95

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected