Hide C-Code functions based on Function names

For know-how protection, C-Code functions can be specified as non-expandable for interactive models in EHANDBOOK-NAVIGATOR during EHANDBOOK Container generation.

To enable this feature, the command line option -globalViewFile (CB & UGG) that takes "path_to_jsonfile\name.json" as argument is used. The JSON file specifies the list of functions to be hidden, see sample below.

The functions "add" and "subtract" are made non-expandable.

{
	"CCode": {
		"hideContents": [
			{
				"name": {
					"exact": ["add","subtract"]
				}
			}
		]
	}
}

Example Output:

Example Output for CCode models with globalView configuration

A sample file is available in the examples sub folder of the EHB-CB installation directory. (..\examples\configuration\GlobalView.json)

  • This feature also works when functions are configured to be inlined in EHANDBOOK.

  • C-Code hierarchies which are not functions can also be specified as non-expandable using this feature.