protected virtual void GenerateMember(Node node, StreamWriter stream, string indent) { if (node.EnterAction != null && node.EnterAction.Name != "null_method") { MethodCppExporter.GenerateClassMember(node.EnterAction, stream, indent, "EnterAction"); } if (node.ExitAction != null && node.ExitAction.Name != "null_method") { MethodCppExporter.GenerateClassMember(node.ExitAction, stream, indent, "ExitAction"); } }
protected override void GenerateMember(Node node, StreamWriter stream, string indent) { base.GenerateMember(node, stream, indent); Action action = node as Action; Debug.Check(action != null); if (action.Method != null) { MethodCppExporter.GenerateClassMember(action.Method, stream, indent, "method"); } }
protected override void GenerateMember(Node node, StringWriter stream, string indent) { base.GenerateMember(node, stream, indent); State state = node as State; if (state == null) { return; } if (state.Method != null) { MethodCppExporter.GenerateClassMember(state.Method, stream, indent, "method"); } }
protected override void GenerateMember(Node node, StringWriter stream, string indent) { base.GenerateMember(node, stream, indent); Nodes.Action action = node as Nodes.Action; if (action == null) { return; } if (action.Method != null) { MethodCppExporter.GenerateClassMember(action.Method, stream, indent, "method"); } }