?? types.ice
字號:
// **********************************************************************//// Copyright (c) 2003-2007 ZeroC, Inc. All rights reserved.//// This copy of Ice is licensed to you under the terms described in the// ICE_LICENSE file included in this distribution.//// **********************************************************************#ifndef CLASS_ICE#define CLASS_ICEmodule Test{//// TEST: Same//const int IntConst1 = 100;//// TEST: Value changed//const int IntConst2 = 100;//// TEST: Type changed//const int IntConst3 = 100;//// TEST: Same//enum Enum1 { Enum11, Enum12, Enum13 };//// TEST: Add enumerator//enum Enum2 { Enum21, Enum22, Enum23 };//// TEST: Remove enumerator//enum Enum3 { Enum31, Enum32, Enum33 };//// TEST: Change to a different type//enum Enum4 { Enum41, Enum42, Enum43 };//// TEST: Same//sequence<int> Sequence1;//// TEST: Change sequence type//sequence<int> Sequence2;//// TEST: Change to a different type//sequence<int> Sequence3;//// TEST: Same//dictionary<string, int> Dictionary1;//// TEST: Change key type//dictionary<string, int> Dictionary2;//// TEST: Change value type//dictionary<string, int> Dictionary3;//// TEST: Change to a different type//dictionary<string, int> Dictionary4;//// TEST: Same//struct Struct1{ string str; bool b;};//// TEST: Add member//struct Struct2{ string str; bool b;};//// TEST: Change member type//struct Struct3{ string str; bool b;};//// TEST: Remove member//struct Struct4{ string str; bool b;};//// TEST: Change to a different type//struct Struct5{ string str; bool b;};//// TEST: Same//interface Interface1{};//// TEST: Change interface to class//interface Interface2{};//// TEST: Add base interface//interface Interface3{};//// TEST: Add operation//interface Interface4{};//// TEST: Same//class EmptyClass1{};//// TEST: Add data member//class EmptyClass2{};//// TEST: Add operation//class EmptyClass3{};//// TEST: Add base class//class EmptyClass4{};//// TEST: Add interface//class EmptyClass5{};//// TEST: Same//class SimpleClass1{ string str; float f;};//// TEST: Add operation//class SimpleClass2{ string str; float f;};//// TEST: Rename member//class SimpleClass3{ string str; float f;};//// TEST: Add member//class SimpleClass4{ string str; float f;};//// TEST: Remove member//class SimpleClass5{ string str; float f;};//// TEST: Reorder members//class SimpleClass6{ string str; float f;};//// TEST: Change member type//class SimpleClass7{ string str; float f;};//// TEST: Same//exception Exception1{ string str; bool b;};//// TEST: Add member//exception Exception2{ string str; bool b;};//// TEST: Change member type//exception Exception3{ string str; bool b;};//// TEST: Remove member//exception Exception4{ string str; bool b;};//// TEST: Add base exception//exception Exception5{};//// TEST: Change to a different type//exception Exception6{ string str; bool b;};//// TEST: Same//class BaseClass1{ void baseOp1(); void baseOp2(int i, out string s) throws Exception1;};//// TEST: Change return type//class BaseClass2{ void baseOp(); void baseOp2(int i, out string s) throws Exception1;};//// TEST: Add parameter//class BaseClass3{ void baseOp(); void baseOp2(int i, out string s) throws Exception1;};//// TEST: Add exception//class BaseClass4{ void baseOp(); void baseOp2(int i, out string s) throws Exception1;};//// TEST: Change out parameter to in parameter//class BaseClass5{ void baseOp(); void baseOp2(int i, out string s) throws Exception1;};//// TEST: Remove parameter//class BaseClass6{ void baseOp(); void baseOp2(int i, out string s) throws Exception1;};//// TEST: Remove exception//class BaseClass7{ void baseOp(); void baseOp2(int i, out string s) throws Exception1;};//// TEST: Remove operation//class BaseClass8{ void baseOp(); void baseOp2(int i, out string s) throws Exception1;};//// TEST: Add base class//class BaseClass9{ void baseOp(); void baseOp2(int i, out string s) throws Exception1;};//// TEST: Add interface//class BaseClass10{ void baseOp(); void baseOp2(int i, out string s) throws Exception1;};//// TEST: Add base class and interface//class BaseClass11{ void baseOp(); void baseOp2(int i, out string s) throws Exception1;};//// TEST: Local//local enum LocalEnum { LocalEnum1, LocalEnum2, LocalEnum3 };//// TEST: Local//local sequence<string> LocalSequence;//// TEST: Local//local dictionary<string, string> LocalDictionary;//// TEST: Local//local struct LocalStruct{ string str;};//// TEST: Local//local class LocalClass{};};#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -