Files
FreeCADWasmDev/docs/document-contract.json
wangdequan 9a7c4f0335 Save FreeCAD Web workspace sources and user validation evidence
IFC native binding remains incomplete; preserve accurate test results.
2026-09-15 22:01:58 +08:00

280 lines
8.7 KiB
JSON

{
"schema": "freecad-web-document-contract/v1",
"source_root": "/home/mes123456/FreeCADWasmDev/working/FreeCAD/freecad-source",
"source_revision": "4f4e9244e613ea2df06e70027074a562695048cb",
"contracts": [
{
"name": "Application",
"path": "src/App/Application.h",
"sha256": "c74091185dc2b4f2f737aaa5eed1592e9539164673df92408e5739ddaa1dcf03",
"patterns": [
"\\bnewDocument\\s*\\(",
"\\bcloseDocument\\s*\\(",
"\\bgetDocument\\s*\\(",
"\\bcommitTransaction\\s*\\(",
"\\babortTransaction\\s*\\("
],
"matches": [
{
"pattern": "\\bnewDocument\\s*\\(",
"line": 130,
"text": "App::Document* newDocument(const char* proposedName = nullptr,"
},
{
"pattern": "\\bcloseDocument\\s*\\(",
"line": 140,
"text": "bool closeDocument(const Document* doc);"
},
{
"pattern": "\\bcloseDocument\\s*\\(",
"line": 148,
"text": "bool closeDocument(const char* name);"
},
{
"pattern": "\\bgetDocument\\s*\\(",
"line": 206,
"text": "App::Document* getDocument(const char *Name) const;"
},
{
"pattern": "\\bcommitTransaction\\s*\\(",
"line": 342,
"text": "bool commitTransaction(int tid);"
},
{
"pattern": "\\babortTransaction\\s*\\(",
"line": 343,
"text": "bool abortTransaction(int tid);"
}
],
"match_count": 6
},
{
"name": "Document",
"path": "src/App/Document.h",
"sha256": "f4d2ca30d924da9e427142c68717643392e8cbeec6838c1d0c25e5840ea9a02e",
"patterns": [
"\\baddObject\\s*\\(",
"\\bgetObject\\s*\\(",
"\\bopenTransaction\\s*\\(",
"\\bcommitTransaction\\s*\\(",
"\\babortTransaction\\s*\\(",
"\\brecompute\\s*\\(",
"\\bgetObjectList\\s*\\(",
"\\bgetDependencyList\\s*\\("
],
"matches": [
{
"pattern": "\\baddObject\\s*\\(",
"line": 459,
"text": "DocumentObject* addObject(const char* sType,"
},
{
"pattern": "\\baddObject\\s*\\(",
"line": 483,
"text": "T* addObject(const char* pObjectName = nullptr,"
},
{
"pattern": "\\baddObject\\s*\\(",
"line": 532,
"text": "void addObject(DocumentObject* obj, const char* name = nullptr);"
},
{
"pattern": "\\baddObject\\s*\\(",
"line": 1483,
"text": "T* Document::addObject(const char* pObjectName, bool isNew, const char* viewType, bool isPartial)"
},
{
"pattern": "\\baddObject\\s*\\(",
"line": 1486,
"text": "return static_cast<T*>(addObject(T::getClassName(), pObjectName, isNew, viewType, isPartial));"
},
{
"pattern": "\\bgetObject\\s*\\(",
"line": 586,
"text": "DocumentObject* getObject(const char* Name) const;"
},
{
"pattern": "\\bopenTransaction\\s*\\(",
"line": 869,
"text": "int openTransaction(TransactionName name, int tid = 0);"
},
{
"pattern": "\\bopenTransaction\\s*\\(",
"line": 870,
"text": "int openTransaction(std::string name, int tid = 0);"
},
{
"pattern": "\\bcommitTransaction\\s*\\(",
"line": 898,
"text": "void commitTransaction();"
},
{
"pattern": "\\babortTransaction\\s*\\(",
"line": 901,
"text": "void abortTransaction() const;"
},
{
"pattern": "\\brecompute\\s*\\(",
"line": 780,
"text": "int recompute(const std::vector<DocumentObject*>& objs = {},"
},
{
"pattern": "\\bgetDependencyList\\s*\\(",
"line": 1072,
"text": "/// The position of option flags used by getDependencyList()"
},
{
"pattern": "\\bgetDependencyList\\s*\\(",
"line": 1093,
"text": "getDependencyList(const std::vector<DocumentObject*>& objs, int options = 0);"
}
],
"match_count": 13
},
{
"name": "DocumentObject",
"path": "src/App/DocumentObject.h",
"sha256": "53f3395f7e782ef877b2b947375e0026025ea5400ca44cea37ee2701e24f6707",
"patterns": [
"\\bgetNameInDocument\\s*\\(",
"\\bgetFullName\\s*\\(",
"\\bgetID\\s*\\(",
"\\bisTouched\\s*\\(",
"\\bisError\\s*\\(",
"\\bgetInList\\s*\\(",
"\\bgetOutList\\s*\\("
],
"matches": [
{
"pattern": "\\bgetNameInDocument\\s*\\(",
"line": 245,
"text": "const char* getNameInDocument() const;"
},
{
"pattern": "\\bgetFullName\\s*\\(",
"line": 271,
"text": "std::string getFullName() const override;"
},
{
"pattern": "\\bgetID\\s*\\(",
"line": 248,
"text": "long getID() const"
},
{
"pattern": "\\bisTouched\\s*\\(",
"line": 310,
"text": "bool isTouched() const;"
},
{
"pattern": "\\bisError\\s*\\(",
"line": 339,
"text": "bool isError() const"
},
{
"pattern": "\\bgetInList\\s*\\(",
"line": 544,
"text": "const std::vector<App::DocumentObject*>& getInList() const;"
},
{
"pattern": "\\bgetOutList\\s*\\(",
"line": 478,
"text": "const std::vector<App::DocumentObject*>& getOutList() const;"
},
{
"pattern": "\\bgetOutList\\s*\\(",
"line": 489,
"text": "std::vector<App::DocumentObject*> getOutList(int option) const;"
},
{
"pattern": "\\bgetOutList\\s*\\(",
"line": 500,
"text": "void getOutList(int option, std::vector<App::DocumentObject*>& res) const;"
}
],
"match_count": 9
},
{
"name": "PropertyContainer",
"path": "src/App/PropertyContainer.h",
"sha256": "7186965cd8b46aa37b548373d0bc4763e99f0d3e933a0638717b4ca873822516",
"patterns": [
"\\baddProperty\\s*\\(",
"\\bgetPropertyByName\\s*\\(",
"\\bgetPropertyList\\s*\\("
],
"matches": [
{
"pattern": "\\baddProperty\\s*\\(",
"line": 178,
"text": "void addProperty(OffsetBase offsetBase,const char* PropName, Property *Prop, const char* PropertyGroup= nullptr, PropertyType Type=Prop_None, const char* PropertyDocu=nullptr );"
},
{
"pattern": "\\baddProperty\\s*\\(",
"line": 743,
"text": "propertyData.addProperty(static_cast<App::PropertyContainer*>(this), _name, &this->_prop_); \\"
},
{
"pattern": "\\baddProperty\\s*\\(",
"line": 753,
"text": "propertyData.addProperty(static_cast<App::PropertyContainer*>(this), _name, &this->_prop_, (_group_),(_type_),(_Docu_)); \\"
},
{
"pattern": "\\bgetPropertyByName\\s*\\(",
"line": 224,
"text": "Property *getPropertyByName(OffsetBase offsetBase,const char* name) const;"
},
{
"pattern": "\\bgetPropertyByName\\s*\\(",
"line": 330,
"text": "virtual Property *getPropertyByName(const char* name) const;"
},
{
"pattern": "\\bgetPropertyList\\s*\\(",
"line": 240,
"text": "void getPropertyList(OffsetBase offsetBase,std::vector<Property*> &List) const;"
},
{
"pattern": "\\bgetPropertyList\\s*\\(",
"line": 356,
"text": "virtual void getPropertyList(std::vector<Property*> &List) const;"
}
],
"match_count": 7
},
{
"name": "PartFeature",
"path": "src/Mod/Part/App/PartFeature.h",
"sha256": "fd4ad70792e46e5029825d6690e3166e0db317bed7416b19d27fdcb8177ef658",
"patterns": [
"\\bPropertyPartShape\\s+Shape\\b",
"\\bgetShape\\s*\\(",
"\\bgetTopoShape\\s*\\(",
"\\bbuildHistory\\s*\\("
],
"matches": [
{
"pattern": "\\bPropertyPartShape\\s+Shape\\b",
"line": 76,
"text": "PropertyPartShape Shape;"
},
{
"pattern": "\\bgetShape\\s*\\(",
"line": 159,
"text": "static TopoDS_Shape getShape("
},
{
"pattern": "\\bgetTopoShape\\s*\\(",
"line": 167,
"text": "static TopoShape getTopoShape("
},
{
"pattern": "\\bbuildHistory\\s*\\(",
"line": 244,
"text": "ShapeHistory buildHistory("
}
],
"match_count": 4
}
]
}